Get the answers you need at Westonci.ca, where our expert community is dedicated to providing you with accurate information. 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.
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
We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. Stay curious and keep coming back to Westonci.ca for answers to all your burning questions.