Logo

AskSia

Plus

FOR-TO-NEXT Q1) Write a pseudocode using FOT-TO-NEXT loop, to enter 35 marks o...
Mar 18, 2024
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
pseudocode
Explanation
This pseudocode represents the logic to enter 35 student marks using a FOR-TO-NEXT loop and its equivalent WHILE loop. It includes error checking for marks outside the range of 0 to 100.
pseudocode
Explanation
This pseudocode describes an algorithm to input 100 numbers, calculate their total sum and average, and then output these values.
pseudocode
Explanation
This pseudocode is for counting occurrences of the characters '#', '@', and '&' from 1000 characters entered by the user.
pseudocode
Explanation
This pseudocode is for entering 1000 numbers and classifying them as positive, negative, or zero, then outputting the counts for each category.
Please note that the answers provided are pseudocode, which is a high-level description of the algorithm that can be easily turned into a programming code. If you need the actual code in a specific programming language, you can ask for it with the language you are interested in.
© 2023 AskSia.AI all rights reserved