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 20 pounds or more 10 pounds or more 1 to 9 pounds $7.50 per lb. $8.75 per lb. $10.00 per Ib. $12.00 per Ib. • 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

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
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
20 pounds or more
10 pounds or more
1 to 9 pounds
$7.50 per lb.
$8.75 per Ib.
$10.00 per lb.
$12.00 per Ib.
• 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
Transcribed Image Text: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 20 pounds or more 10 pounds or more 1 to 9 pounds $7.50 per lb. $8.75 per Ib. $10.00 per lb. $12.00 per Ib. • 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
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY