You are to write programming logic to convert temperature from Celsius to Fahrenheit for some specific values of temperatures. In performing the conversion for these values, you are to use a loop. Within the loop you will covert the specific values from Celsius to Fahrenheit. The loop may be either a while loop or a for loop. Write a program called temperatureLoop Convert.cpp to convert 3 temperature values from Celsius to Fahrenheit. Requirements. 1. Use these 3 Celsius temperature values: -40° C,0° C, 100° C in a loop. Each time the loop is performed (that is, each time the loop iterates) one of the Celsius temperature values is converted to Fahrenheit. That is: 1st time loop is performed/iterates: -40° C is converted to Fahrenheit. 2nd time loop is performed/iterates: 0° C is converted to Fahrenheit. 3rd time loop is performed/iterates: 100° C is converted to Fahrenheit. 2. From Programming Exercise 5.4: The loop must use this formula inside it. Each time the loop is performed (that is, each time the loop iterates) one of the Celsius temperature values is converted to Fahrenheit. That is: 1st time loop is performed/iterates the formula is used to convert -40° C to Fahrenheit. 2nd time loop is performed/iterates the formula is used to convert 0° C to Fahrenheit. 3rd time loop is performed/iterates the formula is used to convert 100° C to Fahrenheit. Note -40° C is -40° F, 0° C is 32° F, 100° C is 212° F. Feel free to use these values to make sure your program is displaying the correct Fahrenheit values Program I/O. Input: None. Output should be in a table like format that looks similar to this: Temperatures From Celsius To Fahrenheit -40 C 0 C 100 C F = (9/5) C + 32 -40 F 32 F 212 F ======
Types of Loop
Loops are the elements of programming in which a part of code is repeated a particular number of times. Loop executes the series of statements many times till the conditional statement becomes false.
Loops
Any task which is repeated more than one time is called a loop. Basically, loops can be divided into three types as while, do-while and for loop. There are so many programming languages like C, C++, JAVA, PYTHON, and many more where looping statements can be used for repetitive execution.
While Loop
Loop is a feature in the programming language. It helps us to execute a set of instructions regularly. The block of code executes until some conditions provided within that Loop are true.
![**Title: Temperature Conversion Program in C++**
**Objective:**
Develop a C++ program to convert temperatures from Celsius to Fahrenheit using a loop structure.
**Program Overview:**
You are tasked with writing a program called `temperatureLoopConvert.cpp` to convert three specific temperature values from Celsius to Fahrenheit. The loop, which can either be a `while` or `for` loop, will iterate through the given temperatures and convert each value using a specified formula.
**Requirements:**
1. **Temperature Values:**
- Use these three Celsius values: -40°C, 0°C, 100°C.
- In each loop iteration, one Celsius temperature will be converted to Fahrenheit.
2. **Conversion Formula:**
- Use the formula \( F = \frac{9}{5} C + 32 \).
- Loop through each temperature:
- 1st iteration: Convert -40°C to Fahrenheit.
- 2nd iteration: Convert 0°C to Fahrenheit.
- 3rd iteration: Convert 100°C to Fahrenheit.
**Conversion Details:**
- Temperature conversions:
- -40°C is equivalent to -40°F.
- 0°C is equivalent to 32°F.
- 100°C is equivalent to 212°F.
You can use these conversions to validate the output of your program.
**Program Input/Output:**
- **Input:** None required.
- **Output:** Display results in a tabular format:
```
Temperatures From Celsius To Fahrenheit
========================================
-40 C -40 F
0 C 32 F
100 C 212 F
```
Follow these instructions to ensure your program successfully converts and displays the temperatures accurately.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6f46ae0e-a0ee-4500-808d-7fa0f129e90c%2F07b271f8-a62d-483e-858c-2c8bb12be89e%2Ffnlwb_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)