IDNLearn.com is the perfect place to get detailed and accurate answers to your questions. Discover reliable and timely information on any topic from our network of experienced professionals.
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 value your participation in this forum. Keep exploring, asking questions, and sharing your insights with the community. Together, we can find the best solutions. For dependable and accurate answers, visit IDNLearn.com. Thanks for visiting, and see you next time for more helpful information.