Do the necessary planning (IPO) and write an algorithm in pseudo code for the following:
1 An unknown number of toddlers are taking part in a competition. 5 adjudicators will give each competitor a mark out of 10. These marks are added together to get a mark out of 100. Write a complete C++ program to do the following
Enter the competitor’s number. (-1 is entered to terminate the input.)
Enter 10 marks out of 10 for each competitor.
Calculate the total mark.
Compare it to the marks of previous competitors to obtain the highest mark.
Enter the number of the following competitor.
When all data have been processed, display the number of the competitor with the highest mark as well as the current competitor’s mark.
Do the necessary planning (IPO) and write an algorithm in pseudo code for the following
The user must enter a positive integer between 5 and 15. If this number is valid, the user must also choose between a triangle (T or t) and a square (S or s). Display suitable error messages if necessary; otherwise, the program must use an asterisk to draw a triangle or a square of the chosen size and display. Use a Select Case structure to make the decision. Display appropriate error messages where applicable.
Display the final mark for every student.
1.1 Mix the for loop with a do-while
Do the necessary planning (IPO) and write an algorithm in pseudo code for the following:
Display the final mark for every student.
1.1 Use a nested for loop to determine the answer.
Do the necessary planning (IPO) and write an algorithm in pseudo code for the following:
Write an algorithm that will accept the following for 100 students: The students’ name (studName) and 3 test marks (marks), as well as one exam mark (examMark). The program must calculate the final mark (finMark) for every student. The final mark comprises of 50% of the exam mark added to 50% of the average (agv) of the 3 tests.
Display the final mark for every student.
1. Use a simple for-loop to determine the answer.
Write an algorithm to allow users to enter a quantity of numbers until a negative number is entered. Then display the highest and lowest number entered.
Do the necessary planning (IPO) and write an algorithm in pseudo code for the following:
1. Write an algorithm to allow users to enter a quantity of numbers until a negative number is entered. Then display the highest and lowest number entered.
1.1 Use a while-loop to determine the answer.
Do the necessary planning (IPO) and write an algorithm in pseudo code for the following:
1. Display every number even number from 2 to 50 along with its value double and tripled.
1.1 Use a while-loop.
Do the necessary planning (IPO) and write an algorithm in pseudo code for the following:
1 Display every number even number from 2 to 50 along with its value double and tripled.
1.1 Use a for-loop.
1.1 Rewrite the following using the specified looping structure/s:
1.1.1 Use pre-test (for-loop) and a post-test (do-loop until).
num1 = 20
do while x <= -15
display “x = “, x
x = x - 3
loop
1.1.2 Use pre-test (do-while) and a post-test (do-loop until).
for value = 5 to -15 step - 3
display “x = “, x
next value