Demonstrate you can use java constructs

Assignment Help Other Subject
Reference no: EM132958205

COIT 20245 Introduction to Programming, Central Queensland University

Assessment item - Java Console Program

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 six 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.

Assignment specification

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 order the program will prompt for and accept the students names, student numbers 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 orders: 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 orders 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).

The numeric literal values N, number of students, grades and assessment marks must be represented as constants.

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:- Introduction to Programming.rar

Reference no: EM132958205

Questions Cloud

What are monthly payments assume purchased a house : What are your monthly payments? You had made a down payment of 20% on the house and the balance was financed with a 30 year loan.
How much are the benefits when finding the annual taxable : When finding their annual taxable income, how much are the benefits? Joe and Lauren are married, and they are filing their 2020 federal income taxes jointly
Why would a company consider a liability to be a sacrifice : Do you agree or disagree with this statement? Why would a company consider a liability to be a sacrifice for the future growth? Explain your reasoning
What is the net present value of the more attractive choice : What is the net present value of the more attractive choice? A firm that purchases electricity from the local utility for $350,000 per year.
Demonstrate you can use java constructs : Develop a Java Console Program to demonstrate you can use Java constructs including input/output via a command line
Which is more advantageous from a tax perspective and why : Which business form do you think is more advantageous from a tax perspective and why? Provide at least two reasons to support your opinion.
What is net income attributable to nci for the year : Net income of the Sub (not including AAP amortization), 210,000. What is net income attributable to NCI for the year
What the cumulative effect of this accounting change should : What the cumulative effect of this accounting change should be reported by Chickadee in its 2020? Miner Corp. changed its inventory costing from FIFO
What is the amount excluded : Dividend of $20,000 from a 45% owned corporation; taxable income before dividend received of $35,000. What is the amount excluded

Reviews

Write a Review

Other Subject Questions & Answers

  How can human error play a role in the use of the technology

What are the implications of the technology with regard to citizens' rights guaranteed by the U.S. Constitution? Explain.

  What is a social construct

If religion really is a social construction, what implications might this have for how people practice religion?Would it make any difference at all?

  How does qualitative research improve quality of care

Give a different example of qualitative research design. How does qualitative research improve quality of care and health outcomes?

  Analyze the controversy in diagnosing a mental disorder

Analyze the controversy in diagnosing a mental disorder based on unexplained physical symptoms. Within your analysis, consider how power and privilege influence

  Organizations need to modernize their existing network

When organizations need to modernize their existing network by moving to a cloud based architecture, leadership has to determine if this structure is viable.

  Identify any ethical issues that should be considered

Identify any ethical issues that should be considered. Determine whether you will be able to meet their needs with the evaluation you have planned so far.

  What button can someone push and take you out of your a-game

Think about how you see yourself and how others', What are your triggers? What button can someone push and take you out of your A-game

  How introduced intervention into the counseling session

Describe how the intervention is reflective of your specific theoretical approach, drawing from the key concepts and assumptions of that theory.

  Small notices near their entryways warning

Many businesses place small notices near their entryways warning that by entering the building you consent to video recording

  What companies would use your research

What government agencies would you target for funding your research? What companies would use your research? Who are your "competitors" at other schools?

  Affecting statutory law and criminal procedure

How these previous opinions are now affecting the statutory law and criminal procedure.

  What are the key lessons to be learned from rogaine

What are the key lessons to be learned from Rogaine? Describe your ideal target audience profile and explain why.

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