A program that asks the user to enter number of packages

Assignment Help Python Programming
Reference no: EM132330249

Question :

The Magic Software Company sells an educational game for young children called Alphabet Soup. The software retails for $97.99. Quantity discounts are offered to elementary schools according to the following table:

Quantity

Discount

10-19

10%

20-29

20%

30-39

30%

40 or more

40%

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. The dollar amounts should be right-aligned with each other (using format specifiers).

Make sure to include step comments in your program and header comments as follows:

Program name: ?????.py

Programmer: Your Name

Purpose: Write a sentence (or a few sentences) that describe the purpose of this program.

Reference no: EM132330249

Questions Cloud

Demonstrate the use of nested function calls : Add a function named clear_screen that uses a combination of the functions nine_lines, three_lines, and new_line.
Define a function that takes an argument : Define a function that takes an argument. Call the function. Identify what code is the argument and what code is the parameter.
Establish a socket to a dns server : A simple network application socket connection communication programming lab. Query the DNS server for a DNS host name or IP address.
Describe a strategy for avoiding nested conditionals : Give your own example of a nested conditional that can be modified to become a single conditional, and show the equivalent single conditional.
A program that asks the user to enter number of packages : The Magic Software Company sells an educational game for young children called Alphabet Soup. The software retails for $97.99.
Compute the total cost of owning the vehicle for five years : Compute the total cost of owning the vehicle for five years including the cost of the vehicle. Make a program that helps a person decide whether to buy a hybrid
Write a function that given a list of numbers returns true : Write a function that given a list of numbers, returns the length of the longest sequence of numbers within that list that forms an arithmetic progression.
Define a function write scores with two parameters : Define a function write Scores with two parameters . The first should be the name of a file , and the second should be a list of integer scores.
Determine the length of the longest word in the phrase : Use python that takes a number which corresponds to a month of the year and displays the three-character abbreviation of the corresponding month.

Reviews

Write a Review

Python Programming Questions & Answers

  Revise function compare_files to accomplish the work describ

Revise function "build_word_index" to accomplish the specified work. Revise function "compare_files" to accomplish the work described in the comments. Test the revised program using the sample documents.

  Write python code to implement a basic number guessing game

CSIS1101- Write Python code to implement a basic number guessing game. The program will choose a random number between 1 and 9 (inclusive) using randint() .

  Write a program that uses a bar

Write a program that uses a bar chart to display the percent-ages of the overall grade represented by the project, quizzes the midterm exam and the final exam

  1 checking for a circle on a line by itself your program

1. checking for a circle. on a line by itself your program must either print is a circle yes or is a circle no

  What does that mean in real life

Build a table to be used as the basis for a directed weighted graph - Find the 3 stations with the highest in-degree. What does that mean in real life

  Design a program that will calculate total cost of equipment

In this workshop you will do the planning for a programming problem and implement your solution in Python - Design a program that will calculate the total cost

  Ida to reverse engineer a piece of shellcode

You are a Malware Investigator at 0xC0ff33, Inc and an incident responder came across injected shellcode during an investigation. He has done all he can in IDA and has passed on the .idb file to you. Figure out what the purpose of the malware was ..

  What are files and what are the benefits of using files

Write a Python program that reads a text file 'sentence.txt' containing four lines of text and prints those lines.

  The integers should be printed in order with addresses

The integers should be printed in order with addresses from main. When the steps of the function order have been completed the smallest value will be stored in a, the middle in b, and the largest in c.

  Write a program that simulates a traffic light

Write a program that simulates a traffic light. The program lets the user select one of three lights: red, yellow, or green.

  Calculate the biorhythms for an individual and present

Explain the importance of programming style concepts - Develop self-reliance and judgement in adapting algorithms to diverse contexts

  Define function which takes a decimal number as an input

HOLMES INSTITUTE - HS1031 Introduction to Programming Assignment - Define a function conversion.py which takes a decimal number as an input

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