In: Computer Science
The Peacock Concert Hall is the gem of the community offering local and national acts to the community. Through gifts from its donors, the management continually strives to renovate its facilities and improve its processes. Write algorithms for the following scenarios. Desk-check your algorithm with at least 3 values. Include your algorithm and evidence of your desk-checks in your submission.
4. Sales. The concert hall manager wants to a calculate monthly ticket sale total by entering daily sales total for each day of the month. The algorithm should allow input of 31 daily tickets sales (both a total quantity and a total amount) and calculate the total for the month. The algorithm should calculate and display both the total number of tickets and the total dollar amount of the tickets.
Here is the algorithm to calculate the total sold ticket and total sales. For this problem, we have declared two variables which are set to value 0. A while loop which runs for 31 times for each day, ask the user to enter the tickets sold and total earning for the day. Once it has been provided, the variables are updated with the current day count and figures.
Once the while loop, ends the alogrithm prints the total count and total sales for the month
===============================================================================
day=1
monthly_ticket_sold=0
monthly_sales=0
while (day<=31 {
tickets_sold=input('Enter tickets sold ')
daily_sales=input('Enter sales ')
monthly_ticket_sold=monthly_ticket_sold+tickets_sold
monthly_sales=monthly_sales+daily_sales
day=day+1
}
print("Total tickets sold in this
month:",monthly_ticket_sold)
print("Total sales in this month:$",monthly_sales)
===============================================================================