Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Programming Assignment # 6-100 points Tappan Gym Administration Background In this assignment, you will use the concepts of loops in C#, 1-D and 2-D arrays
Programming Assignment # 6-100 points Tappan Gym Administration Background In this assignment, you will use the concepts of loops in C#, 1-D and 2-D arrays in C# along with your previous knowledge of creating user-defined classes, methods, and constructors. You are going to create an application for a gym administrator, where at the end of the week, your program will help them view the enrollment in Zumba class, and the total revenue generated per day, per time-period and per week for that class Your Tasks For the Main) method in the Program class First, in the main method, ask the user to enter his or her name. In the main method, after displaying the user name, ask the user to enter 'Y for requesting the display of Zumba revenues. If user enters 'Y', then call a DisplayZumba() method defined in a different class called Zumba. Ask the user if he or she wants to exit the gym administrator interface. If the user enters N, then repeat steps 1-2 in a loop. If the user enters Y, then terminate the program. (Note: since steps 1-2 need to run at least once before the decision to repeat the steps is made, based on the user input; therefore, it is best to use the do...while loop structure). 1. 2. 3. For the Zumba class 4. Create a file called Zumba.cs. In this file under the same namespace as the Program class, create a class called Zumba. Write methods using loops to display the revenue generated by the Zumba class at the gym in a tabular format similar to Figure 1. Zumba is offered six days per week, four times a day, at 1:00, 3:00, 5:00, and 7:00 p.m. Attendees pay $4.00 per class for Zumba. Your program should produce a table displaying the number of attendees per time slot. Further, display an additional row and column of totals showing attendees by day and time-period and a grand total for the week. Also, include another column showing revenue generated each day and the total revenue at the end of the week and another row showing the revenue generated
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started