Question
c++ language Assuming the ocean's level is currently rising at about 1.5 mm per year, write a program that displays a table showing the number
c++ language
Assuming the ocean's level is currently rising at about 1.5 mm per year, write a program that displays a table showing the number of mm that the ocean will have risen each year for the next nYears years. Every 5 years, the ocean level is expected to increase by another 120%. Ask the user for how many years they want to predict, and put this number in nYears. In your output, year 1 should be this year plus 1. Input validation: nYears is greater than zero and must be less than 150. Sample output (nYears = 3, year 0 = 2016) 2017 1.5 2018 3.0 2019 4.5
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