Oct-21-2020, 03:41 AM
you make valid points, and the reason it is setup in this way (could be written wrong) but that is how my teacher wants it written (she hasn't been much help at all)..
per my teacher:
Pg. 281 #7 Stadium Seating - your program MUST contain a main function, a calcIncome function, and a showIncome function.
Your main function should get the number of seats sold for each category. The values should be sent to a calcIncome function.
The calcIncome function should calculate the income from each category. Those values should be returned to the main function and those values should be sent to the showIncome function.
The showIncome function should calculate the total income generated from the ticket sales, display the income generated from each category AND display the total income generated.
(maybe this will help better understand my issue? maybe im overthinking it all or simply not grasping it fully)
per my teacher:
Pg. 281 #7 Stadium Seating - your program MUST contain a main function, a calcIncome function, and a showIncome function.
Your main function should get the number of seats sold for each category. The values should be sent to a calcIncome function.
The calcIncome function should calculate the income from each category. Those values should be returned to the main function and those values should be sent to the showIncome function.
The showIncome function should calculate the total income generated from the ticket sales, display the income generated from each category AND display the total income generated.
(maybe this will help better understand my issue? maybe im overthinking it all or simply not grasping it fully)