85 % (192 Review)
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.
2. Youâ€™ve been asked to write a program that computes percentages for specific categories in a personal budget. The program should ask the user to enter estimated monthly expenditures for the following categories:
Rent Payment, Food, Utilities, and All Other. Your program should add the amounts, display the total, and compute and display the percentage for each category. Dollar amounts should be displayed with two decimal places and percentages should be displayed with one decimal place.
3. The manager of Guaranteed Gaskets has discovered a leak in the warehouse attic. Itâ€™s raining, so he has placed a 25-liter bucket under the leak to catch the rain. He wants you to draw a flowchart for a program to keep track of the amount of rain accumulated in the bucket as long as itâ€™s raining.
Every 10 minutes, youâ€™re to check the water level in the bucket and record it in the program. If the level is 20 liters or higher, the program should display a message reminding you to empty the bucket and put it back. Otherwise, the program should display a message reminding you to come back in 10 minutes and run the program again.
Draw a flowchart for a program to display different messages based on the water level in the bucket.
4. Design a complete algorithm or draw a flowchart that determines the sales tax on purchases under $1.00 for a state with a 7% sales tax rate. Display the sales tax amount if the number of cents entered was 99 or less; otherwise, display an error message.
Instead of multiplying the amount of the sale by 7% and rounding, use the following list to determine the exact amount of sales tax:
-0 to 7 cents: no tax
-8 to 21 cents: 1 cent tax
-22 to 35 cents: 2 cents tax
-36 to 49 cents: 3 cents tax
-50 to 64 cents: 4 cents tax
-65 to 78 cents: 5 cents tax
-79 to 92 cents: 6 cents tax
-93 to 99 cents: 7 cents tax
5. Before your boss allows adjustable thermostats in the office suite, he must be convinced that major temperature variations occur in different offices and within each office on different days. Youâ€™re to write a program that allows each employee to enter the temperature at noon on each of five days and displays the highest, lowest, and average (mean) temperatures.
Draw a flowchart to accept five daily temperature readings and displays the highest, lowest, and average (mean) temperatures. Use a For loop to take the five readings. (Hint:Initialize the highest and lowest temperature variable to the first temperature thatâ€™s read, and then compare other temperatures to see whether theyâ€™re lower or higher.)
Your answer will be ready within 2-4 hrs. Meanwhile, check out other millions of Q&As and Solutions Manual we have in our catalog.