FOR-TO-NEXT
Q1)
Write a pseudocode using FOT-TO-NEXT loop, to enter 35 marks of students.
Also display an error message if the marks are outside the range.
Rewrite the pseudocode using while do loop.
Q2Write an algorithm to input 100 numbers and output the total and average.
Q3)Write a pseudocode to enter 1000 characters and output the following counts
separate. '#', '@' and '&'. Declare all the variables used in the pseudocode.
Q4) Write a pseudocode to enter 1000 numbers and output how many
are positive, negative and zero
Do while
Q1)T To input a series of positive numbers and calculate the total of the numbers
input.
Q2
Write a pseudocode using FOT-TO-NEXT loop, to enter 35 marks of students. Also
display an error message if the marks are outside the range
Q3)Input a mark between 0 to 100. Output how many students have
passed.(above 50). Stop the program if any incorrect mark outside the range
is entered.
To input a series of positive numbers and calculate the total of the numbers input.
Terminate the program when a negative number or '0' is input