The RentFlix business has tasked you with creating a Java application that will calculate subscription
prices for their customers depending on if they are DVD subscribers or Streaming subscribers.
Only the program requirements/specs are provided. I am not providing starter files or starter code. I
want to see what types of algorithms/solutions you can come up with. If you need clarification or hints,
please e-mail Mr. Surratt specific detailed questions, or join the open lab/homework help Zoom
sessions.
Program Requirements (Does not require application user input)
1) Create an abstract RentFlixSubscription class with fields for the subscriber name, address, and
rate.
2) Create two subclasses named DvdSubscription and StreamingSubscription. The parameter for
the setAddress() method of the DvdSubscription class must contain at least one digit; otherwise,
an error message is displayed and the subscription rate is set to 0. If the address is valid, the
subscription rate is assigned $20. The parameter for the setAddress() method of the
StreamingSubscription class must contain an at sign (@) or an error message is displayed. If the
address is valid, the subscription rate is assigned $12.
3) Write an application that declares several objects of both subscription subtypes and displays
their data fields.
4) Save the files as RentFlixSubscription.java, DvdSubscription.java, StreamingSubscription.java,
and DemoRentFlix.java.