Computer Science Engineering C++ Homework, C/C++ Programming

Assignment Help:
Temperature Conversions. Problems 28 through30generate temperature-conversion
tables. Use the following equations that give relationships between temperatures in degrees
Fahrenheit (TF), degrees Celsius (TC), degrees Kelvin (TK), and degrees Rankin (TR):
TF = TR - 459. 67 degrees R
TF = (9/5) TC + 32 degrees F
TR = (9/5) TK
26. Write a program to generate a table of conversions from Fahrenheit to Celsius for
values from 0 degrees F to 100 degrees F. Print a line in the table for each 5-degree
change. Use a while loop in your solution.
27. Write a program to generate a table of conversions from Fahrenheit to Kelvin for
values from 0 degrees F to 200 degrees F. Allow the user to enter the increment in
degrees Fahrenheit between lines. Use a do/while loop in your solution.
28. Write a program to generate a table of conversions from Celcius to Rankin. Allow
the userto enterthe starting temperature and incrementbetween lines. Print25 lines
in the table. Use a for loop in your solution.

In the textbook, problems 26, 27, and 28 involve writing programs to perform temperature conversions. The first program for this assignment should combine the functionality of these three problems. Start by prompting the user to enter "1" if they want to convert from Fahrenheit to Celsius (problem 26), "2" to convert from Fahrenheit to Kelvin (problem 27), or "3" to convert from Celsius to Rankin (problem 28). If the user types something other than 1, 2 or 3, you should prompt them again. (Hint this is a good place for a loop.) Once the user enters a valid reponse then you should branch to the appropriate section of code. A response of 1 should cause you to branch to the code that solves problem 26. A response of 2 should cause you to branch to the code that solves problem 27. Finally a response of 3 should cause you to branch to the code that solves problem 28. Make sure that in the case of the code that addresses problems 27 and 28 that you get user input as indicated in the description of these problems on page 178 of the textbook.

Related Discussions:- Computer Science Engineering C++ Homework

Program, fine the class bankAccount to implement the basic properties of a ...

fine the class bankAccount to implement the basic properties of a bank account. An object of this class should store the following data: Account holder''s name (string), account nu

C++ programming, give a program to accept and print 2_D Array

give a program to accept and print 2_D Array

Program, write a program that adds all numbers from 1 to 200

write a program that adds all numbers from 1 to 200

Application to maintain soccer team information, Write a C program "team.c"...

Write a C program "team.c" that maintains information for a soccer team. The program will allow you to add and delete players from your team, to search your team for players by nam

.C# mouse and maze program, .Create a Csharp solution that will show a maze...

.Create a Csharp solution that will show a maze in the user interface and will show a mouse walking through the maze attempting to locate the exit door (the cheese).

Execution of string length using pointer hopping, A: #include // Test to...

A: #include // Test to see if pointer hopping is worthwhile. // strlen implemented with usual indexing mechanism. int strlen1( const char str[ ] ) { int i; for( i =

Explain string constants in c language - escape sequences, Explain string c...

Explain string constants in c language - Escape Sequences? Illustrations are "945", "hello", "well done", "5+3". The character constant (example 'x') isn't equivalent to the st

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd