Question: Learn to use switch statements Learn to use nested if statements In this lab you will write a Java program for a list of common

 Learn to use switch statements Learn to use nested if statements

Learn to use switch statements Learn to use nested if statements In this lab you will write a Java program for a list of common pollutants. The program will present a list of pollutants and then prompt for information about the amount emitted and the mileage of the vehicle. This is an example of the prompts: that determines if a vehicle makes the emission limits 1. Carbon monoxide 2. Hydrocarbons 3. Nitrogen oxides 4. Non-methane hydrocarbons Enter pollutant number> Enter grams of pollutant emitted per mile > Enter odometer reading> Based on the input, use the following table to determine the output Maximum allowed for the first 50, 000 miles Maximum allowed for the next 50, 000 miles 50000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!