Develop a java program that uses object-oriented

Assignment Help JAVA Programming
Reference no: EM131649308

Assignment

Overview

This is an individual assignment that requires you to design, develop and test a small Java program using object-oriented approaches.

Learning Outcomes Assessed

The following course learning outcomes are assessed by completing this assessment:
- Identify and use the correct syntax of a common programming language
- Recall and use typical programming constructs to design and implement simple software solutions
- Reproduce and adapt commonly used basic algorithms
- Utilise pseudocode and/or algorithms as a major program design technique
- Write and implement a solution algorithm using basic programming constructs
- Demonstrate debugging and testing skills whilst writing code
- Develop self-reliance and judgement in adapting algorithms to diverse contexts
- Design and write program solutions to identified problems using accepted design constructs

Assessment Details

Maths Whiz! is a competition for local school children to compete against each other to find out who is the ultimate Maths Whiz Champion for the region. Two students from each school are selected to compete in the Championship Round.
Your task is to design, develop and test a small application for managing the Championship results.

Stage 1: Design

This stage requires you to prepare documentation that describes the function of the program and how it is to be tested. There is no coding or code testing involved in this stage. A document template has been provided for your use.

Requirements:

1) Read through Stage 2: Program Development to obtain details of the requirements of this program.

2) Write an algorithm that describes how the program will operate.
a. All program requirements must be included, even if you do not end up including all these requirements in your program code.
b. The algorithm must be structured logically so that the program would function correctly.

3) Prepare and document test cases that can be used to check that the program works correctly, once it has been coded. You do NOT need to actually run the test cases in this stage; this will occur in Stage 3: Testing.
a. All program requirements must be included, even if you do not end up including all these requirements in your program code.
b. Make sure the test cases include checking of data entered by the user to make sure that only valid data is accepted. If the user enters invalid data, the user should be informed of this and given another chance to enter the data. NB: As we have not covered exception handling, you may assume that the user will always enter the expected data type.
c. Test cases should be documented using a template like the one below. You may include extra information if you wish. At this stage, the Actual Result column will be left blank.

Stage 2: Program Development

Using the Design Documentation to assist you, develop a Java program that uses object-oriented coding approaches to record and report upon the Maths Whiz! Championship round, implementing the requirements outlined in this section.
You must follow coding conventions, such as proper layout of code, using naming conventions and writing meaningful comments throughout your program.

Overview of the Program:
This section provides an overview of how the program works from the user's perspective. You may change the appearance of the program provided you implement the same functionality.

1. When the program starts, it provides a short message for initializing the contest administration system and prompts the user to enter the number of questions in the competition. The user must enter a whole number greater than or equal to 1, otherwise the system keeps prompting for the required number of questions until a valid entry is made.

2. Once the number of questions required is obtained, the program automatically initialises. This initialisation includes creating the contest, creating the schools, creating the students and registering the students in the contest.

3. When initialisation is complete, a menu appears providing the user with options to Enter Results, Display Results, View Program Credits or Exit Program.

4. When the user selects the Enter Results option, the user is prompted to enter the scores each student obtains on each question in the contest.

a. When all results have been entered for the contest, a message "Score entry complete" appears and the menu is shown again.

5. When the user chooses the Display Results option, the results of the championship are displayed by student. Students are listed in order of their total scores across all questions, from highest to lowest. This list is followed by the placings for the event, with those students who achieve the highest three scores shown in first, second and third place, with the school they represent also identified. The menu is then redisplayed.

6. When the user selects the option to View Program Credits, a message is displayed providing authorship information for this program. The main menu is then redisplayed.

7. When the user selects the option to Exit program, a message thanks the user for using the system, and the program terminates.Initialising the Program:
Initialising the program requires the following steps:
1. Prompt the user to enter the number of questions required for the championship. This must be a minimum of 1 question and is a whole number to be stored as an int. Initialisation cannot proceed until this number has been obtained.
2. Create a new Contest for the Maths Whiz! Championship. For this task, you will set the maximum number of entrants to 8 and the maximum entrants from any one school to be 2.
3. Create a new School for each of the participating schools.
a. You must select any four schools that are local to your university campus and create a School to represent each of these.
b. Each School's name must match the name of a local school you have selected. You can make up any id for that school.
c. For testing purposes, you must create a fifth school that will not end up competing in the contest. This is to demonstrate that further entries will not be accepted into the contest once all available entries have been filled. This school must be named after you.
4. Create new Students to compete in the contest. Each Student has an attribute that stores their School. You may choose the names for your own students.

a. Make sure you have enough students to fill the contest and for testing, to demonstrate that the limit on entrants from any one school is enforced and that further entrants cannot be registered once the contest is full.
5. Register the Students to compete in the contest. Registration occurs by creating new Entries, which comprise a Student and an integer array that stores the Student's scores for each question. These Entries are stored in the entries array. This array must be full when registration is complete.
a. You will need to make sure that each student is only registered once in the contest.
b. There is a limit on the number of students from a single school in each event. Make sure that this limit is not exceeded.
c. When all places in the event have been filled, no further registrations may be accepted.
The user should be advised with a message if any of these issues occur. Your initialisation code must include attempted registrations that result in each of these issues.
6. Advise the user that initialisation is complete,

Running the Program:

1. Entering Results
a. Scores for each question should be stored in the quizScores array for each Student
b. The user is to be prompted to enter the scores for each question for each Student. All scores for Question 1 will be entered first, continuing for each successive question number until all questions have scores entered. Each score is to be read as an int and updated by accessing each Student in the entries array and using the setScores(int, int) method to update the quizScores array. Tip: This method takes two integer parameters. One of these represents the question number the student has answered. The other represents the score they obtained for that question.
c. You may assume that the user's results entry is the correct data type (that is, an int). You do not need to check to make sure that the user does not enter non-numerical characters.
d. If the user selects the option to Enter Results after having already entered these, the earlier scores will be overwritten.

2. Displaying Results
a. Displaying the contest results requires sorting the Students in order of the total scores they obtained and presenting this information in a readable format. This report is followed by identifying the first, second and third place-getters and the school each of these students represents.
i. To sort the students, you will need to write a sorting method that finds the total score for each student and rearranges their position based in the array based on this total.
ii. If two or more students obtain the same total score, then the order of the students and their placings will be determined based on the order their results were entered.

3. Viewing Program Credits
a. No special processing is required for this section. A simple display of the credit information is all that is needed.
4. Exit Program
a. The program should exit by reaching the end of the main() method. System.exit(int) should not be used.

Stage 3: Testing
Using a copy of the test cases developed in Stage 1: Design, test the program you have developed in

Stage 2: Program Development. Document your results, including both failed and successful tests.

Note: Please do not leave out any failed tests. If your testing highlights that your program has not worked correctly, then the failed tests help to demonstrate that you have been testing your program properly.

To show that you have tested your program, include small (but readable) screen captures in your Actual Results as well as any explanatory comments. Microsoft Windows includes a Snipping Tool that is useful for taking captures of the relevant parts of the screen.

Attachment:- Assignment - specification.rar

Reference no: EM131649308

Questions Cloud

Field of view at an unknown magnification : What is the diameter of a field of view at an unknown magnification if the size of a flea is 2 mm, and it occupies 30% of the field?
Do you agree or disagree with this : Do you agree or disagree with this? Why or why not? Do you feel the Endangered Species Act should be strengthened or weakened? Explain.
Write a journal to identify key insight from your experience : Write a journal to identify key insight from your experience reading ONLY (part 2) of the book: Guns, Germs & Steel.
Discuss about the random survey of medical records : Significant? Public health officials believe that 90% of children have been vaccinated against measles. A random survey of medical records at many schools.
Develop a java program that uses object-oriented : ITECH1000 Programming - develop and test a small Java program using object-oriented approaches - Write an algorithm that describes how the program will operate
Substance to move down its concentration gradient : What does it mean for a substance to move down its concentration gradient? When does a substance stop moving down it's concentration gradient?
Evaluate effective communication and dynamics of a team : Evaluate effective communication, dynamics of a team, and how to handle conflict. Assess organizational culture and how to effectively manage culture/diversity.
Nursing care issue in need of implementation of evidence : Identify the nursing care issue or problem and justify why it is a nursing care issue in need of implementation of evidence
What process is responsible for that reaction : What would happen to that cell if it were placed in an environment that has a 50% salt concentration? What process is responsible for that reaction?

Reviews

inf1649308

12/18/2017 3:56:54 AM

Ok i am ready for this. Please make sure i get this assignmnet by or before 28th, because 29th is the final submission. i'm going to make the payment. I have done with the payment. Please try to provide me earlier than 28th. developing assignment using Netbeans IDE in JAVA. Thank you so much for providing me early and appreciate your work. I like the work a lot. thanks once again.

len1649308

9/19/2017 7:02:27 AM

Hi this is the specification of the assignment. Please let me know the price and also want to know about when i will get this because my final submission on 29th september so i want this assignment before that date. I need zip file of this assignment that includes the bin, source,.classpath and .project and word document of the assignment.

len1649308

9/19/2017 7:00:59 AM

Running Program • Appropriate menus display until user chooses to exit 0.5 • Entering of results for the contest 2 • Display Results correctly displays the total scores for each entrant 3 • First, second and third positions are accurately displayed and the school identified 1 • Program Credits included 0.5 Coding Standards • Code modularized, correctly using method calls and passing data between methods 1 • Object-oriented approaches have been implemented appropriately (full marks only available for a complete assignment) 2

len1649308

9/19/2017 7:00:51 AM

Stage 2: Program Development A Java program addressing the requirements outlined in the Assignment Details section, including appropriate use of classes, instances, loops, conditional statements, constants and variables: Use of coding conventions throughout entire program, including readable and clear layout, following naming conventions and including meaningful and appropriate comments. Creation of classes Contest, School, Student and Entry to match diagrams provided 2 Initialisation of the program in the driver class: • Creation of a Contest, Schools and Students, using four local school names and an additional school named after the programming student developing this program 2 • Registration of Students in the Contest, ensuring each student is only registered once, each school is limited to the set number of entrants and the capacity of the contest is not exceeded. 2

len1649308

9/19/2017 7:00:44 AM

Marking Criteria/Rubric Task Available Marks Student Mark Stage 1: Design Documentation Development of an algorithm describing how the program should function 1 • All requirements from the Assessment Details section included • Logical structure Documented test cases to validate program 1 • All requirements from the Assessment Details section included • Data is validated to ensure user entries are appropriate and incorrect user entries are handled smoothly

Write a Review

JAVA Programming Questions & Answers

  Variable is named res and is used to input a resistanc

Assume the existence of the following Java GUI application. There are two text fields for user input. The first JTextField variable is named res and is used to input a resistance value in ohms. The second JTextField variable named cap is used to..

  Write a java program for a toy car application

Write a java program for a Toy Car Application. This Car Control can be used to command a electric toy car to power on, power off, go fast

  Nailpolish inventory in java

In addition, the GUI should include a button that allows the user to move to the first item, the previous item, the next item, and the the last item in the inventory

  Create an interface called transcripts

You are going to create an interface called Transcripts with 2 methods: getGPA() and getTotalCredits(). Implement these methods in the Student class you created for Assignment

  String copy and string concatenation functions

Write the string copy and string concatenation functions -  Append n characters from string2 to stringl by using pointer arithmetic

  Java file input and outputnbspcreate a file that contains

java file input and outputnbspcreate a file that contains your favorite movie quote. use a text editor such as notepad

  Write a program which assumes a number of virtual pages

Please write a simulation program which assumes a number of virtual pages of a process(es) and frames of physical memory. Your program replaces pages according page faults caused by invalid access to pages.

  Write a test program that creates an array

Design an interface named Colorable with a void method named howToColor(). Every class of a colorable object must implement the Colorable interface.

  Read from a file called partyresponses

Your program will read from a file called partyResponses.txt and count the number of people who have accepted and declined the Halloween party invitation

  Create a class named box that includes integer data fields

Create a class named Box that includes integer data fields for length, width and height. Create three constructors that require one, two and three arguments, respectively.

  Organizational report

You have been hired as the CIO of a large multinational Internet advertising company. The president of the company is entertaining a major new software development project to keep track of advertising revenues.

  Application that generates a quiz

Create an application that generates a quiz. Prompt for the user's first and last name, college major, and confidence in test taking (high, medium, or low). The quiz should contain at least five true/false questions about horticulture. When the user ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd