Create a Java Program for Cinema:
1. First of all, request the age from the user.
2. Then, depending on their age, the movie types will be displayed and the user should select one of them.
3. After that, all movies of that type will be displayed with their price and the user should select one of them.
4. Then, the system should ask the user if they want snacks or not. If yes, the snacks list will appear with prices and the user should select what they want.
5. At the end, the total cost will be displayed.
Requirements:
Classes:
- Include at least 8 classes.
- 1 driver class including the main function.
- Apply inheritance (at least 2 subclasses).
- Include 1 exception class.
Methods:
- Apply encapsulation (setter and getter methods, at least 8 methods excluding setter and getter methods).
- Include 1 override method.
- Include 1 constructor method.
Other:
- Use control statements.
- Use loops.
- Deal with arrays.