Please check the attached screenshot and the assignment that I have to do. Provide me a whole source code with minimum changes with my original source code please. I just want the fahreheit to be changed as it supposed to be, not stay in 32°F as you can see in my screenshot.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.6: Nested Loops
Problem 3E: (Electrical eng.) a. An electrical manufacturer tests five generators by measuring their output...
icon
Related questions
Question

Please check the attached screenshot and the assignment that I have to do. Provide me a whole source code with minimum changes with my original source code please. I just want the fahreheit to be changed as it supposed to be, not stay in 32°F as you can see in my screenshot.

E Eclipse project - Project04/src/temperature.java - Eclipse IDE
File Edit Source Refactor Navigate Search Project Run Window Help
A Package Explorer X
E Outline X
©, temperature
main(String(1) : void
D temperature.java X
vE HelloJava
E JRE System Library [JavaSE-17]
2 public class temperature {
v H src
public static void main(String[] args) {
# (default package)
> D Main.java
vE Homework03
> E JRE System Library [JavaSE-17]
double tempC = 0;
double tempF = (1.8*tempC) + 32;
6.
8
9
A src
for (tempC = 0; tempc <= 20; tempC++)
{
System.out.println(tempF + "°F = " + tempC + "°C");
}
v A (default package)
> A race.java
> D testScore.java
vE Project04
> E JRE System Library (JavaSE-17]
v E src
v # (default package)
> D temperature.java
13
14
}
18 }
19
A Problems @ Javadoc O Declaration e Console X B Coverage
<terminated> temperature [Java Application] C:\Users\seose\OneDrive\Desktop\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.1.v20211116-1657\jre\bin\javaw.exe (Feb 2, 2022, 7:34:15 PM – 7:34:16 PM)
32.0°F = 0.0°C
32.0°F = 1.0°C
32.0°F = 2.0°C
32.0°F = 3.0°C
32.0°F = 4.0°C
32.0°F = 5.0°C
32.0°F = 6.0°c
32.0°F = 7.0°C
32.0°F = 8.0°c
32.0°F = 9.0°C
32.0°F = 10.0°C
32.0°F = 11.0°C
32.0°F = 12.0°C
32.0°F = 13.0°C
32.0°F = 14.0°C
32.0°F = 15.0°C
32.0°F = 16.0°C
32.0°F - 17.0°C
32.0°F = 18.0°C
32.0°F = 19.0°C
32.0°F - 20.0°C
7:45 PM
ENG
2/2/2022
Transcribed Image Text:E Eclipse project - Project04/src/temperature.java - Eclipse IDE File Edit Source Refactor Navigate Search Project Run Window Help A Package Explorer X E Outline X ©, temperature main(String(1) : void D temperature.java X vE HelloJava E JRE System Library [JavaSE-17] 2 public class temperature { v H src public static void main(String[] args) { # (default package) > D Main.java vE Homework03 > E JRE System Library [JavaSE-17] double tempC = 0; double tempF = (1.8*tempC) + 32; 6. 8 9 A src for (tempC = 0; tempc <= 20; tempC++) { System.out.println(tempF + "°F = " + tempC + "°C"); } v A (default package) > A race.java > D testScore.java vE Project04 > E JRE System Library (JavaSE-17] v E src v # (default package) > D temperature.java 13 14 } 18 } 19 A Problems @ Javadoc O Declaration e Console X B Coverage <terminated> temperature [Java Application] C:\Users\seose\OneDrive\Desktop\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.1.v20211116-1657\jre\bin\javaw.exe (Feb 2, 2022, 7:34:15 PM – 7:34:16 PM) 32.0°F = 0.0°C 32.0°F = 1.0°C 32.0°F = 2.0°C 32.0°F = 3.0°C 32.0°F = 4.0°C 32.0°F = 5.0°C 32.0°F = 6.0°c 32.0°F = 7.0°C 32.0°F = 8.0°c 32.0°F = 9.0°C 32.0°F = 10.0°C 32.0°F = 11.0°C 32.0°F = 12.0°C 32.0°F = 13.0°C 32.0°F = 14.0°C 32.0°F = 15.0°C 32.0°F = 16.0°C 32.0°F - 17.0°C 32.0°F = 18.0°C 32.0°F = 19.0°C 32.0°F - 20.0°C 7:45 PM ENG 2/2/2022
11. Celsius to Fahrenheit Table
Write a program that displays a table of the Celsius temperatures 0 through 20 and their
Fahrenheit equivalents. The formula for converting a temperature from Celsius to
Fahrenheit is
F =
C + 32
where F is the Fahrenheit temperature and C is the Celsius temperature. Your program must
use a loop to display the table.
Transcribed Image Text:11. Celsius to Fahrenheit Table Write a program that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit equivalents. The formula for converting a temperature from Celsius to Fahrenheit is F = C + 32 where F is the Fahrenheit temperature and C is the Celsius temperature. Your program must use a loop to display the table.
Expert Solution
Introduction:

I have just put your line 7 inside for loop and its working perfectly

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Mouse Control
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning