Algorithms Answers

Questions answered by Experts: 652

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

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.


Draw a flowchart that will display "IT'S COLD!" if the temperature is less that 20, "IT'S HOT!" if the temperature is greater than 30, "COOL!" otherwise.
Create a flowchart that will able to read the age of an individual and determine if it qualified to vote or not. The qualifying age to vote is 18 and above. If the age is 18 below, display "too young!". Note that there is no such age as 0 or negative however display "Invalid age" if age is above 100 display "Out of range".
1. Write the algorithm and draw the flowchart. Given three numbers A, B, C. Compute and print out the sum, the product and the average of these values.
How reflection can be used to achieve team improvement

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.


LATEST TUTORIALS
APPROVED BY CLIENTS