0% found this document useful (0 votes)
66 views4 pages

Feu-It CCS Department Computer Programming 1 - Machine Problem

The document provides instructions for two programming problems: 1) Converting Celsius to Fahrenheit. It includes the formula, sample output, pseudocode, and a flowchart to write a program that takes temperature in Celsius as input and outputs the temperature in Fahrenheit. 2) Grade evaluation. It asks to write a program that takes a grade as input, evaluates if it is passing or failing, and outputs the result. Pseudocode and a flowchart are provided to check if the grade is between 75-100 and output "Passed" or "Failed" accordingly.

Uploaded by

Allysa Casison
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views4 pages

Feu-It CCS Department Computer Programming 1 - Machine Problem

The document provides instructions for two programming problems: 1) Converting Celsius to Fahrenheit. It includes the formula, sample output, pseudocode, and a flowchart to write a program that takes temperature in Celsius as input and outputs the temperature in Fahrenheit. 2) Grade evaluation. It asks to write a program that takes a grade as input, evaluates if it is passing or failing, and outputs the result. Pseudocode and a flowchart are provided to check if the grade is between 75-100 and output "Passed" or "Failed" accordingly.

Uploaded by

Allysa Casison
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

FEU-IT

CCS Department Computer Programming 1 – Machine Problem

Name:

Course/Yr:

Algorithm, Pseudocode, Flowcharting

MP # 1.1

Converting Celsius to Fahrenheit

Write an algorithm and draw a flowchart that will convert Celsius to Fahrenheit
Formula (F= °C x 9/5 + 32)

Consider the sample output:

    Enter temperature in Celsius: 32


    Value in Fahrenheit: 89.6

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:

    Enter Grade: 77


    Remarks: PASSED

Pseudo code:

if (grade =< 77)


print(“Passed\n”):

else

print(“failed”\n):
FEU-IT
CCS Department Computer Programming 1 – Machine Problem

Flow Chart:

start

False True
Grade =< 77

Print “Failed” Print “Passed”

END

You might also like