Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

School XYZ has decided to implement a digital record of their students marks and grades for all their test and examination. Their headmaster has submitted

  1. School XYZ has decided to implement a digital record of their students marks and grades for all their test and examination. Their headmaster has submitted a grade specification below for you to design a system.

Marks and Grades

Marks

Grade

80-100

A

70-79

B

60-69

C

50-59

D

40-49

E

0-39

F

You are also required to include the following items into the program:

  1. Use array to store list of students mark and array size is equal to the number of students.
  2. Use for loop where applicable.

Given the following output as a guideline and incomplete program below:

image text in transcribed

image text in transcribed

Welcome to Student Assessment System Please specify a number of student: 5 Please key-in a mark for Student 1: 56 Student 2: 67 Student 3:47 Student 4: 89 Student 5: 91 Result: Student Mark Grade 1 56 D 2 67 3 47 E 4 89 A 5 91 import java.util.Scanner; public class Student public void Grade (int(A) char grade; System.out.println("Result: Student Mark Grade"); // Segment 1: Use loop and selection to calculate Grade System.out.println(" "+A[count]+" "+grade); public static void main(String[] args) 1 Scanner input = new Scanner(System.in); Student Stud - new Student (); System.out.println("Welcome to Student Assessment System"); System.out.print("Please specify a number of student:"); int mark - new int[input.nextInt(); System.out.println("Please Key-in a mark for"); // Segment 2: Use loop to accept marks from a number of students Stud. Grade (mark)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions