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

  Write void function which reads game-s parameters from file

Write a void function which reads game's parameters from file. Function validates te parameters. If parameters are "bad" the function assigns default values to parameters.

  Write program to accept five input values in array

Write a program that accepts five input values and stores them into an array. The program should display those five numbers in reverse order.

  Determine branch folding for unconditional branches

Determine the improvement from branch folding for unconditional branches. Assume a 90% hit rate, a base CPI without unconditional branch stalls of 1.

  Write pseudocode to accept candy name

Write a pseudocode for the following: A programm to accept a candy name (for exmple, "chocolate-covered blueberries'), price per pound, and number of pounds sold.

  Create application to generate a series of random numbers

Create the application to generate a series of 100 random numbers in the range of 1 through 1000. Save the series of numbers in a file.

  Reservations system to be horizontal or vertical application

Top Sail Realty Situation: Top Sail Realty is one of the largest time-sharing and rental brokers for vacation cottages. Do you consider the reservations system to be a horizontal or a vertical application? Give reasons for your answer.

  Design a class for string field for toppings

Design a class named pizza. Data fields include a string field for toppings (such as pepperoni) and numeric fields for diameter in inches (such as 12) and price (such as 13.99).

  Create a project in xcode

Create a new project in XCode using the Mac OS X/Command Line Tool template

  Write a program to model a simple calculator

Write a program to model a simple calculator. Each data line should consist of the next operation to be performed from the list below and the right operand.

  Explain the functions which are useful

Explain some of the functions which you have found useful, where you found them, and how you use them. Describe good programming practices.

  Calculate and display total fees and discount

Write a program to select type of student using an option button and capture total credit hours using a text box. Calculate and display total fees, discount (if any) and net total fees (after discount).

  Values of variables of logical section of the pseudocode

What are the values of variables a, b, and c after each line of code of each logical section of the pseudocode. Show why the logical section is running.

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