Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem.Write a program exploring how the Earths climate has changed over the past century and projecting what future temperatures might be like. You are going
Problem.Write a program exploring how the Earths climate has changed over the past century and projecting what future temperatures might be like. You are going to explore the change in sea levels and the change in air temperature. The worlds oceans have risen mm over the past century. Forecasts indicate the rate will increase to mmyear for the foreseeable future. In addition, the mean July air temperature was measured for the following cities for last year: New York City: F Denver: F Phoenix: F Sacramento: F Reports suggest these temperatures will increase by F for each subsequent year into the forseeable future. Note: my sample data shown in this assignment may differ from this.Requirements.Store the results of all computations.Include your specication comments above the main portion of your code where you implement the specication. No credit if this is missing!Use whitespace and comments to make your code more readable.Use function prototypes for all functions.Do not use c h style libraries. Use C libraries instead.Your program must compile in C on Ubuntu.Your program must generate logically correct output.Program activities are split into logical chunks or paragraphs. Im expecting paragraphs for input, processing if any and output operations.If there is non integer output, force the computer to always display places to the right of the decimal.Include a Source File Header, like you used in homework Do not include a specification with it like you did in that assignment.Include a Commented Sample Run for this assignment like you did for homework Again, do not include a specification with itInclude a ProgramGreeting for this assignment like you did for homework but turn it into a function you call at the very start of mainSpecications. Specication C const ConversionsUse consts when converting your units of measurement. Make sure you use the appropriate ALLCAPS naming convention too. Its OK to make these global variables. Specication C year ocean riseCompute how much the oceans will rise each year over the next years. Display each years results. Specication C year tempCompute how much the mean July temperatures will increase over the next years each year. Display your results. Specication B Mixed length outputDisplay your output in both inches and mm mm cm inches. Note: This conicts with the output in the picture, follow this. Store your conversion factor in a constant variable MMIN Use the appropriate style for constants. Specication B Mixed temperature outputDisplay your temperatures in both C as well as F Store the conversion factor in the constant variable FC and make sure the style is appropriate. Specication B Auto Heading FunctionCreate a function called autoHeader. This void function takes a string and displays it in all caps as a title. It then, emits a newline and displays underlining each letter in the title. Do not send an all caps string, nd the library function which will convert to uppercase for you. You may be wondering how to automatically underline the title. Specification A Ocean Rise TableCreate a table, similar to the one in homework which holds the year ocean rise, in both mm and inches. Display this table wouldnt it be great if you could create a couple of functions to do this and then copy them from homework to homework? Specification A July Temp TableConstruct a table similar to the one in specification A include column for both celsus and fahrenheit. Specification A One FunctionInclude at least one function in your program. Put this specification comment above your function prototypes
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