3prep Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the price per pound depends upon the quantity ordered according to the table shown below. Partial pounds are not sold. Shipping is $1.00 per pound, but free for coffee orders over $150 before tax. The user must enter the number of pounds desired from the keyboard. The program will then display the cost of the coffee, the 7% sales tax, shipping charges (if any) and the total amount due. All four values should be displayed in currency format with the $ sign right up against the first digit. See SAMPLE OUTPUTS below.MoonBucks Coffee Company - Coffee Prices40 pounds or more          $7.50 per lb.20 pounds or more          $8.75 per lb.10 pounds or more          $10.00 per lb.1 to 9 pounds                  $12.00 per lb. Start with a comment that includes your name and course number. Include pseudocode that describes all steps required to solve the problem. Employ variable names that describe the values they store and adhere to Python naming conventions. Include additional comments as needed to annotate your code. Use correct spelling and grammar. SAMPLE OUTPUTHow many pounds are you ordering? 15Cost of coffee $150.007% sales tax $10.50Shipping fee $15.00Total payable $175.50 SAMPLE OUTPUTHow many pounds are you ordering? 50Cost of coffee $375.007% sales tax $26.25Shipping fee $0.00Total payable $401.25

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 2CP
icon
Related questions
Question

3prep

Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the price per pound depends upon the quantity ordered according to the table shown below. Partial pounds are not sold. Shipping is $1.00 per pound, but free for coffee orders over $150 before tax. The user must enter the number of pounds desired from the keyboard. The program will then display the cost of the coffee, the 7% sales tax, shipping charges (if any) and the total amount due. All four values should be displayed in currency format with the $ sign right up against the first digit. See SAMPLE OUTPUTS below.
MoonBucks Coffee Company - Coffee Prices
40 pounds or more          $7.50 per lb.
20 pounds or more          $8.75 per lb.
10 pounds or more          $10.00 per lb.
1 to 9 pounds                  $12.00 per lb.

  • Start with a comment that includes your name and course number.
  • Include pseudocode that describes all steps required to solve the problem.
  • Employ variable names that describe the values they store and adhere to Python naming conventions.
  • Include additional comments as needed to annotate your code.
  • Use correct spelling and grammar.

SAMPLE OUTPUT
How many pounds are you ordering? 15
Cost of coffee $150.00
7% sales tax $10.50
Shipping fee $15.00
Total payable $175.50

SAMPLE OUTPUT
How many pounds are you ordering? 50
Cost of coffee $375.00
7% sales tax $26.25
Shipping fee $0.00
Total payable $401.25

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,