lab 5 scala
Budget: $10 – $30 USD
The program
asks for the age of the visitor, along with if the visitor wants to rent a cooler (take a Boolean
input, true/false) and if they want to include the Water Park (take a Boolean input).
If the visitor’s age is 13 or less, then there is a discount of 30% on the entrance cost. In addition,
the rental cost of a cooler is $10, and the Water Park is $19.
The program finally prints out a nice message output with the final price for the visitor’s ticket
asks for the age of the visitor, along with if the visitor wants to rent a cooler (take a Boolean
input, true/false) and if they want to include the Water Park (take a Boolean input).
If the visitor’s age is 13 or less, then there is a discount of 30% on the entrance cost. In addition,
the rental cost of a cooler is $10, and the Water Park is $19.
The program finally prints out a nice message output with the final price for the visitor’s ticket