Question: **USE PYTHON ONLY** - C reate a simple RBAC (Role-Based) system in Python. - T he following system is compromised of ages and movie categories.

**USE PYTHON ONLY**

-Create a simple RBAC (Role-Based) system in Python.

-The following system is compromised of ages and movie categories. Certain movies are restricted to certain age groups, based upon this create a simple python code that will provide the following:

-Rating G: General Audience (Anybody any age can view this movie) (Any age to be able to view this movie)

Print: (Congratulations, you are able to view this movie!)

-Rating PG-13: Nobody under the age of 13 can view these movies (13yrs old or more only to be able to view this movie) Print (IF UNDER 13): (Sorry! your age restricts you from viewing this movie, please wait until you turn 13!)

OTHERWISE PRINT (IF 13 OR OVER): Print: (Congratulations, you are able to view this movie)

-Rated R: Nobody under the age of 17 can view this movie (17yrs old or more only to be able to view this movie)

Print (IF UNDER 17): (Sorry! your age restricts you from viewing this movie, please wait until you turn 17!)

OTHERWISE PRINT (IF 17 OR OVER): Print: (Congratulations, you are able to view this movie)

-Rated NC-17: Nobody 17 and under can view this movie. (18yrs old or more only to be able to view this movie)

Print (IF UNDER 18): (Sorry! your age restricts you from viewing this movie, please wait until you turn 18!)

OTHERWISE PRINT (IF 18 OR OVER): Print: (Congratulations, you are able to view this movie)

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!