Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The Tiger King Zoo needs to track expenses and calculate the expenses per Tiger housed. The app should work like this: Declare a constant for
The Tiger King Zoo needs to track expenses and calculate the expenses per Tiger housed. The app should work like this:
- Declare a constant for the number of tigers currently in the zoo. Set the constant to 6 tigers.
- Declare an array of 7 expenses- one for each day of the week.
- Prompt the user to enter an expense greater than zero.
- If the expense is greater than zero, then place the expense in the array. Continue until all 7 expense values have been added to the array.
- Display to the user the sum of expenses for the week
- Display to the user the expenses per tiger for the week
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