Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with my c++ assigment. Heres a link to the assigment. https://www.dropbox.com/s/9iuj62hi1eo6l5j/CSC260_P3-TemperatureConversion_FunctionsFilesClass_SP18%202.pdf?dl=0 Heres what I have so far: /* This program prints out

I need help with my c++ assigment. Heres a link to the assigment. https://www.dropbox.com/s/9iuj62hi1eo6l5j/CSC260_P3-TemperatureConversion_FunctionsFilesClass_SP18%202.pdf?dl=0

Heres what I have so far:

/* This program prints out a conversion table of temperatures, after prompting the user for upper and

lower bounds of the table in Fahrenheit, and the temperature difference between table entries.

*/ #include

using namespace std;

int main()

{ int lower = 0; /* the lowest Fahrenheit entry in the table */ int upper = 0; /* the highest Fahrenheit entry in the table */ int step = 1; /* difference in Fahrenheit between entries */

/* print a message explaining what the program does: */ print_introduction_message();

/* prompt the user for table specifications in Fahrenheit: */ get_conversion_table_specifications(lower, upper, step);

/* print appropriate message including an echo of the input: */ print_message_echoing_input(lower, upper, step);

/* Print the table (including the column headings): */ print_table(lower, upper, step);

return 0; }

/* FUNCTION TO CONVERT FAHRENHEIT TO CELSIUS */ double fahrenheit_to_celsius (int fahr)

{

return (static_cast(5)/9) * (fahr - 32); }

/* FUNCTION TO CONVERT FAHRENHEIT TO KELVIN VALUE */ double fahrenheit_to_kelvin (int fahr) {

return ((static_cast(5)/9) * (fahr - 32)) + 273.15; }

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

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students also viewed these Databases questions