1. You have the final sales figures for the four quarters in 2010 for Bennet’s Used Auto Sales, and you are to design a program that asks for the sales figures, computes the total sales for the year, and calculates and displays the average quarterly sales for the year.
a. Write pseudo code for the divide-into-three algorithm for the fake-coin problem. Make sure that your algorithm handles properly all values of n, not only those that are multiples of 3.
b. Set up a recurrence relation for the number of weighing in the divide-into three algorithm for the fake-coin problem and solve it for n = 3k.
c. For large values of n, about how many times faster is this algorithm than the one based on dividing coins into two piles? Your answer should not depend on n.
The post pseudocode develop an algorithm appeared first on My Assignment Online.
Welcome to the Most Reliable Essay writing Service Online
pseudocode develop an algorithm