Discuss an abstract class carbon footprint

Assignment Help Basic Computer Science
Reference no: EM131610302

Question: (Carbon Footprint Abstract Class: Polymorphism) Using an abstract class with only pure virtual functions, you can specify similar behaviors for possibly disparate classes. Governments and companies worldwide are becoming increasingly concerned with carbon footprints (annual releases of carbon dioxide into the atmosphere) from buildings burning various types of fuels for heat, vehicles burning fuels for power, and the like. Many scientists blame these greenhouse gases for the phenomenon called global warming. Create three small classes unrelated by inheritance-classes Building, Car and Bicycle. Give each class some unique appropriate attributes and behaviors that it does not have in common with other classes. Write an abstract class Carbon Footprint with only a pure virtual get Carbon Footprint method. Have each of your classes inherit from that abstract class and implement the get Carbon Footprint method to calculate an appropriate carbon footprint for that class (check out a few websites that explain how to calculate carbon footprints). Write an application that creates objects of each of the three classes, places pointers to those objects in a vector of Carbon Footprint pointers, then iterates through the vector, polymorphically invoking each object's get Carbon Footprint method. For each object, print some identifying information and the object's carbon footprint.

Reference no: EM131610302

Questions Cloud

Define what is their core philosophy : What is their core philosophy. What are the pros and cons of this philosophy. Elaborate
Develop polymorphic banking program using account hierarchy : (Polymorphic Banking Program Using Account Hierarchy) Develop a polymorphic banking program using the Account hierarchy created in Exercise.
Explain description of the crime that took place : Outline the level of court that was assigned to the case local/state, municipal, or federal and the reason why that level was appropriate
Which employers are subject to affirmative action laws : Which employers are subject to Affirmative Action laws? What potential impact does Affirmative Action have on employees and the workplace?
Discuss an abstract class carbon footprint : (Carbon Footprint Abstract Class: Polymorphism) Using an abstract class with only pure virtual functions, you can specify similar behaviors for possibly.
Explore types of principal-agency relationships : Explore types of principal-agency relationships and determine what type of relationship exists in this case between the driver, Jose Carcamo, and the company.
Define identification that eventually proved unreliable : Early forensic scientists developed methods of identification that eventually proved unreliable
Define the function-template definition : The template parameters of a function-template definition are used to specify the types of the arguments to the function.
How would you configure the activation scheme : A police manager responsible for setting up a new in-car video system, what technology would you include

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd