Ebony C. answered 01/25/23
Current software developer with 4+ years of professional experience
Best to create a function that returns the value:
Calculates the total including sales tax (8.875%) of a shopping trip.
Create a total variable and a tax variable. Total the items calculated with tax. Be sure to test if the price is above zero.
Continues to prompt the user to enter prices until they are done. Hint: enter a while loop until the user types ‘done’ at the prompt.