Feu-It CCS Department Computer Programming 1 - Machine Problem
Feu-It CCS Department Computer Programming 1 - Machine Problem
Name:
Course/Yr:
MP # 1.1
Write an algorithm and draw a flowchart that will convert Celsius to Fahrenheit
Formula (F= °C x 9/5 + 32)
Pseudo code:
1. Input Temperature in Celsius.
2. Output Temperature in Fahrenheit.
3. complexity O(1)
4. CelsiustoFahrenheit(Tc)
5. 1 Tf = (9/5)*Tc+32;
FEU-IT
CCS Department Computer Programming 1 – Machine Problem
Flowchart:
Write a program that will ask the user for a grade input. The program will evaluate if the grade input
passed or failed. The passing grade is from 75-100. The range 0-74 means the grade will receive a
“Failed” mark. The program should only accept
START integer numbers from 0-100. Consider the sample
output:
Take
Enter Grade: 77
temperatur
e to Celsius
Remarks: PASSED
Z= Celsius * 9/5 + 32
Print Z
END
FEU-IT
CCS Department Computer Programming 1 – Machine Problem
MP # 1.2
Grade Evaluation
Write a program that will ask the user for a grade input. The program will evaluate if the grade input passed
or failed. The passing grade is from 75-100. The range 0-74 means the grade will receive a “Failed” mark.
The program should only accept integer numbers from 0-100. Consider the sample output:
Pseudo code:
else
print(“failed”\n):
FEU-IT
CCS Department Computer Programming 1 – Machine Problem
Flow Chart:
start
False True
Grade =< 77
END