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

  How many bits are needed for the opcode

A digital computer has a memory unit with 32 bits per word. The instruction set consists of 128 different operations. All instructions have an operations code part (opcode) and an address part (allowing for only one address). Each instruction is s..

  Write the relation r as a set if ordered pairs

let A={a,b,c,d,e} and suppose R is an equivalence relation on A . Suppose R has two equivalence classes. also aRd ,bRc and eRd in R . WRITE the relation R as a set if ordered pairs

  What is difference between a state graph and a search tree

Describe how the problem of traveling from one city to another could be framed as a production system. What are the states? What are the productions?

  Addition and subtraction of numbers in binary

Addition and Subtraction of numbers in binary and round to the nearest decimal number with three significant decimal digits

  Divide-and-conquer two-dimensional closest-pair algorithm

consider the version of the divide-and-conquer two-dimensional closest-pair algorithm in which, instead of presorting input set P, we simply sort each of the two sets Pl and Pr in nondecreasing order of their y coordinates on each recursive call

  Define a federated database

Define a federated database and discuss why are federated databases becoming increasingly common? Provide examples of databases in your current or previous work environment

  Compare the average behavior of insertion sort

Compare the average behavior of insertion sort for n elements with that of the n insertions into an initially-empty straight array implementation of a priority queue

  Question about multi dimensional arrays

Multi-dimensional arrays could cost a lot of memory. Determine how much memory does it take to create an integer array of 3 dimensions,

  Compare and contrast link-state and distance-vector routing

Examine the corresponding ping reply packet. What are the ICMP type and code numbers? What other fields does this ICMP packet have?

  Write a program flowchart

Write a program FLOWCHART that lets the user enter a sequence of numbers. The program should stop when it notices that the last two numbers entered were identical.

  Program development cycle for algorithm using pseudocode

Illustrate all your work. Use modular approach to solving this problem. Give the following submodule. Calculations - module to compute gross pay. Using the Program Development Cycle, develop an algorithm using pseudocode for the following task.

  Coefficients of algorithm and negative coefficient mean

How could you utilize the larger grid size and longer time step? Write down the coefficients of your algorithm? What would negative coefficient mean?

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