Question: . Question(1) (1) Create class called square that has one instance variable (side) of type integer. a- Include set(of type void) and get (of type

.


Question(1) (1) Create class called square that has one instance variable (side) 

Question(1) (1) Create class called square that has one instance variable (side) of type integer. a- Include set(of type void) and get (of type integer) method for the side member. b- Include a method to calculate the area of the square. (2) Write a program that test the class created in part (1). Question(2) Create a class called Student to represent a Student exam grades. The class has 4 instance variables: A String variable for the first name, and three double variables that are used to store a student's exam grades. 1- Include a get and a set method for each of the instance variables in the class. 2- Include a getAverage method that calculates and returns the average of the three exam grades. 3- Write a separate program that creates three Student objects to hold the following data. Exam#1 | Exam#2 | Exam#3 First Name Ahmed 83.0 95.5 90.0 Kareema 75.25 83.0 89.0 Jassim 65.0 70.5 68.0 4- Output the name and average grade for each of the above students.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!