Professional Documents
Culture Documents
Pascal Programming
Pascal Programming
Pseudocode
Input – Read Length, Width
Processing – Perimeter Length + Width + Length + Wide
Output – Display Perimeter
Pascal
Program Perimeter_of_Rectangle (input, output)
Var Length, width, perimeter: integer;
Begin
Writeln (‘Please enter a value for length and width’);
Readln (Length, width);
Perimeter: = Length + Width + Length + Width;
Writeln (‘Perimeter =’ , Perimeter);
Readln;
End.
Information Technology
January 16th, 2023
Topic: Pseudocode
Write a pseudocode/algorithm to accept three values from a user and find their
average. The algorithm should also display their average.
Pseudocode
Read Num1, Num2, Num3
Sum = Num1 + Num2 + Num3
Average = Sum/3
Print Average
Information Technology
January 18th, 2023
Topic: Pseudocode
1. You are to write a program, which calculates, and prints on screen, the time
required to travel 4800 miles at a speed of 600mph.
Pseudocode
Read Distance
Sum = Num1 + Num2 + Num3
Average = Sum/3
Print Average