asked 22.5k views
0 votes
write a program in pseudo code to solve the following: covert a temperature input in degrees Celsius to degrees Fahrenheit and displays both temperatures. Make sure to use the following variables: Celsius (a Float) and Fahrenheit (a Float) and the followi

1 Answer

5 votes

Answer:

Program Start:

Declare Variables: Celsius and Fahrenheit as float

Input Celsius

Fahrenheit = (Celsius * 9/5) + 32

Print Celsius

Print Fahrenheit

End Program

Step-by-step explanation:

Pseudo codes are false codes and are used to mimic actual programs.

So, the interpretation of the above code is as follows:

This line indicates the start of the program

Program Start:

The variables are declared, here

Declare Variables: Celsius and Fahrenheit as float

This line gets input for degree Celsius

Input Celsius

This line converts degree Celsius to Fahrenheit

Fahrenheit = (Celsius * 9/5) + 32

The next two lines print the degree Celsius and the equivalent degree Fahrenheit

Print Celsius

Print Fahrenheit

This indicates end of program

End Program

answered
User Jakub Kulhan
by
9.2k points