Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

programming Academic Year 2022/2023 Ierm II CCIT 422 - Advanced programming PartA Lets consider the following java class. class Student 1. String name: public int

programming image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Academic Year 2022/2023 Ierm II CCIT 422 - Advanced programming PartA Lets consider the following java class. class Student 1. String name: public int grade: // grade between 0 and 100 (condition on Grade); public void increment () f. grade +=+ 1 public void decrement () I. 1 Complete the following table According to your remarks and the possible Errors, propose a new version of the class Student called CStudent. Print the new output of the main method in version 2 Part B Write a Java class named StudentsGroup allowing to register 20 students in a same Group. You can use an array of Students. The class StudentsGroup contains : i. a method called readGrades 0 that reads the students grades from the keyboards. ii. a method upGradeOne ) that add +1 to the all grades. iii. A method upGrade(int v) that add the value to the all grades. In the main method do the following: Declare an object named GroupAdyancedProg Read the grades Print the grades Call the method upGradeQne and print the grades Call the method upgrade with the value 5 as effective parameter and print the grades Part C Propose a new version of the StudentsGroup where the number of students is set during the StudentsGroup construction (which means defined with the constructor)

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

Students also viewed these Databases questions

Question

Evaluate each of the following expressions to six-figure accuracy.

Answered: 1 week ago