Question: visual studios programming language is c Assignment purpose: To compile, build, and execute an interactive program using functions from stdio.h (printf and scanf), simple math

visual studios programming language is c
visual studios programming language is c Assignment purpose: To compile, build, and
execute an interactive program using functions from stdio.h (printf and scanf), simple
math in C, and simple programmer defined functions. Preprocessor directives: #define _CRT_SECURE_NO_WARNINGS

Assignment purpose: To compile, build, and execute an interactive program using functions from stdio.h (printf and scanf), simple math in C, and simple programmer defined functions. Preprocessor directives: #define _CRT_SECURE_NO_WARNINGS //for Visual Studio compiler #pragma warning(disable:6031) //1gnore scanf warnings #include //printf and scanf Instructions - For this assignment you will be implementing a program that converts temperature and distance to and from Metric to English (kilometers to miles, miles to kilometers AND Fahrenheit to Celsius, Celsius to Fahrenheit) The program will welcome the user with a friendly message Ask the user to enter their first initial (assume the user will enter the initial) Get the initial from the user You will pass the initial to all the calculation functions and practice interacting with the initial See the sample output below You will need to use double variables for all the values and formulas to make the conversions Present the output to 2 decimal places, see the sample output below Use the following FIVE programmer defined functions. DO NOT modify the Functions: //greets the user //asks, get, and returns the first initial char Greeting(); //input: the users initial //asks and gets kilometers, converts to miles //prints the results void KmsToMiles (char initial); //input: the users initial //asks and gets miles, converts to kilometers //prints the results void Miles Toms (char initial; //input: the users initial //asks and gets the temperature in celcius //converts to farenheit //prints the results void Celcius ToFahrenheit(char initial); //input: the users initial //asks and gets the temperature in farenheit //converts to celcius //prints the results void FahrenheitToCelcius (char Initial); * Add name, date, and a brief description here */ #define _CRT_SECURE_NO_WARNINGS //for Visual Studio compiler #pragma warning (disable: 6031) //ignore scan warnings #include //for printf and scanf //function prototypes here //greets the user I/asks, get, and returns the first initial char Greeting(); 1/input: the users initial //asks and gets kilometers, converts to miles //prints the results void KmsToMiles (char initial); //input: the users initial //asks and gets miles, converts to kilometers //prints the results void MilestoKms (char initial); //input: the users initial //asks and gets the temperature in celcius //converts to farenheit 1/prints the results void CelsiusToFahrenheit(char initial); //input: the users initial //asks and gets the temperature in farenheit //converts to celcius 1/prints the results void FahrenheitToCelsius (char initial); int main() char initial_in_main; initial_in_main = Greeting(); //add the other function calls here 1/prints the results void KmsToMiles (char initial); //input: the users initial //asks and gets miles, converts to kilometers //prints the results void Miles ToKms (char initial); //input: the users initial //asks and gets the temperature in celcius //converts to farenheit 7/prints the results void CelsiusToFahrenheit(char initial); //input: the users initial //asks and gets the temperature in farenheit 1/converts to celcius 1/prints the results void FahrenheitToCelsius (char initial); int main() { char initial_in_main; initial_in_main = Greeting(); 1/add the other function calls here printf(" &c., Have a Great Day!", initial_in_main); return 0; } //function definiitons here char Greeting() { char initial_in_Greeting; printf(" Please enter your first initial:"); scanf("%c", &initial_in_Greeting); //welcome the user return initial_in_Greeting; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!