Validation

Bonus: transactions

Teagan's Poet
Teagan's Poet

Bonus lessons are optional.

Let's write a basic transaction processing system (TPS - not that one). A TPS tracks business events, like sales, inventory control... the regular stuff of business operations.

Ulma's Ungulates

Write a program to compute the price of renting an animal from Ulma's Ungulates.

Input dog size

Write a program asking the user what size dog they want: small, medium, or large. Here's some I/O:

Parade length

Write a program to help small towns estimate the length of parades, like their July 4th parade.

Parades have floats and marching bands. Each float needs 30 meters. Each band needs 50 meters.

Sample I/O: