Write a program that display amount of discount on item

Assignment Help Programming Languages
Reference no: EM1367615

Q1) A software company sells a package that retails for $99.Quantity discounts are given according to the following table:

Quantity Discount
10-19 20%
20-49 30%
50-99 40%
100 or more 50%

Write a program that asks the user to enter the number of packages purchased.The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount.

Reference no: EM1367615

Questions Cloud

Estimate cost elasticity of demand for education : Estimate cost elasticity of demand for education at this university. Is cost elasticity of demand for university tuition elastic or inelastic according to answer in part (i) Why.
How much time is necessary for a particle of string : A Carnot engine performs work at the rate of 380 kW when using 730 kcal of heat per second. If the temperature of the heat source is 560 C, at what temperature is the waste heat exhausted.
Which airline has lower costs : If Fly Right were to go out of business, it would be able to rent its plane to another airline for $30,000. Which airline has lower costs.
Where on the y axis is total electric field zero : A model rocket rises with constant acceleration to the height of 3.7, at which point its speed is 25. what was the magnitude of the rocket's acceleration.
Write a program that display amount of discount on item : Write a program that asks the user to enter number of packages purchased. Program must then display amount of the discount (if any) and total amount of the purchase after the discount.
Illustrate what impact on quantity demanded : Illustrate what impact on quantity demanded and supplied for new cars will be as a result. Used demand and supply diagram and clear explanation.
Determine the axes : Assume you hear a commentator on radio state that when interest rates fall, the stock market (the Dow Jones average say) tends to rise.
Management performance plan-motivation and empowerment : State a management performance plan, linking action plans to issues of motivation, empowerment, training and coproduction with the patients and families.
Estimate the charge of each : Neptune has a mass 17.20 times larger than that of Earth and a radius 3.88 times larger. A person weighing 140 lb on the Earth would weigh how much on Neptune.

Reviews

Write a Review

Programming Languages Questions & Answers

  Program for saving account balance report

Savings account balance report from customer savings account file. Every input savings account record contains account number, balance forward, deposits (sum of all deposits).

  Write program to use text file to create relative file

Write a program that uses the text file to create a corresponding relative file. Translate the stock code to an appropriate relative record address.

  Determine proper lower bound and upper bound on ?nal value

Determine the proper lower bound and upper bound on the ?nal value of the shared variable tally output by this concurrent program.

  Develop logic for program to read customer records

Develop the logic for a program that reads in 100 customer records and stores the first and last name and total purchases in three parallel arrays.

  Create ajax-based product catalog

Create an AJAX-based product catalog which obtains its data from JSON files located on the server. The data should be separated into four JSON files.

  Program using ten radio buttons to show five states

It is program using 10 Radio Buttons to show 5 States and 5 Capitals to user's interface. Also, there is text box to print "Correct" and "Incorrect" when Sate and the Capital is a correct match.

  Explain importance of developing strategy for navigation

Discuss the importance of developing a strategy for the navigation, and describe the common navigation elements. Navigation is a very important part of your portfolio.

  Write program to prompt for and accept current salary

Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases.

  Design-write program to enter score repetition structure

Design and write a program that asks the user to enter five test scores using a repetition structure. The program should display the letter grade for each score and the average test score at the end of the program.

  Methods to declare and initialize one dimensional arraay

What is an array? Show different methods to declare and initialize one dimensional array. Draw how an integer array of 6 elements having base address 5001 is stored in memory.

  Write program that asks user to enter current value

Write a program which asks the user to enter the current value of a car. For new car, it is selling price of car. The program must display number of years it takes for the car's trade-in value to be below $1000.

  Compute and display number of miles per hour

Once correct data has been entered, the program muts compute and display number of miles per hour over the speed limit that the driver was doing.

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