CIS115 Week 3 Lab Latest 2020 December

Question

Dot Image

CIS115 Programming Logic and Design

Week 3 Lab

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.

Having Trouble Meeting Your Deadline?

Get your assignment on CIS115 Week 3 Lab Latest 2020 December completed on time. avoid delay and – ORDER NOW

Dot Image

Order Solution Now

Similar Posts