Welcome to Westonci.ca, where finding answers to your questions is made simple by our community of experts. Explore in-depth answers to your questions from a knowledgeable community of experts across different fields. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

A local pizza shop is selling a large pizza for $9.99. Given the number of pizzas to order as input, output the subtotal for the pizzas, and then output the total after applying a sales tax of 6%. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print('Subtotal: ${:.2f}'.format(yourValue))

Sagot :

The program requires a sequence control structure

The sequence control structure implies that, the program does not include any conditional statement, and it does not include iterative or repetitive operations.

The complete code in Python, where comments are used to explain each line is as follows:

#This gets input for the number of pizza from the user

count = int(input("Number of Pizza: "))

#This calculates the subtotal (without tax)

Subtotal = count * 9.99

#This calculates the total (with tax)

Total = Subtotal * 1.06

#This prints the subtotal

print('Subtotal: ${:.2f}'.format(Subtotal))

#This prints the total

print('Total: ${:.2f}'.format(Total))

At the end of the program, the total and the subtotal are calculated and printed.

See attachment for sample run

Read more about similar programs at:

https://brainly.com/question/14839980

View image MrRoyal