Details of the code will be covered in class after a week or two. This version will also be a console-based text mode application. Do this repeatedly until a valid value is entered. For the two items that require a number as input, catch any NumberFormatException and set default values of 10 for days to rent, and 1 for number of drivers. The program should calculate and display the following.
Total cost is everything including tax.
Cost per day is total cost divided by number of rental days. Make up your own clear and meaningful names. This method should see if that choice is one of the permitted choices in the array of strings. If found, this method returns true. Note that all arrays in Java have a property called length which returns the current number of items in the array.