Design and code an ansi standard c program which enhances


Design and code an ANSI Standard C program which enhances the code below only so as to make it a modular program. (each of the program four tasks of ask, get, alter and display are now separate functions).

This will necessitate designing appropriate ask, get, alter and display functions. It will also necessitate coding four ANSI Standard function prototypes, function calls in main() and single-task function definitions. Explain in a brief function comment, what the function's task is and if it needs to have data passed into it, if it needs to return a value to the method that called it (main) or possibly both or neither.

Do not use any global variables, only local variables - in other words, declare all your variables inside and at the top of your functions, to include main().
===============
Code to enhance:

#include

int main()
{

float fahrenheit;
float celsius;

printf("Enter the Fahrenheit temperature as a whole number: ");
scanf("%f",&fahrenheit);

celsius = 5.0/9.0*(fahrenheit - 32);

printf("Fahrenheit temperature %0.2fn",fahrenheit);
printf("Celsius temperature %0.2fn",celsius);
}

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Design and code an ansi standard c program which enhances
Reference No:- TGS01248383

Now Priced at $20 (50% Discount)

Recommended (91%)

Rated (4.3/5)