1.You have the final sales figures for the fourquarters in 2010 for Bennet’s Used Auto Sales, and you are to design a programthat asks for the sales figures, computes the total sales for the year,...

1 answer below »

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.)

Answered Same DayDec 20, 2021

Answer To: 1.You have the final sales figures for the fourquarters in 2010 for Bennet’s Used Auto Sales, and...

Robert answered on Dec 20 2021
114 Votes
2)
Input total
number of
expenditures to
n
For i=1 to n input
values in array at i
For
i=1 to n
Cacluclate
total+=array of i
Calculate
(array[i]/total)*00
Print
percentage
in float
3)
While i not equal to
10 secs
If level>=20
Print
Empty
bucket
Print...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here