Write A Pseudocode To Input 2 Numbers and Display The Highest or
Write A Pseudocode To Input 2 Numbers and Display The Highest or
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