Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Help Please visit these websites to learn about carbon footprint and how to calculate from the following websites: http://science.howstuffworks.com/environmental/green-science/carbon-footprint.htm https://en.wikipedia.org/wiki/Carbon_footprint https://carbonfund.org/how-we-calculate https://www3.epa.gov/carbon-footprint-calculator/ Goal The goal
Help
Please visit these websites to learn about carbon footprint and how to calculate from the following websites:
http://science.howstuffworks.com/environmental/green-science/carbon-footprint.htm
https://en.wikipedia.org/wiki/Carbon_footprint
https://carbonfund.org/how-we-calculate
https://www3.epa.gov/carbon-footprint-calculator/
Goal The goal of this assignment is to learn how to use interface and polymorphism. Tasks Your tasks are to design and implement an application to calculate carbon footprints from buildings, cars, and bicycles. 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 interface CarbonFootprint with a getCarbonFootprint method. Have each of your classes implement that interface, so that its getCarbonFootprint method calculates an appropriate carbon footprint for that class
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started