Question

In: Computer Science

The Peacock Concert Hall is the gem of the community offering local and national acts to...

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.

Solutions

Expert Solution

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)

===============================================================================


Related Solutions

A music conservatory has two concert halls. One concert hall had a pipe organ that was...
A music conservatory has two concert halls. One concert hall had a pipe organ that was in poor repair, and the other had no organ. The conservatory decided to buy a new organ for its concert hall with no organ. After some negotiation, the conservatory entered into a contract with a business that both repairs and sells organs. Under the contract, the business agreed to sell a new organ to the conservatory for its concert hall for $225,000 and would...
PYTHON Given a 2D array with the layout of the floor of a concert hall and...
PYTHON Given a 2D array with the layout of the floor of a concert hall and the height (in dwillyinches, a logarithmic measurement of height) of each concert attendee, write a program that determines if every attendee can see the front stage. An attendee can see the front stage if they are strickly taller than all of the attendees in front of them. Everyone can see the front-stage in the example below: # FRONT STAGE [[1, 2, 3, 2, 1,...
A chandelier with mass mmm is attached to the ceiling of a large concert hall by...
A chandelier with mass mmm is attached to the ceiling of a large concert hall by two cables. Because the ceiling is covered with intricate architectural decorations (not indicated in the figure, which uses a humbler depiction), the workers who hung the chandelier couldn't attach the cables to the ceiling directly above the chandelier. Instead, they attached the cables to the ceiling near the walls. Cable 1 has tension T1T1T_1 and makes an angle of θ1θ1theta_1 with the ceiling. Cable...
Discuss the existing resources within the community at the local, regional, and national level. • Identify...
Discuss the existing resources within the community at the local, regional, and national level. • Identify strengths and weaknesses of the community that would be integral in the formulation of a community health strategy. • Analyze opportunities that exist for improving the health of the community. • Identify barriers that may impact successful implementation of a community health strategy in Boston. Please include sources.
A musician in a concert hall is tuning her wind instrument. When she plays a short...
A musician in a concert hall is tuning her wind instrument. When she plays a short note she hears the echo of the note return from the opposite side of the 50.0 meter long auditorium 0.294 seconds later. Model the instrument as a tube closed at one end, if the instrument is properly tuned the note of the musician played would have a frequency of 233.082 Hz, but instead has a frequency of 226.513 Hz. This note is the first...
A musician in a concert hall is tuning her wind instrument. When she plays a short...
A musician in a concert hall is tuning her wind instrument. When she plays a short note she hears the echo of the note return from the opposite side of the 50.0 meter long auditorium 0.294 seconds later. Model the instrument as a tube closed at one end, if the instrument is properly tuned the note of the musician played would have a frequency of 233.082 Hz, but instead has a frequency of 226.513 Hz. This note is the first...
What is the main geographical focus of corporate social responsibility? A. Community/Local B. Regional/National C. Global/National...
What is the main geographical focus of corporate social responsibility? A. Community/Local B. Regional/National C. Global/National D. None of the above
A concert hall has 9,000 seats and two categories of ticket​ prices, ​$26 and ​$46. Assume...
A concert hall has 9,000 seats and two categories of ticket​ prices, ​$26 and ​$46. Assume that all seats in each category can be sold. Concert 1 2 3 Tickets sold 9,000 9,000 9,000 Return required ​$274,000 ​$254,000 ​$411,000 a. How many tickets of each category should be sold to bring in each of the returns indicated in the​ table? ​$26 Tickets ​$46 Tickets Concert 1 ______. ______ Concert 2 ______ ______ Concert 3 ______. ______
The community health nurse is preparing a program about hypertension for a local community center. The...
The community health nurse is preparing a program about hypertension for a local community center. The focus of the program is on the reduction of risk factors and compliance for those who have been diagnosed with high blood pressure. The target population includes older adults. a.The nurse focuses on primary hypertension because it accounts for 90% - 95% of hypertension in the United States. What risk factors does the nurse include for this population? Smoking, elevated LDL’s and total cholesterol,...
Explain how an organization affects the prosperity of a local community or its host community
Explain how an organization affects the prosperity of a local community or its host community
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT