Write program to enter number of packages purchased

Assignment Help Programming Languages
Reference no: EM1365000

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: EM1365000

Questions Cloud

Find out the velocity of the plane relative to the earth : Find out the velocity of the plane relative to the earth.
Managing local and core data : Why do you categorize the examples you chose into these categories and does the organization manage data in these three categories?
Services provided by homecare : What are the services provided by homecare? Are there financial benefits to using homecare services? And, what examples of technology can you identify and discuss that are being used in home health care?
Determine sensitivities of the portfolio : Based on a three factor model, consider a portfolio composed of three securities with the following characteristics, determine the sensitivities of the portfolio to factors 1, 2, and 3?
Write program to enter number of packages purchased : Write a program that asks the user to enter the number of packages purchased.The program should then display the amount of the discount.
Find the angle counterclockwise relative to the horizontal : find the angle counterclockwise relative to the horizontal.
Communicating for effective change : What role does managerial communication play in the emergence of an organization's consensus surrounding change
Explain and identify the fixed path : Explain and Identify the fixed path and variable path material-handling equipment commonly found in supermarket.
Material in the healthcare field : Describe with specific examples how at least five management principles, methods, theories, or tools studied can positively impact change in a healthcare organization. How can we utilize this material in the healthcare field?

Reviews

Write a Review

Programming Languages Questions & Answers

  Function to convert a decimal input into roman numerals

Write a function that converts a decimal input into Roman Numerals. Your function will take in a number and output a string.

  Write a driver program to test class

Create a class called Rational for performing arithmetic with fractions. Write a driver program to test your class. Use integer variables to represent the private instance variables of the class-the numerator and the denominator.

  Function to count number of times the given number occured

Write a main function to input 20 integers in the range of 1 to 6. Write a function to count the number of times the numbers 2 and 5 occur. The function should declare static variables count2 and count5.

  Write program to accept data for each student

Write a program that accepts data for each student in the school - Student ID, classroom number, and score on the achievement test. Design a program that lists the total points scored for each of the 30 classrooms.

  Learn redirecting standard output

Learn redirecting standard output (stdout) to a file using the output redirection operator

  Write code for member method expand

Write code for the member method expand. To keep the code simple, you may assume that the array element has enough capacity and does not need to be resized.

  Does loop have dependences two-dimensional arrays

Consider the following code with two-dimensional arrays. Does this loop have dependences? Can these loops be written so they are parallel?

  Create xml document to mark nutrition facts for cookies

Create an XML document that marks up the nutrition facts for a package of Grandma White's cookies. A package of cookies has a serving size of 1 package and the following nutritional value per serving.

  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.

  Write script in fedora to automate complex system task

Write a script in fedora 10 that will automate a complex system task. The task I have chose is one that will determine the processes that are consuming system resources.

  Design fraction class to represent numerator and denominator

Design a fraction class. The class should have 2 data members to represent the numerator and denominator. Both of these numbers should obviously be integers.

  Explaining handles clause of sub procedure

You are asked to design a form with a textbox named txtQty, a label named lblStatus, and a button named btnGetStatus. What will be Handles clause at the end of sub procedure?

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