Answered step by step
Verified Expert Solution
Link Copied!

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

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

Project Management in Practice

Authors: Samuel J. Mantel Jr., Jack R. Meredith, Sco

4th edition

470533013, 978-0470533017

More Books

Students also viewed these General Management questions

Question

Why is the package an important venue for advertising messages?

Answered: 1 week ago

Question

What must happen for a message to be successfully processed?

Answered: 1 week ago