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

Saha, find the minimum total number of shelves

find the minimum total number of shelves

Luminous Jewels - The Polishing Game, Damjibhai and Shamjibhai are two jewe...

Damjibhai and Shamjibhai are two jeweler friends. They decide to play a simple game. The game comprises of removing the jewels for polishing, turn by turn. Once a jewel is removed

Link list, For this program you will add and test 2 new member functions to...

For this program you will add and test 2 new member functions to the IntSLList class posted on the website. The two member functions are: insertByPosn(int el, int pos) Assuming t

What is an iterator class?, A: A class which is used to traverse through th...

A: A class which is used to traverse through the objects maintained through a container class. There are _ve categories of iterators: output iterators, input iterators, forward ite

Writing a c++ program, how can I write a c++ program that generate all evn ...

how can I write a c++ program that generate all evn numbers less than 1000?

Distinguish between a class and an object, Problem: (a) Distinguish bet...

Problem: (a) Distinguish between a class and an object. (b) Define instantiation. (c) What is the importance of the "this" variable in java. (d) What is encapsulation?

Write a haskell program, Write a Haskell program that calculates a balanced...

Write a Haskell program that calculates a balanced partition of N items where each item has a value between 0 and K such that the difference between the sum of the values of first

Sequence for DMA controller, Write a sequence of instructions that transfer...

Write a sequence of instructions that transfers data from memory to an external I/O device by using channel 3 of the 8237 DMA controller. Transfer from 20000H-20FFFH.

Inverted Index Implementation, Need help finishing my homework. It''s been ...

Need help finishing my homework. It''s been 5 years since I''ve use C++. I am a VN.Net programmer. -Todd

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