Java console program assessment

Assignment Help JAVA Programming
Reference no: EM133188612

COIT 20245 Introduction to Programming

Assessment item - Java Console Program

Objectives
This assessment item relates to the course learning outcomes as in the Unit Profile.

Details
For this assignment, you are required to develop a Java Console Program to demonstrate you can use Java constructs including input/output via a command line, Java primitive and built-in data types, Java defined objects, selection and looping statements, methods, and various other Java commands. Your program must produce the correct results.

You are only allowed to use techniques which have been covered in the first five weeks of the course, you must use the Scanner object for input and no advanced data structures like arrays will be used. Instructions for this appear in the implementation section of this specification.

What to submit for this assignment?

The Java source code:
o GradingSystem.java

A report including a flow chart (UML activity diagram) to depict your validation loop for reading the number of students, how long it took to create the program, any problems encountered, and screenshots of the output produced. (Use Alt-PrtScrn to capture just the console window and you can paste it into your Word document). You should thoroughly test your program.
Important: For this assignment, you are required to paste your source code as an appendix into your report, do not worry about the formatting loss.

o ReportAss1.docx
You will submit your files by the due date using the "Assignment 1 Submission" link on the Moodle unit website in the Assessment Block or in the relevant week.
You are to write a Java Console Application (GradingSystem.java) which will allow students to enter the details of N students names, student numbers and expected marks of all three assessments of COIT20245. N should be equal to the highest digit in your student ID, use N=3 if your highest digit is less than three. For each record the program will prompt for and accept the student's name, student number and expected marks of all three assessments of COIT20245, it will then display the grade (F, P, C, D, HD) as per grading requirements below.
F: totalMarks <50
P: (totalMarks>=50) or (totalMarks <65) C: (totalMarks>=65) or (totalMarks <75) D: (totalMarks>=75) or (totalMarks <85) HD: (totalMarks>=85)

When N students' marks have been entered you need to report the maximum and minimum number of total marks (sum of all assessment's mark) and the relevant students name and student number, the average number of total marks for the entire class.
The required Java Console Application should allow the user to:

1. For each of the N records: enter the student's name, student's number and then enter marks of all assessments. The program will output the grade of the student.

2. You must ensure the student's name and student's number is not blank so you must implement a validation loop to ensure that a student's name and student's number are entered. For this assignment, there is no need to ensure the name or number is a valid entry (e.g. entering 1 for the name would be allowed). The marks must be greater than zero and less than maximum weighting allocated for the assignment.

The program will number each entry in the input prompt.

3. When N records have been entered, you will output a heading for the statistics "Statistical information for COIT20245 grading system", the minimum and maximum number of marks and the students names with these minimums and maximums, and then what the average marks (see sample output below). Note: If more than one student has an equal maximum or minimum marks you just need to only output one students detail.

4. Display a welcome message at the beginning "Welcome to COIT20245 grading system" and an end message e.g. "Thank you for using the COIT20245 grading system" and the final line "Program written by <your student ID>" (see sample output below).

Implementation

A large number of students have never written a program before so this is a fairly simple assignment which can be written in the main method of your class. Follow the steps outlined here and build your program up in a step by step fashion and always compile your program at each stage so you are always working on error-free code.

Start by creating your GradingSystem class which will contain just the main method, COMPILE! (Fix any errors and repeat)
Implement the welcome message, COMPILE, RUN and TEST! Declare your Scanner object(s), COMPILE!
Note: In order to combat the problem of the Scanner objects reading both textual and numeric
data a good way to counter this is to declare two Scanner objects, one for reading text and another for reading numbers, or you can clear the buffer after the int read using nextLine()

Create a loop to loop N Times, COMPILE, RUN and TEST! (use N = 3 for development)

Declare variables to hold the student's name, number and assessment marks (String,String,int), COMPILE, RUN and TEST!

Within the loop: prompt and read the student's name and student number, COMPILE, RUN and TEST!

Add the prompt and read the marks of the assessments, COMPILE, RUN and TEST! Calculate the grade using conditions above, COMPILE, RUN and TEST until this is correct. Output the description of the student's grade (see sample output below)
Add the validation loops for reading the data (you can do this last if you like)

Use if statements to determine if the number of total marks is maximum or minimum, (you will have to think about this). Output the minimum and maximums after the loop, COMPILE and RUN until you have this correct. You may want to set your original max and min variables to very small and very large numbers using Integer.MIN_VALUE and Integer.MAX_VALUE.

You will need to add up the total number as you go so you can calculate the average.
After the loop, you will output the statistics which you have gathered in the loop. You should have the maximum and minimum number ls and the corresponding student's names, number and the total marks.

Output the statistics as indicated in the screen shot below. Finally, print the end message.

Your program should be well laid out, commented and use appropriate and consistent names (camel notation) for all variables and objects. Meaningful comments need to be placed before classes, methods and in the body of the code including variables.

For this assignment, you will not worry about checking data types.

Refer to a Java reference textbook and the unit and lecture material (available on the course WEB site) for further information about the Java programming topics required to complete this assignment. Check the marking guide (last page) to ensure you have completed every task. You need to match the output as shown below including line spacing.

Attachment:- Java Console Program.rar

Reference no: EM133188612

Questions Cloud

Prepare the production budget for may : Each month's ending inventory of finished units should be 50% of the next month's sales. Prepare the production budget for May
How companies give equal employment opportunities : By reflecting more accurately the changing demographics of the marketplace, a diverse workforce improves a company's ability to serve diverse population
What is the effect of wade proposed change on net income : Clean Aire Anti-Pollution Company is suffering declining sales of its principal product, What is the effect of Wade proposed change on net income
Calculate the total amount to be remitted : Calculate the total amount to be remitted to the Canada Revenue Agency for the October 15th pay date. When would the October 15th CRA remittance be due
Java console program assessment : Demonstrate you can use Java constructs including input/output via a command line, Java primitive and built-in data types, Java defined objects, selection
What are earnings before interest and taxes : San Antonio Boots Inc. had sales of $10,000 in 2015. The cost of goods sold was $5,000, What are earnings before interest and taxes
Difference between wto and trade unions : The Southern Common Market, MERCOSUR, United States, Mexico, & Canada Agreement ,USMCA and The Association of Southeast Asian Nations,ASEAN
Prepare all equity method entries : Chastain, who recorded a gross profit of $20,000 on the sale. Prepare all equity method entries for 2020 and 2021
Link between john lewis and earlier theory of motivation : Considering the Goal-setting theory, how do you think this partnership structure will affect the setting and achievement of challenging individual goals

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create an array of objects and fill it from a file

CS1110- create an array of objects and fill it from a file or the user input. All manufacturers have the same basic elements in the televisions they produce as well as many options.

  Part-2write a program that will perform some of the basic

part-2write a program that will perform some of the basic tasks accomplished by a file integrity checker such as

  Choose of your favorite proverbs from famous proverbs

The web page shall contain a table with 2x50 cells nicely positioned on the page. Choose 20 of your favorite proverbs from famous proverbs, each as a string literal pre-stored in a JavaScript array. Randomly choose one from the 20 proverbs and hav..

  Java graphics-write an application that extends jframe and

java graphics-write an application that extends jframe and that displays a phrase in every font size from 6 through

  Write the method called print triangle type.

Write the method called printTriangleType. This method accepts three integer arguments representing the lengths of the sides of a triangle and prints the type of triangle that these sides form. Here are some sample calls to printTriangleType

  Implement the affine cipher

Implement the Affine Cipher in one programing language and make sure that the following requirements are satisfied.

  Determine whether or not a student is certified

Determine whether or not a student is certified, their transcript is checked against a certification criterion - demonstrate the functionality of your code

  Write a java program to register students for a college

Project is for designing and developing a College Registration program. Write a Java program to register students for a college

  Write a statement that assign a true value to a boolean type

Write a statement that will assign a true value to a Boolean type if the variable named str is equal to "A SU", and false otherwise.

  Fixing the error in given code

Is there anyone that can help me out in fixing this error in my code. What should I do or what iam I doing wrong

  Write a program that draws a diamond shape

Write a program that draws a diamond shape according to the number you read as seen below. The program will readone int value (lineCount).

  Java code that needs to be coded-complex number class

Just a Java Code that needs to be coded. Your given the design, just needs the methods and such to be fixed. This is for a Complex Number class.

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