Assessment item 1 Assignment 1 Value: 10% Due date: 18-Mar-2015 Return date: 08-Apr-2015 Submission method options EASTS (online) Task Assessment 1 has total 10 marks. Marks will be scaled according to the value of the assignment. There are two tasks in assessment 1, Task1: display a pattern and Task 2: calculate entry charges of a Zoo. Task 1 Value: 3 marks Write a Java program that displays DO JAVA as following pattern: Hint: You may need to use the System.out.println() function. Use one vertical space between two letters in a word and two vertical spaces between two words (i.e., DO and JAVA). Task 2 Value: 7 marks Problem Description: Write a Java program to solve the problem presented below. You may assume that the user will always enter valid data; you do not have to perform data validation. The entry charges to a zoo are: Children 5 years old and younger: free Accompanied children from 6 to 15 years old: $2 each Unaccompanied children from 6 to 15 years old: $5 each Adults from 16 to 59 years old: $10 each Seniors from 60 years and older: $8 each An accompanied child is defined as one in a family group accompanied by an adult or a senior. An adult or senior can only count as accompanying one child from 6 to 15 years old. No limit is placed on the number of children 5 years old and younger, which is perhaps a failing on the part of the zoo authorities, but simplifies your problem. Ages are integers. Your program will calculate and display the entry charge for each family group and also display the total takings for a sequence of groups. In this process it will correctly determine the number of accompanied children and those not counted as accompanied in each family group. It will request the user to enter the number of children (6 – 15 years old), the number of adults (16 – 59 years old) and the number of seniors (60+ years old) for each group, and it will display the entry charge for each group. The following shows a sample run. Enter a group? (Yes=1/No=0): 1 Enter the number of children (age 6–15): 5 Enter the number of adults (age 16–59): 2 Enter the number of seniors (age 60+): 1 Total entry charge is $44 Enter a group? (Yes=1/No=0): 1 Enter the number of children (age 6–15): 1 Enter the number of adults (age 16–59): 2 Enter the number of seniors (age 60+): 0 Total entry charge is $22 Enter a group? (Yes=1/No=0): 0 Total takings: $66 Rationale This assignment has been designed to allow students to test and demonstrate their ability to: be able to implement basic algorithms in Java (objective 1) be able to apply basic testing and debugging techniques in program development (objective 6) Marking criteria These criteria will be used to evaluate Assignment 1: The tasks are performed as specified and the assignment is submitted as required Appropriate understanding of the subject area is demonstrated, including correct use of approriate techniques Explanations and discussions are cogent and use clear and correct English expression Referencing is used where appropriate Marking guide specific to tasks: Assessment 1 (Total marks 10) Task 1 (total marks 3) Criteria Marks Pass CR DI HD a. Execution: Program launches, executes and terminates without crashing; program executes as specified. 0.5 Provide java file and it executes without crashing towards intended output (0.5) b. Program design & implementation: An appropriate main method with the display specified in the question 1.5 Execute and print the letters with some alignment problem(0.75) Execute and print all letters with accurate spacing & alignment (1.5) c. Presentation: Code uses good style (indentation, comments) 0.5 Few comments and minor indentation errors (0.25) Proper indentation in each block and comments in major lines and blocks (0.5) d. Submission: the documents with all components ( java code and output) 0.5 Provide a sample output (0.5) Task 2 (total marks 7) Marks Pass CR DI HD a. Execution: Program launches, executes and terminates without crashing; program executes as specified. 1.0 Provide java file and it executes without crashing towards intended output (1.0) b. Program design & implementation: Programs includes correct implementations of (i) total entry charge , (ii) total taking [1.5], (iii) good design with logic [1.0] 4.5 Execute and compute the entry charges correctly for the given examples (2.25) Execute but compute the entry charges with minor errors in one/two options (3.0-4.0) Execute and compute the correct entry charges with proper java structure and logical flow (4.5) c. Presentation: Code uses good style (indentation, comments) 0.5 Few comments and minor indentation errors (0.25) Proper indentation and comments in each block and major lines (0.5) d. Submission: The document with all components (analysis, testing, and output) 1.0 Provide sample output (0.5) Provide all components within the specified word length(1.0) Presentation Material to submit for Task 1 1. You need to submit the java and class files 2. You need to submit a doc/pdf file with a snapshot of the program output Material to submit for task 2 1. You need to submit the java and class files 2. You also need to submit a doc/pdf file with following information: a. Analysis: Describe the problem including input and output in your own words (not more than 150 words) b. Testing & Output: Describe how you tested this program (not more than 150 words) with snapshots of the program output Requirements To complete this assignment you might need to have covered material up to and including the topic Selection and Looping in the Text Book and Module.