use JAVA, please   Use of Classes, methods, and various control statements  Scenario: A registration officer in an academic institution wants to display the Student transcript in a given semester after entering the required student details. A student is characterized by an ID, full name, the semester in registered in, gender, and age. The student can take  4 modules every semester and has two assessments in each module. You are requested to write the program that will help the officer to display the indicated transcript using Classes, methods, arrays, and various control statements. The following shows an example of the execution of this program. Question:  A) Create the class which must have a normal constructor and 5 attributes mentioned in the scenario !Note:  The marks of the student in different modules must be stored using arrays. b. Include proper methods for setting and getting the attributes of the class . c. In the class, create a method  using the array concept and any type of loop: Finding the highest or lowest mark of the student in all assessments. d. Draw the tracing table that shows an example of the execution of the previous methods. e. Create a method that will display the transcript of the student, which must include the student details and at all the results found in C by calling the respective methods. f. Create the principal program, which will complete the following tasks : i. Create a new Student object by reading the required details and by applying at least one type of data validation of your choice on the input. ii. Read and save the list of module names and the list of module marks awarded to the student in the two assignments. iii. Display the transcript of the student by calling the adequate method. iv. Repeating the previous tasks until the user decides to exit.       (The display of the transcript must be in a method in the class Student. From the principal program, you will call that method add a method for finding the list of passed modules and one method for total or average mark)

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question

use JAVA, please  

Use of Classes, methods, and various control statements 

Scenario: A registration officer in an academic institution wants to display the Student transcript in a given semester
after entering the required student details. A student is characterized by an ID, full name, the semester in
registered in, gender, and age. The student can take  4 modules every semester
and has two assessments in each module.


You are requested to write the program that will help the officer to display the indicated transcript using
Classes, methods, arrays, and various control statements.


The following shows an example of the execution of this program.
Question:


 A) Create the class which must have a normal
constructor and 5 attributes mentioned in the scenario

!Note:  The marks of the student in different modules must be stored using arrays.


b. Include proper methods for setting and getting the attributes of the class .

c. In the class, create a method  using the array concept
and any type of loop:
Finding the highest or lowest mark of the student in all assessments.

d. Draw the tracing table that shows an example of the execution of the previous methods.

e. Create a method that will display the transcript of the student, which must include the student
details and at all the results found in C by calling the respective methods.

f. Create the principal program, which will complete the following tasks :


i. Create a new Student object by reading the required details and by applying at least
one type of data validation of your choice on the input.

ii. Read and save the list of module names and the list of module marks awarded to the
student in the two assignments.

iii. Display the transcript of the student by calling the adequate method.

iv. Repeating the previous tasks until the user decides to exit.

 
 
 
(The display of the transcript must be in a method in the class Student. From the principal program, you will call that method
add a
method for finding the list of passed modules
and one method for total or average mark)
Example of execution:
Enter the student ID
111
Enter the name
Alaa
Enter the student semester
1
Enter the module name
POP
Enter the marks in the first assignment
50
Enter the marks in the second assignment
60
Enter the module name
ITP
Enter the marks in the first assignment
70
Enter the marks in the second assignment
80
Enter the module name
FCN
Enter the marks in the first assignment
90
Enter the marks in the second assignment
100
Transcribed Image Text:Example of execution: Enter the student ID 111 Enter the name Alaa Enter the student semester 1 Enter the module name POP Enter the marks in the first assignment 50 Enter the marks in the second assignment 60 Enter the module name ITP Enter the marks in the first assignment 70 Enter the marks in the second assignment 80 Enter the module name FCN Enter the marks in the first assignment 90 Enter the marks in the second assignment 100
Enter the module name
FCH
Enter the marks in the first assignment
75
Enter the marks in the second assignment
85
Student transcript
Student nameAlaa
Student ID111
The average mark inPOPis:55.0
The average mark inITPis:75.0
The average mark inFCNis:95.0
The average mark inFCHis:80.0
The student has passed these modules:
РОP
ITP
FCN
FCH
The highest mark awaded to the student is:1e0.0
if you want to repeat, type Y. Else, type any other character.
Transcribed Image Text:Enter the module name FCH Enter the marks in the first assignment 75 Enter the marks in the second assignment 85 Student transcript Student nameAlaa Student ID111 The average mark inPOPis:55.0 The average mark inITPis:75.0 The average mark inFCNis:95.0 The average mark inFCHis:80.0 The student has passed these modules: РОP ITP FCN FCH The highest mark awaded to the student is:1e0.0 if you want to repeat, type Y. Else, type any other character.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Introduction to Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT