Carbon footprints from human activities are increasingly causing concern due to the carbon dioxide released into...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Carbon footprints from human activities are increasingly causing concern due to the carbon dioxide released into the atmosphere. Scientists believe that these greenhouse gases are responsible for the phenomenon of global warming. You will create a simple Carbon Foot Print application using classes and interfaces. . Create three small classes unrelated by inheritance-classes Building, Car and Bicycle. (10 points) • Write an interface ICarbonFootprint with a GetCarbon Footprint Method (10 points) • Create a simple UML diagram representing the classes/interface you have created in visual studio as part of your project (5 points) • Implement this interface in each of the classes you have created so that a GetCarbon Footprint method in each class calculates an appropriate carbon footprint for that class. You can make an assumption that we are calculating the carbon footprint for usage of car, building, and bicycle and not the construction of such objects (check out a few websites that explain how to calculate carbon footprints-please remember to cite the website in your comments - the calculations may not be very accurate but that is fine-for example, the EPA has an excel sheet with formulas for calculating carbon on vehicles-It estimates about 19.2 lbs of carbon per gallon of gas used. So, your Car class could calculate the carbon foot print by multiplying this value by the average number of gallons used per time period. It is more challenging to calculate the footprint of a building. You can use a simple formula provided here: https://www.buildings.com/smarter- buildings/article/10189039/how-to-calculate-your-carbon-footprint No matter the formula you use, as long as you cite the source, I will accept it. ) (20 points) Write an application that creates objects of each of the three classes, places references to those objects in List</Carbon Footprint>, then iterates through the List, polymorphically invoking each object's Get Carbon Footprint method (20 points) Comment appropriately in each of the .cs files you create with regards to name, date, program description etc. and submit one zip file of the entire solution. (5 points) Carbon footprints from human activities are increasingly causing concern due to the carbon dioxide released into the atmosphere. Scientists believe that these greenhouse gases are responsible for the phenomenon of global warming. You will create a simple Carbon Foot Print application using classes and interfaces. . Create three small classes unrelated by inheritance-classes Building, Car and Bicycle. (10 points) • Write an interface ICarbonFootprint with a GetCarbon Footprint Method (10 points) • Create a simple UML diagram representing the classes/interface you have created in visual studio as part of your project (5 points) • Implement this interface in each of the classes you have created so that a GetCarbon Footprint method in each class calculates an appropriate carbon footprint for that class. You can make an assumption that we are calculating the carbon footprint for usage of car, building, and bicycle and not the construction of such objects (check out a few websites that explain how to calculate carbon footprints-please remember to cite the website in your comments - the calculations may not be very accurate but that is fine-for example, the EPA has an excel sheet with formulas for calculating carbon on vehicles-It estimates about 19.2 lbs of carbon per gallon of gas used. So, your Car class could calculate the carbon foot print by multiplying this value by the average number of gallons used per time period. It is more challenging to calculate the footprint of a building. You can use a simple formula provided here: https://www.buildings.com/smarter- buildings/article/10189039/how-to-calculate-your-carbon-footprint No matter the formula you use, as long as you cite the source, I will accept it. ) (20 points) Write an application that creates objects of each of the three classes, places references to those objects in List</Carbon Footprint>, then iterates through the List, polymorphically invoking each object's Get Carbon Footprint method (20 points) Comment appropriately in each of the .cs files you create with regards to name, date, program description etc. and submit one zip file of the entire solution. (5 points)
Expert Answer:
Answer rating: 100% (QA)
using System using SystemCollectionsGeneric Interface for Carbon Footprint public interface ICarbonF... View the full answer
Related Book For
Smith and Roberson Business Law
ISBN: 978-0538473637
15th Edition
Authors: Richard A. Mann, Barry S. Roberts
Posted Date:
Students also viewed these programming questions
-
Resources are becoming scare and consequently, they have to be managed effectively. Managing resources is an important attribute which Heads or schools should develop. Provide examples as support....
-
A well-documented rise in global temperatures has coincided with a significant increase in the concentration of carbon dioxide in the atmosphere. Respected scientists believe the two trends are...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Prove that if a planetary orbit is circular of radius R, then vT = 2R, where v is the planets speed (constant by Exercise 7) and T is the period. Then use Keplers Third Law to prove that Data From...
-
A light ray in dense flint glass with an index of refraction of 1.655 is incident on the glass surface. An unknown liquid condenses on the surface of the glass. Total internal reflection on the...
-
What facets of self-leadership are more commonly exhibited, and how do these enable personal change and organizational change?
-
In 2016, a father of two minor children in Cuyahoga county, Ohio, filed a claim to determine custody of the children. At the pretrial, the father informed the magistrate he wanted to be named a legal...
-
A chain of appliance stores, APP Corporation, purchases inventory with a net price of $500,000 each day. The company purchases the inventory under the credit terms of 2/15, net 40. APP always takes...
-
Explain why not all relationships go through every stage in Knapp's Relational Model. Give an example.
-
Thompson Distributors packages and distributes industrial supplies. A standard shipment can be packaged in a class A container, a class K container, or a class T container. A single class A container...
-
For the Gaussian probability distribution in 3D : P(x) exp (-3) find: - the normalization constant; - () () (4)
-
Vietnam is a country undergoing a transformation from a centrally planned socialist economy to a system that is more market-oriented. The transformation dates back to 1986, a decade after the end of...
-
In group process, should your approach to group leadership depend on the context you are in? Why or why not?
-
The purchasing manager for a company is attempting to determine how much inventory to purchase for the upcoming month. The following information has been collected: Current inventory......$ 32,000...
-
Journalize the following transactions, their dates, and show the calculation. There are some (2 or 4-5) transactions that do not need entry. 1) 1/3. Employees are paid monthly on the first business...
-
Am 6. Given the density of the nucleus is To 1.2 fm and mass of a nucleon " = 1.67 10-27 kg, calculate the density of nucleus. (6 marks)
-
The director of special events for Sun City believed that the amount of money spent on fireworks displays for the Fourth of July was predictive of attendance at the Fall Festival held in October. She...
-
Which should drive action planning more, strengths or weaknesses? That is, is it more important to build on your strengths or to reduce your weaknesses? Explain.
-
A statute requiring railroads to fence their tracks is construed as intended solely to prevent animals that stray onto the right-of-way from being hit by trains. B&A Railroad Company fails to fence...
-
List and describe the courts in the Federal court system and in a typical State court system.
-
Wilson Trading Corp. agreed to sell David Ferguson a specified quantity of yarn for use in making sweaters. The written contract provided that notice of defects, to be effective, had to be received...
-
Explain how budgeting helps in running a business efficiently and effectively.
-
The best way to conduct performance evaluation is to determine broad business goals and prepare a financial plan in which senior management is responsible for the whole business. Discuss.
-
Read the following and answer the questions below. The costs of hosting the Olympic Games During Olympic years there is a tangible sense of anticipation for many people who enjoy watching or...
Study smarter with the SolutionInn App