1. Engineering
  2. Computer Science
  3. the air temperature in the troposphere drops with 65 c...

Question: the air temperature in the troposphere drops with 65 c...

Question details

The air temperature in the troposphere drops with 6.5° C (called lapse rate) with each increase of 1 km in altitude. Write a program that reads from the user the sea level air temperature (in ° Fahrenheit), an altitude (in meters), and displays the temperature (in ° C) at the given altitude. Use the top-down design methodology. Build a design that leads up to reusable functions. a) Write the structure diagram for the solution. (add diagram (e.g. Powerpoint figure) and text to Word document) b) Write the algorithm in pseudo-code (or plain English). (add text to Word document) c) Do the refinement steps and identify user-defined functions, with their inputs, preconditions, and postconditions. d) Write the functions and the main program in a file called p2.c. Write also (and use) a function that displays instructions for the user. Remember to use macros for constants.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution