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

Calculating interest, The interest charged on a loan banking facility is ca...

The interest charged on a loan banking facility is calculated based on principal amount, rate and time. implement a C program that can be used to automate the calculation of the in

Luminous Jewels, Jewels can only be removed for polishing from either end o...

Jewels can only be removed for polishing from either end of the necklace

#title areaundercurve.c, Write a program to find the area under the curve y...

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Car rental payment system, payment system, in c++ only..just use the printf...

payment system, in c++ only..just use the printf or scanf.please

When i develop a destructor, When I develop a destructor, do I require to e...

When I develop a destructor, do I require to explicitly call the destructors for my member objects?

Define the c preprocessor, Define the C Preprocessor? Preprocessor' is ...

Define the C Preprocessor? Preprocessor' is a translation stage that is applied to your source code before the compiler proper gets its hands on it usually the preprocessor per

Define a class to model a banking system, Explain a class to model a bankin...

Explain a class to model a banking system. The function members should allow initializing the data members, a query to facilitate for account and a facility to deposit and with

Program to find a greatest string: c - program , Program to find a Greatest...

Program to find a Greatest String: C - Program: Write a program find largest string by c program. int main( int argc, char *argv[] ) {     if( argc         {

Can i employ realloc() on pointers allocated through new?, A: No.       ...

A: No.       While realloc() need to copy the allocation, this uses a bitwise copy operation, that will tear several C++ objects to shreds. C++ objects must be allowed to copy t

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