Python Computer Science - Project 2 Expressions and Formatted Output

Question

Project 2 - Expressions and Formatted Output

 Write a program that will display the total sales after a sales transaction is completed.

 

Deliverables

  • The user enters the sales amount.
  • The user enters the sales tax rate (use decimals)
  • The program finds the tax amount and the total amount with the sales tax amount.
  • The program displays the sales amount, the tax amount and total amount with appropriate labels and formatted 2 decimal places.
  • Make sure to use main(), and few more functions

 

SAMPLE RUN (User entry is in RED)

 Enter the sales amount 100

Enter the sales tax rate .0825

 

Results

The sales amount $100

The tax amount $8.25

Total amount $108.25

Details
Attachments
Purchase An Answer Below

Have a similar question?