Design a complete algorithm or draw a flowchart

Assignment Help Data Structure & Algorithms
Reference no: EM13334399

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

Reference no: EM13334399

Questions Cloud

Find the absolute pressure at the bottom of the container : A container is filled to a depth of 19.0 cm with water. On top of the water floats a 32.0-cm-thick layer of oil with specific gravity0.600
How to recognize the use and misuse of information presented : One of the concepts you encountered in the readings this module was how to recognize the use and misuse of information presented in the form of percentages. In this discussion assignment, you will conduct an Internet search to find several exa..
Explain the partial pressure of oxygen in the mixture : A gaseous mixture of O2 and N2 contains 38.8% nitrogen by mass. What is the partial pressure of oxygen in the mixture if the total pressure is 365mmHg
At what level of pretax cost savings would be indifferent : Your firm is contemplating the purchase of a new $703,000 computer-based order entry system. The system will be depreciated straight-line to zero over its 5-year life. It will be worth $68,400 at the end of that time.
Design a complete algorithm or draw a flowchart : 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 me..
What are the net cash flows in years 0-1-2 and 3 : The project requires an initial investment in net working capital of $294,000. The project is estimated to generate $2,352,000 in annual sales, with costs of $940,800.
What is the average pressure on that area in atm : Someone steps on your toe, exerting a force of 300 N on an area of 1.1 cm2. What is the average pressure on that area in atm
Underlying statistical distribution for a p-chart : The underlying statistical distribution for a p-chart (yes-no attribute) is Binomial, but for large samples can be approximated by a Normal (bell-shaped) distribution. Why is this true?
Explain the rationale for recognizing costs as expenses : In some situations costs are recognized as expenses at the time of product sale; in other situations guidelines have been developed for recognizing costs as expenses or losses by other criteria.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd