Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c programming language Assignment purpose: To compile, build, and execute an interactive program using functions from stdio.h (printf and scand), simple math in C, and

c programming language
image text in transcribed
Assignment purpose: To compile, build, and execute an interactive program using functions from stdio.h (printf and scand), simple math in C, and simple programmer defined functions. Preprocessor directives: #define _CRT_SECURE_NO_WARNINGS //for Visual Studio Compiler #pragua warning disable:6031) //ignore 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, bet, and returns the first initial char Greeting(); // input the users initial //asks and gets kilometers, converts to siles //prints the results void KmsToMiles(char Initia); //input: the users Initial Vasks and gets miles, converts to kilometers //prints the results vold Milestokins (char lattial); //input: the users initial //asks and gets the temperature in celcius W/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 1/prints the results vold Fahrenheittocelcius(char Initial

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago