public health discussion question and need a reference to help me learn.
See attached
Requirements: See
Description and Instructions
Part 1: (5 Marks)
Write a complete Java program that allows users to enter two integer numbers as follows:
Upon providing the two integer numbers, the users should be given a list of operations to select from, as follows:
Based on the users’ selection, a method should be called to perform the selected operation and return the result. After that the main method should print the result. The output of the program should be as follows:
Part 2: (9 Marks)
1)Create a class Student according to the following requirements:
A student has four attributes: id, name, GPA and major.
Add the default constructor (no parameters).
Add a constructor with four parameters to initialize all the attributes by specific values.
Add all the required setter methods
Add all the required getter methods
Add the method changeMajor
Create a Driver class. that has the main method, in which:
Create a student object (obj1), provide all values for the class attributes.
Create another student object (obj2), provide all values for the class attributes.
Print the values of obj1 and obj2 fields.
Change the major for obj1.
Change the major for obj2.
Print the values of obj1 and obj2 fields.