Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

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. Carpet. The concert hall manager needs to purchase 98 feet, 47 feet and 150 feet of red carpet. The carpet is sold in yards and we need a program to make the conversion. The algorithm should calculate and display the number of yards. Concession. Last year, the concession stand used 300,000 cups and 150,000 popcorn boxes. The managers estimate a 3% increase in attendance this year. The algorithm should calculate and display this years estimated quantity of needed cups and popcorn boxes. Tickets. The concert hall has three seating categories: Orchestra, Main Floor, and Balcony. Orchestra seats are $35. Main Floor seats are $30, and Balcony seats are $15. The manager wants a program that allows entry of the number of tickets sold in each seating category. The algorithm should calculate and display the amount generated by each seating category, as well as the total amount. 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. Pay. Concert hall employees are paid based on an annual salary rather than an hourly wage. However, some employees are paid weekly, while others are paid every other week (biweekly). Employees paid weekly receive 52 paychecks; employees paid biweekly receive 26 paychecks. The algorithm should calculate and display the gross pay for each employee.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions