Jape Joint

Tags
Challenge
No

The Jape Joint is a small goat-only comedy club. It has 40 small stalls that can hold up to three goats. Small stall tickets are $39.95 each. It also has 20 big stalls that can hold up to six. Tickets are $99.95 for the bigs.

Write a program to compute sales, and warn the user if stalls are oversold. Here's some I/O. Assume users don't make mistakes.

  • Jape Joint Sales
  • ==== ===== =====
  •  
  • Big stalls sold? 1
  • Small stalls sold? 1
  •  
  • Big stall sales: $ 99.95
  • Small stall sales: $ 39.95
  • Total: $ 139.9

Some more:

  • Jape Joint Sales
  • ==== ===== =====
  •  
  • Big stalls sold? 21
  • Warning: big stalls oversold!
  • Small stalls sold? 41
  • Warning: small stalls oversold!
  •  
  • Big stall sales: $ 2098.95
  • Small stall sales: $ 1637.95
  • Total: $ 3736.9

Upload a zip of your project folder. The usual coding standards apply.

Where referenced