ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 11 Weeks Ago, 1 Day Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 09 May 2017 My Price 9.00

Write a program to calculate the bill.

Hi I need help with the python code to this question. I've figured out the first portion, but I'm stuck on the second part with tax return and total cost.

 

Write a program to calculate the bill.

  1. The program will continuously prompt the user to enter the name of the item purchased, then prompt for the price of the item, and lastly ask for the quantity. This process will repeat until the user types "CHK" in capital letters.
  2. After "CHK" is typed, the program will ask for the tax rate.
  3. The program will display a formatted table like the example displayed below.

NOTES:

  • The program should work for an arbitrary large number of items
    • Assume he doesn't only buy carrots
  • Your program must show exactly 2 decimal places when printing the bill
  • Your program must round properly
  • Formatting is important!
    • However, don't worry about having the columns aligned up perfectly based on digit placement (ex, tax row within the totals column)

 

Attachments:

Answers

(11)
Status NEW Posted 09 May 2017 06:05 AM My Price 9.00

-----------

Not Rated(0)