[SOLVED] python graph Programs that keeps track of a running total of items the user is purchasing (shopping cart). This will allow the user to keep track of the total so they arent embarrassed at the cash register by not having enough $. The program should first ask the user how much $ they have this is the upper limit of how much they can spend. Then create a loop that asks the user to write in the description of the item, the item price, and the quantity. After an items is entered, print out the detail line (description Added to cart, quantity, amount, total) and print the total of the entire bill along with how much money they have remaining. If the user goes over their limit then warn them and tell them to put the last item away.

$25

File Name: python_graph_Programs_that_keeps_track_of_a_running_total_of_items_the_user_is_purchasing_(shopping_cart)._This_will_allow_the_user_to_keep_track_of_the_total_so_they_arent_embarrassed_at_the_cash_register_by_not_having_enough_$._The_program_should_first_ask_the_user_how_much_$_they_have__this_is_the_upper_limit_of_how_much_they_can_spend._Then_create_a_loop_that_asks_the_user_to_write_in_the_description_of_the_item,_the_item_price,_and_the_quantity._After_an_items_is_entered,_print_out_the_detail_line_(description_Added_to_cart,_quantity,_amount,_total)_and_print_the_total_of_the_entire_bill_along_with_how_much_money_they_have_remaining._If_the_user_goes_over_their_limit_then_warn_them_and_tell_them_to_put_the_last_item_away..zip
File Size: 6933.12 KB

5/5 - (1 vote)

Programs that keeps track of a running total of items the user is purchasing (shopping cart). This will allow the user to keep track of the total so they arent embarrassed at the cash register by not having enough $. The program should first ask the user how much $ they have this is the upper limit of how much they can spend. Then create a loop that asks the user to write in the description of the item, the item price, and the quantity. After an items is entered, print out the detail line (description Added to cart, quantity, amount, total) and print the total of the entire bill along with how much money they have remaining. If the user goes over their limit then warn them and tell them to put the last item away.
If multiple quantitiespushed them over the top then calculate how many they could buy and tell them that (and adjust it accordingly). For example, the cart total is $80 and they have $90 to spend, they enter Books with a value of $4.99 and a quantity of 4 (for an item total of $19.96. This would bring the total bill to $99.96 or $9.96 over the budget. Tell them they you have adjusted the quantity to 2 and theyhave to put 2 back in order to stay under the budget.
You must use the following somewhere in your code:
title() # Title function in python is the Python String Method which is used to convert the first character in each word to Uppercase and remaining characters to Lowercase in string and returns new string.
upper()
list container with a simple list record structure [ [item description, $1.03, 2], [],].
lower()
one of the whitespace strips (rstrip, lstrip, or strip)
or t
f-strings
An integer, a float, and a string
PLEASE USE MARKDOWN with headings (level-1, level-2, level3) and normal paragraph text.
Make sure to test for invalid entries (things cant be negative for example) and give the user a way to get out of the program. Make this as user friendly as possible,
Make sure you have appropriate comments in your code.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] python graph Programs that keeps track of a running total of items the user is purchasing (shopping cart). This will allow the user to keep track of the total so they arent embarrassed at the cash register by not having enough $. The program should first ask the user how much $ they have this is the upper limit of how much they can spend. Then create a loop that asks the user to write in the description of the item, the item price, and the quantity. After an items is entered, print out the detail line (description Added to cart, quantity, amount, total) and print the total of the entire bill along with how much money they have remaining. If the user goes over their limit then warn them and tell them to put the last item away.
$25