O Write a literate version of the code O EXPLAIN HOW YOUR PROGRAM WORKS O Write a program using counter controlled FOR loop statements. O Write a program that creates user-defined types, defining and using records. O Write a program that has at least one method that take argument(s) and returns a result O Write a program that includes useful comments, at least one per method saying what it do O Write a program that uses indentation in a way that makes its structure clear. O Write a program that uses variable names that give an indication of their use. When your program works, test it and check it ticks all the above boxes then have it assessed by a demonstrator. If you are having problems or don't understand the requirements ask for help. Tourist Attraction Information Write a program that gives information about tourist attr The user should first input how many tourist attractions they wish to ask about and then be a to name that many places. The program should give their opening time (assumed on the hou. the morning for the purposes of this exercise) and whether they open on bank holidays. A ne called Attraction must be created (a record type) and each separate piece of information abo attraction should be stored in a separate field of the record (its name - a String, opening time integer, 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 retur String containing the correct information about the attraction to print. The String should ther printed by the calling method. An example run of the program (bold words are typed by the Your answer need only include the information about known stations as in this example. How many attractions do you need to know about? 4 Name attraction 1? The Eden Project The Eden Project opens on bank holidays. It opens at 9am. Name attraction 2? Tate Modern Tate Modern does not open on bank holidays. It opens at 10am. Name attraction 3? The Zoo I have no information about that attraction. Name attraction 4? London Zoo London Zoo opens on bank holidays. It opens at 10am.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter7: Using Methods
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question

JAVA PROGRAMMING EXERCISE

Write a literate version of the code
EXPLAIN HOW YOUR PROGRAM WORKS
Write a program using counter controlled FOR loop statements.
Write a program that creates user-defined types, defining and using records.
Write a program that has at least one method that take argument(s) and returns a result
Write a program that includes useful comments, at least one per method saying what it do
Write a program that uses indentation in a way that makes its structure clear.
Write a program that uses variable names that give an indication of their use.
When your program works, test it and check it ticks all the above boxes then have it assessed by a
demonstrator. If you are having problems or don't understand the requirements ask for help.
Tourist Attraction Information Write a program that gives information about tourist attr
The user should first input how many tourist attractions they wish to ask about and then be a
to name that many places. The program should give their opening time (assumed on the hou
the morning for the purposes of this exercise) and whether they open on bank holidays. A ne
called Attraction must be created (a record type) and each separate piece of information abor
attraction should be stored in a separate field of the record (its name - a String, opening time
integer, 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 retur
String containing the correct information about the attraction to print. The String should ther
printed by the calling method. An example run of the program (bold words are typed by the
Your answer need only include the information about known stations as in this example.
How many attractions do you need to know about? 4
Name attraction 1? The Eden Project
The Eden Project opens on bank holidays.
It opens at 9am.
Name attraction 2? Tate Modern
Tate Modern does not open on bank holidays.
It opens at 10am.
Name attraction 3? The Zoo
I have no information about that attraction.
Name attraction 4? London Zoo
London Zoo opens on bank holidays.
It opens at 10am.
00000 000
Transcribed Image Text:Write a literate version of the code EXPLAIN HOW YOUR PROGRAM WORKS Write a program using counter controlled FOR loop statements. Write a program that creates user-defined types, defining and using records. Write a program that has at least one method that take argument(s) and returns a result Write a program that includes useful comments, at least one per method saying what it do Write a program that uses indentation in a way that makes its structure clear. Write a program that uses variable names that give an indication of their use. When your program works, test it and check it ticks all the above boxes then have it assessed by a demonstrator. If you are having problems or don't understand the requirements ask for help. Tourist Attraction Information Write a program that gives information about tourist attr The user should first input how many tourist attractions they wish to ask about and then be a to name that many places. The program should give their opening time (assumed on the hou the morning for the purposes of this exercise) and whether they open on bank holidays. A ne called Attraction must be created (a record type) and each separate piece of information abor attraction should be stored in a separate field of the record (its name - a String, opening time integer, 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 retur String containing the correct information about the attraction to print. The String should ther printed by the calling method. An example run of the program (bold words are typed by the Your answer need only include the information about known stations as in this example. How many attractions do you need to know about? 4 Name attraction 1? The Eden Project The Eden Project opens on bank holidays. It opens at 9am. Name attraction 2? Tate Modern Tate Modern does not open on bank holidays. It opens at 10am. Name attraction 3? The Zoo I have no information about that attraction. Name attraction 4? London Zoo London Zoo opens on bank holidays. It opens at 10am. 00000 000
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,