Write a JAVA procedural program that gives information about tourist attractions.The user should first input how many tourist attractions they wish to ask about and then be allowedto name that many places. The program should give their opening time (assumed on the hour and inthe morning for the purposes of this exercise) and whether they open on bank holidays. A new typecalled Attraction must be created (a record type) and each separate piece of information about anattraction should be stored in a separate field of the record (its name - a String, opening time - aninteger, closing time - an integer, and whether they open on bank holidays -a boolean).A separate method must be written that given a String (an attraction name) as argument returns aString containing the correct information about the attraction to print. The String should then beprinted by the calling method. An example run of the program (bold words are typed by the user):Your answer need only include the information about known stations as in this example.
The first image is an example run of the program. The second is an image of the template you should follow when creating the program.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here