Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java please, better explan steps Instructions How urgent is the global warming issue? The urgency depends on quickly exceed safe levels of carbon dioxide (CO2)

image text in transcribedimage text in transcribedJava please, better explan steps

Instructions How urgent is the global warming issue? The urgency depends on quickly exceed safe levels of carbon dioxide (CO2) in the atmosphere. Around 1850, the levels of CO, in the atmosphere was 280 ppm [parts per million). Since the industrial revolution, CO, levels have increased. By 2013, the levels of CO2 had increased to around 400ppm. Along with these elevated CO2 levels, we have also seen the average global temperature increase above pre-industrial levels by 0.85C. Some climate scientists' models predicted that we could possibly stabilize the average global temperature (at a 2C increase over the pre-industrial period) if we are able to keep our carbon dioxide concentrations below 450ppm.[1] In this problem, you will read in a list of integer CO2 readings (in ppm) followed by a negative integer that marks the end of the data set. From this list of CO2 values, you will determine the maximum value reached. You will then output the maximum CO2 level encountered. If that value is 450ppm or greater, you will also output a warning. Write the body of the program. Function Details Input The program reads in a list of positive integers, representing the carbon dioxide (CO2) levels in ppm, followed by one negative integer. Processing Determine the maximum CO2 level reached. Determine whether this maximum level reaches a high-risk value of 450ppm or greater. Output Output Max: "followed by the maximum CO, level reached, including units (ppm). If this maximum level reaches a high-risk level, output Warning - high risk" on a new line. The text must be terminated by a new-line character. Sample Input/output: Sample Input Sample Output Max: 230ppm 120 230 -1 Max: 473ppm 430 441 473 -23 Warning - high risk Sample Input/output: Sample Output Sample Input x: 230pp 120 230 -1 Max: 473ppm 430 441 473 -23 Warning - high risk Max: 376ppm 345 234 376 -5 Max: 462ppm 370 383 462 -17 Warning - high risk

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

Data Analytics Systems Engineering Cybersecurity Project Management

Authors: Christopher Greco

1st Edition

168392648X, 978-1683926481

More Books

Students also viewed these Databases questions

Question

understand the meaning of the terms discipline and grievance

Answered: 1 week ago