Write pseudocode and algorithm for
every question and draw flow chart.
Q 1: Ask for the user’s age to be typed in
at keyboard, then display a message that states whether or not the user is old
enough to drive.
Q 2: Ask for two numbers to be input by the
user, and then display the larger of two numbers.
Q
3: Display a
message if two numbers read from keyboard are the same.
Q 4: Input a number from keyboard, then
display a message whether or not the number is within the range 0 to 100
Q 5: input two numbers 7
and 6. Calculate the 7 mode 6 and
display the result with message “the mode is calculated as”
0 comments:
Post a Comment