Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

beginner Java, please make code as simple as possible so i could understand, thank you. int Emission Factors and Multipliers Total Number People in the

beginner Java, please make code as simple as possible so i could understand, thank you.
image text in transcribed
image text in transcribed
int Emission Factors and Multipliers Total Number People in the Multiply by 1800 to calculate annual CO2 emissions from household waste Household [4] Multiply by .64 lbs CO2 per mile Miles Traveled by Bus Each Month double traveled [5] Miles Traveled by Electric Vehicle Multiply by.35 lbs CO2 per mile double Each Month traveled [6] Zel Miles Traveled by Small Car (40 Multiply by.59 lbs CO2 per mile double mpg) Each Month traveled (4) Miles Traveled by Medium Car (21 Multiply by 1.1 lbs CO2 per mile double mpg) Each Month traveled [44] Miles Traveled by SUV (21 mpg) Multiply by 1.57 lbs CO2 per mile double Each Month traveled [4] Multiply by.9 lbs CO2 per mile Miles Traveled by Airplane Each traveled and by total household double Year members traveling from below column. Number of Air Travelers in int Used in above calculation Household Multiply by.524 lbs CO2 per kWh Monthly KWh of Electricity double (note that CA has a cleaner energy mix Consumed than average U.S. state) (2 e) Monthly Therms of Natural Gas Multiply by 13.446 lbs CO2 per therm double Consumed of gas (2) Number of Household Members int Multiply by 2800 lbs CO2 per year [10 who Consume Meat -] Number of Vegetarian Household Multiply by 1500 lbs CO2 per year (10 int Members Number of Vegan Household Multiply by 1100 lbs CO2 per year (10 int Members e] . Note that the above numbers are approximate, based on the best available information I coul Begin your program by printing the title: Welcome to the Carbon Calculator! Next, prompt the user to enter each input as shown below: Finally, print the total household emissions in tons (hint: divide by 1000): Total annual emissions: 128.50091999999998 tons . Another example: Welcome to the Carbon Calculator! Enter the total number of people in your household: 4 Enter the number of miles your household travels by bus per month: 140 Enter the number of miles your household travels by electric car per month: 0 Enter the number of miles your household travels by small car (40 mpg) per month: 0 Enter the number of miles your household travels by medium car (21 mpg) per month: 2000 Enter the number of miles your household travels by SUV per month: 1750 Enter the number of miles your household travels by airplane per year: 10000 Enter the total number of household members traveling by air: 4 Enter your monthly kWh of electricity: 580 Enter your monthly total of natural gas in therms: 52 Enter the number of people in your household who eat meat: 3 Enter the number of people in your household who are vegetarian: 1 Enter the number of people in your household who are vegan: O Your Household Carbon Emissions Summary: Emissions from bus travel: 1075.2 lbs of CO2/year Emissions from electric vehicle travel: 0.0 lbs of CO2/year Emissions from small car travel: 0.0 lbs of CO2/year Emissions from medium car travel: 26400.000000000004 lbs of CO2/year Emissions from SUV travel: 32970.0 lbs of CO2/year Emissions from air travel: 432000.0 lbs of CO2/year Emissions from electricity (in CA): 3647.04 lbs of CO2/year Emissions from natural gas: 8390.304 lbs of CO2/year Emissions from household waste: 7200.0 lbs of C02/year Emissions from food consumption: 9900.0 lbs of CO2/year Total annual emissions: 521.582544 tons

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions