Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Java program that uses Interfaces to calculates the carbon foot print of various objects, much of the design is left up to the

Create a Java program that uses Interfaces to calculates the carbon foot print of various objects, much of the design is left up to the programmer however good object-oriented design is required.  Interfaces allow to specify similar behavior for seemingly unrelated classes. Use Interfaces in this project to link a buildings, automobile and food.

Requirements

  1. Create three class Building, Auto and Food.
  2. Provide each class with instance variables that relate to them but not to the other classes.
  3. Provide each class with accessor and mutator methods as well as at least one additional method that is unique to that class and is not one of the instance variable accessor or mutator method.

Step by Step Solution

3.41 Rating (154 Votes )

There are 3 Steps involved in it

Step: 1

Below is a simple Java program that uses interfaces to calculate the carbon footprint of buildings automobiles and food Ive provided basic instance variables accessor mutator methods and additional un... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Contemporary Management

Authors: Gareth Jones, Jennifer George

9th Edition

0077718372, 978-0077718374

More Books

Students also viewed these Operating System questions

Question

Find numbers a and b such that lim x0 ax + b 2 / x = 1.

Answered: 1 week ago