In this chapter you learned the basics of classes. Now you’ll begin “fleshing out” aspects of a class called “Hybrid Vehicle.” Hybrid vehicles are becoming increas- ingly popular, because they often get much better mileage than purely gasoline-powered vehicles. Browse the web and study the features of four or five of today’s popular hybrid cars, then list as many of their hybrid-related attributes as you can. For example, common attributes include city-miles-per- gallon and highway-miles-per-gallon. Also list the attributes of the batteries (type, weight, etc.).

What will be an ideal response?


• Manufacturer
• Type of Hybrid—Battery hybrid (Hybrid Electric Vehicles), Plug-in hybrid, Fuel cell etc.
• Driver feedback system—so the driver can monitor fuel efficiency based on their driving
• Energy recovery—for example, regenerative breaking
• Carbon footprint—tons of CO2 per year
• Fuel capacity
• City-miles-per-gallon
• Highway-miles-per-gallon
• Two-mode hybrid propulsion system
• Engine size—V6, V8, etc.
• Vehicle type—SUV, crossover, compact, mid-size, etc.
• Seating capacity
• Horse power
• Drive train (front wheel drive, all wheel drive)
• Top speed
• Torque
• Price

Computer Science & Information Technology

You might also like to view...

Which of the following statements are true?

A. A class template can be derived from a nontemplate class. B. Friends are used exactly the same for template and nontemplate classes. C. A nontemplate class can be derived from a class template specialization.d. Stack s; D. A class template can be derived from a class template. E. You can define static members in a template class. Each template specialization has its own copy of a static data field.

Computer Science & Information Technology

How are the top three layers of the OSI model mapped in the TCP/IP model?

What will be an ideal response?

Computer Science & Information Technology

Case 2Helen, an inventor, has just finished designing the board for a new game. Before sending photos of the game out to publishers and toy companies, she plans to use Photoshop to purify and intensify the colors. Which of the following tools will Helen most likely use?

A. Merge B. Eyedropper C. Note D. Sponge

Computer Science & Information Technology

Double-clicking the Hand tool does what?

What will be an ideal response?

Computer Science & Information Technology