Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Assignment

Task

You are to write a Java console application that processes student marks. The number of students (N) is fixed at 10, so it should be declared as final int N = 10 in your program.

Grades are allocated as shown in Table 1:

Grade Mark Range
HD 85-100
D 75-84
C 65-74
P 50-64
F 0-49

Table 1: Grades

When a mark is entered, the application calculates and displays the corresponding grade. When all marks have been entered, a summary report consisting of

1. The lowest mark
2. The highest mark
3. The average mark
4. The number of students passed (i.e. achieved a mark of 50-100)
5. The number of students who failed (i.e. achieved a mark of 0-49)
is displayed.

Below is example output for N = 3

Your welcome message goes here ...

Mark for student 1: 100
Grade for student 1: HD
Mark for student 2: 0
Grade for student 2: F
Mark for student 3: 50
Grade for student 3: P

Summary
********
Lowest mark: 0
Highest mark: 100
Average mark: 50
Number passed: 2
Number failed: 1

Your exit message goes here ...

Your application is to follow the same format for input and output as in the example above, but with customised welcome and exit messages.
The application is to use the following classes and methods:

public class Grader {
// no attributes required
public Grader() {
// no code required
}
public String grade(int mark) {
// code to determine grade goes here
}
publicboolean pass(int mark) {
// code to determine pass goes here
}
}
public class Assignment1 {
// no attributes required
public static void main(String[] args) {
// local variable declarations go here
// display welcome message
// loop to input marks, calculate and display grade, calculate summary values
// generate and display summary
// display exit message
}
}

Java, Programming

  • Category:- Java
  • Reference No.:- M92765483

Have any Question?


Related Questions in Java

Can someone help me please with those question1what is the

Can someone help me please with those question 1:what is the best data type for student id datatime,currency,number,decimal 2:which relationshipis preferable? one to one,one to many,many to many 3:if you add table A's pr ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Assignment - method in our madnessthe emphasis for this

Assignment - "Method in our Madness" The emphasis for this assignment is methods with parameters. In preparation for this assignment, create a folder called Assign_3 for the DrJava projects for the assignment. A Cityscap ...

Solving 2nd degree equationsbull write the following java

Solving 2nd degree equations • Write the following Java methods • boolean real-sols(double a, double b, double c): it returns true if the 2nd degree equation ax2 + bx + c has real solutions • double solution1(double a, d ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As