Exercise Topic1
Exercise Topic1
1. Assume that your weight is 56 kilograms. You need to convert your weight to pound and
display it.
(a) Define the input, process and output for the task.
(b) Draw the flowchart.
(c) Write the pseudocode.
2. Write a pseudocode that inputs two exam marks and then output both the smallest and the
largest of the two marks.
3. An international college charges RM105.00 for each credit hour taken by its students. The
number of hours that enrolled by a student is 20 hours. You need to calculate the fees that the
student has to pay.
(a) Define the input, process and output for the task.
(b) Draw the flowchart.
(c) Write the pseudocode.
4. Four workers were responsible to pluck oranges. The owner of the orange farm will be given
40% of the oranges. The workers share equally the balance of the oranges. The balance of
oranges after divided will be used to make juice. Draw a complete flowchart and pseudocode
that accepts input for the amount of oranges that were plucked. You are also required to
calculate and print amount of oranges that were received by the owner, each of the workers and
balance of oranges to make juice.
Sample output:
Enter number of oranges plucked : 100
Total oranges for the owner is 40
Total oranges for each worker is 15
Balance of oranges to make juice is 0
6. Draw flow chart and write a pseudocode that will determine the student’s grade based on the
average mark of a student. The program will read three marks between 0 and 100, calculate
the average mark and display the grade received by the student and the message based on the
table given below. If the user enters number below than 0 and above 100, error message will
be displayed.