Create program to enter number of packages bought

Assignment Help Programming Languages
Reference no: EM1368953

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%

Create a program which asks user to enter number of packages bought . The program must then display amount of discount (if any) and total amount of purchase after the discount.

Reference no: EM1368953

Questions Cloud

What should the charge on particle : What must the charge (sign and magnitude) of a 1.46 g particle be for it to remain stationary while placed in a downward-directed electric field of magnitude 690.
Explain and analysis of you qualities compared to leader : Explain and Analysis of you qualities compared to that leader including how you plan to develop the skills that you do not currently posses
Possible scenarios of supply and demand : Assume you are the manager of a California winery. How would you expect the following events to affect price you will receive for a bottle of wine?
Environmental changes to industry or company : Provide an example of an industry or company that has changed its strategy over time as environmental factors such as technology, competition, and consumer preferences have changed.
Create program to enter number of packages bought : Create a program which asks user to enter number of packages bought . The program must then display amount of discount (if any) and total amount of purchase after the discount.
Explain and identify the kind of societal expectation : Explain and Identify the kind of societal expectation of behavior and what standard of behavior is most appropriate
Primary objective of podsakoff and todors research : What is legitimate power and what was the primary objective of Podsakoff and Todor's research?
Find out the radius of the second sphere : A 50g ball travelling at 25m/s is bounced off a brick wall and rebounds at 22m/s. A high speed camera records this event. If the ball is in contact with the wall for 3.5ms, what is the average acceleration of the ball throughout this time interval..
New product development - shorten cycle : New Product Development: Shorten cycle - In an effort to shorten cycle times, firms have embraced the use of cross-functional teams

Reviews

Write a Review

Programming Languages Questions & Answers

  Write techniques to ensure the site content is optimized

All Web pages is as small as possible without affecting the look and feel of the final product. What are some techniques to ensure the site content is optimized?

  Creating loop to find number of items bought based on price

Make a block using a loop that will find the number of items that can be bought based on the price of the item and the total amount available to spend.

  Distinguish class templates and program with heading

Clearly distinguish each class templates and their program with heading. Elaborate each step and give it without errors. Develop classes or class templates for the following.

  Ethics and social responsibility

Ethics and social responsibility at McDonalds

  Write implementation of counter class

Write the implementation (.cpp file) of the Counter class. Here is the full specification of the class: A data member counter of type int.

  Explaining variable in an arrays of ints

Assume that variable A is an arrays of ints. Consider the following code segment.

  Explain multiprogrammed system available in user mode

CPU voltage and frequency or put it to sleep altogether. In a multiprogrammed system should this functionality be available in user mode or only accessible via system call. why or why not?

  Creating website-based sales system for retail firm

Assume that you have been hired to create website-based sales system for large international retail sales firm.

  Write pseudo algorithm to input age

Write a pseudo algorithm that inputs Age, displays "Yes, you can vote" if Age is 18 or older and displays "You are too young to vote" if Age is less than 18.

  Void function to display in nicely formated way

Write a void function display_exer() that display in a nicely formated way the eat members of an exerclass object. Pass the object to the function by reference.

  Program read weight of package of breakfast cereal in ounces

Write a program which will read the weight of package of a breakfast cereal in ounces and output weight in metric tons as well as number of boxes

  Develop computerized pot hole tracking and repair system

Department of public works for city has decided to develop computerized pot hole tracking and repair system. As pot holes are reported to customer service.

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