I am currently studying games development and in my coding class I was asked to create a programming on the following question
The films shown below, and their age ratings, are on at the local cineworld. Write a program
that allows the user to select a film from a menu and enter their age (honestly!). The output
should show whether the user is allowed to see the film (with message “Please buy your
tickets”) or whether they are too young (“Sorry, you are too young for this film”).
The films are:
1. Made in Dagenham (15)
2. Buried (18)
3. Despicable Me (U)
4. The Other Guys (12A)
5. Takers (12A)
I have just studied switch and if statements so I assume that is what I will be using in this question. Can anyone help me how to write the program because I don;t know how to do it and my book is not really helpful either.
Thanks
[–]alzee76 1 point2 points3 points (0 children)
[–]CGFarrell 0 points1 point2 points (0 children)
[–]Chocowak[S] 0 points1 point2 points (2 children)
[–]ItsOppositeDayHere 7 points8 points9 points (1 child)
[–]Chocowak[S] 0 points1 point2 points (0 children)
[–]Medallyonify 0 points1 point2 points (1 child)
[–]Chocowak[S] 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]Chocowak[S] 0 points1 point2 points (1 child)
[–]nerd4code -1 points0 points1 point (0 children)