0% found this document useful (0 votes)
71 views1 page

Write A Pseudocode To Input 2 Numbers and Display The Highest or

The document contains instructions to write pseudocode for 6 programs. The first program takes in 2 numbers and displays the highest or "tied" if equal. The second program takes a student mark and displays the grade. The third program takes height and weight, calculates BMI, and displays the BMI and a message. The fourth program takes time to travel 500km, calculates speed, and displays speed and a message. The fifth program takes a number, operator, and second number, performs the calculation, and displays the result. The sixth program takes an input but the instruction is incomplete.

Uploaded by

Kresh Mudhoo
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)
71 views1 page

Write A Pseudocode To Input 2 Numbers and Display The Highest or

The document contains instructions to write pseudocode for 6 programs. The first program takes in 2 numbers and displays the highest or "tied" if equal. The second program takes a student mark and displays the grade. The third program takes height and weight, calculates BMI, and displays the BMI and a message. The fourth program takes time to travel 500km, calculates speed, and displays speed and a message. The fifth program takes a number, operator, and second number, performs the calculation, and displays the result. The sixth program takes an input but the instruction is incomplete.

Uploaded by

Kresh Mudhoo
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/ 1

1. Write a pseudocode to input 2 numbers and display the highest or “tied” if equal.

2. Write a pseudocode to allow a user input a student’s mark and your program will display the
related grade given that:

Mark Grade
90-100 A
70-89 B
50-69 C
30-0 F
All other marks X
3. Write a pseudocode to input the height and weight for a student. Your program shall calculate
the BMI (weight/(Height*Height)) and display the BMI along with relevant message given that:

BMI Message
<18 Underweight
>= 18 and < 25 Normal
>= 25 and <=30 Overweight
>30 Obese
4. Write a pseudocode to input the time taken by a car to cover the distance of 500 KM. Your
program shall calculate the speed and display the speed along with relevant message given that:

Speed Message
<40 Slow
>= 40 and < 60 Normal
>= 60 and <=80 Over Speed
>80 Dangerous Driving
5. Write a pseudocode to input a number, an operator followed by another number. Your
program shall perform the arithmetic calculation and display the result given that:

Operator Calculation
+ Add the 2 numbers
- Subtract the second number from the first one
/ Divide the first number by the second one
* Multiply the 2 numbers
@ Returns the integer division when divide the first number by the second one
% Returns the remainder when divide the first number by the second one
All other operators Invalid message
6. Write a pseudocode to input the

You might also like