Draw a flowchart that determines if the employee has to be paid of overtime pay (OT). They will be paid an OT if they exceed 40 hours work in a week, regular pay (RP) if less than or equal to 40 hours only. Display "OT Pay" or " RP Pay", based on the entered number of hours a week.
Input the age of the voter then if the age is qualified display “QUALIFIED TO VOTE ” otherwise “NOT QUALIFIED”
(ii) Solve the following recurrence relation using Recurrence Tree Method.
T(n) ={1 if n = 1
T(n/2 ) + n if n > 1}
Show all the steps.
the factorio of an integer is the product of all integers upto and including that integer except that the factorio of 0 is 1 evaluate the factorio of an integer less than 20 for fuve numbers input successfully via the keyboard
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.