Bill Calculator and Shipping Calculator in Python
Title of Lab: Bill Calculator and Shipping Calculator in Python
Summary – Part 1
Create a program that calculates the number of bills needed for a given dollar amount.
Summary – Part 2
Create a program that calculates the total cost of an order including shipping.
Deliverables
• 2 source code Python files copied/pasted into a Word document
• Screenshots containing the screen print of each program’s outputin the same Word document.
Lab Steps
Part 1 – Bill Calculator
Sample Output:
Bill Calculator
Enter number of dollars: 521
Hundreds: 5
Fifties: 0
Twenties: 1
Tens: 0
Fives: 0
Ones: 1
Continue? (y/n): y
Enter number of dollars: 99
Hundreds: 0
Fifties: 1
Twenties: 2
Tens: 0
Fives: 1
Ones: 4
Continue? (y/n): n
Bye!
Specifications:
• The program should display the minimum number of 100’s, 50’, 20’s, 10’s, 5’s and 1’s that one needs to make up the specified number of dollars entered.
• Assume that the user will enter a valid integer for the number of dollars.
• The program should continue only if the user enters “y” or “Y” to continue.
Part 2 – Shipping Calculator
Sample Output:
Shipping Calculator
Cost of items ordered: 49.99
Shipping cost: 4.50
Total cost: 54.49
Continue? (y/n): y
Cost of items ordered: -65.50
You must enter a positive number. Please try again.
Cost of items ordered: 65.50
Shipping cost: 7.86
Total cost: 73.36
Continue? (y/n): n
Bye!
Specifications:
Use the following table to calculate shipping cost:
Cost of Items Shipping Cost
< $35.00 5% of cost of items
$35.00 – $54.99 9% of cost of items
$55.00 – $79.99 12% of cost of items
> $80.00 Free
• If the user enters a number that’s less than zero, display an error message and give the user a chance to enter the number again.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
