Determining the iterative problems

Assignment Help Basic Computer Science
Reference no: EM131931032

Iterative problems

1. The Main Street Boutique is having a five-day sale. Each day, starting on Monday, the price will drop 10% off the previous day's price. For example, if the original price of a product is $20.00, the sale price on Monday would be $18.00 (10% less than original price). On Tuesday the price would be $16.20 (10% less than Monday). On Wednesday the price would be $14.58; on Thursday the sale price would be $13.12 and on Friday the sale price would be 11>81. Develop a solution that will calculate the price of an item for each of the five days, given the original price. Test the solution for an item costing $10.00.

2. Make changes in the solution to problem 1 to set the price at wholesale when the price drops below the wholesale price. Test the solution with the following prices:

Retail Prices:        $20.00, $25.00

Wholesale Prices  $10.00, $20.00

3. Develop a solution that will calculate the average temperature, given a set of temperatures. The number of temperatures may vary from time to time. (Use a trip value (counter) to stop the processing of the loop.) Test the solution with the following 10 temperatures

78, 90, 85, 80, 87, 83, 75, 90, 86 and 70

4. Mr. Nields has given a test to his class. He would like to have the average score for the class as well as the highest and lowest scores. Develop a solution to calculate and display these values. (Use a counter to stop the processing of the loop.)

Reference no: EM131931032

Questions Cloud

What are the configuration entries : What are the configuration entries used in the /etc/dhcp/dhcpd.conf file to specify the TCP/IP parameters for IP address range, default gateway
Which firm would you expect to have higher payouts in future : Which firm would you expect to pay out more to its shareholders this year? Which firm would you expect to have higher payouts in the future?
Create a list of positive reasons for centralizing laws : The United States more resembles the United Kingdom and Germany in its system of local police power versus France's system of national policing.
How nominal and ordinal data relate to a rating scale : Explain the difference between nominal and ordinal data. Explain how nominal and ordinal data relate to a rating scale.
Determining the iterative problems : The Main Street Boutique is having a five-day sale. Each day, starting on Monday, the price will drop 10% off the previous day's price. For example
How can future us global health strategies : What challenges face public health professionals trying to address this issue today and in the future?
Develop the website and online admission application : Discuss whether you will use a traditional or web-based development strategy to develop the website and online admission application
What is the total amount that columbus electrical : what is the total amount that Columbus Electrical will have to pay in taxes in year 2 if the company decides to work on the project?
What strategic misstep did netflix make in the past : What strategic misstep did Netflix make in the past and how did it recover from it? Building on the Information Technology Risk Workshop.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Imagine you are an investor in stock market

Imagine you are an investor in Stock Market. You prefer to trade through Nasdaq (a virtual with no physical location). Why? Provide the answer with reasoning!

  Determine the mixture temperature at the inlet of the room

The air leaves the room at 24°C. The ratio of the mass flow rates of the hot to cold air streams is 1.6. Using variable specific heats,

  Find the excluded value of the related function

Find the excluded value(s) of the related function.

  What is the annual demand-in terms of boxes

What is the annual demand-in terms of boxes? What is the materials costs-per bag?

  How many different selections of cones are possible

Baskin Robbins' logo uses "31" because their stores offer 31 flavors of ice cream cones in sizes small, medium, and large.

  Largest number of times

In Randomized-Quicksort of a list of length n, what is the largest number of times that RANDOM will be called? What is the smallest possible number of times that RANDOM will be called? Be as exact as possible.

  Which of the following addresses are not allowed on internet

Which of the following addresses are not allowed on the internet?

  Draw a decision tree for an algorithm solving this problem

What is the information-theoretic lower bound for comparison-based algorithms solving this problem?

  High levels of disposable income

Today the teen market is a very desirable market segment since teenagers set trends and have high levels of disposable income.

  Classmates for committing topics to memory

You have learned a lot about various protocols this week. What advice would you give your classmates for committing these topics to memory?

  Importance of having an effective management team

What is the importance of having an effective management team, and what role does it play in overall business success?

  Should iso standards have been considered

Three months after the system changeover, you perform a post-implementation evaluation. Prepare three evaluation forms for the new information system: one for users, one for man· agers, and one for the IT operations staff.

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