Question: Can you help me with a Java Code: We are to write software for the checkout system of a video game rental store. Note: You

Can you help me with a Java Code:

We are to write software for the checkout system of a video game rental store. Note: You are not writing the entire checkout system. You are responsible for writing (and testing!) only the age-restricted part of the system.

The specification for your system is as follows: At the start of each rental transaction, the system will first scan a barcode to do a customer lookup. (Assume other people in the company will be writing the database software. Your software only needs to be passed a date of birth, followed by a progression of ratings. In other words, you will be using test stubs to test your software.)

After the date of birth is received, the system will scan barcodes on each game being rented. This time, instead of being passed a date of birth, the test stubs will return a series of video game ratings. Video game ratings and restrictions are shown in the accompanying table. This process loops until the cashier signal the end of the transaction (in other words, no more games to be scanned).

Ratings: EC E E10 T M AO
Age Restrictions: None None Must be 10 or older Must be 13 or older Must be 17 or older Must be 18 or older

The software must (1) correctly calculate an age given a date of birth and todays date, and (2) correctly determine whether or not each item being rented passes the stores age restriction policy or not.

Note:

**The program should be continued till the cashiers hit the end, the date format for current date and Birthdate is MM/DD/YYYY**

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!