Question: Can you do question 2? Lab Assignment 11 2022 Fall, CMPE 13 Fundamestais of Progranming f Quastion. 1 Variabtess. - Ceparment ar a sirng yatue


Lab Assignment 11 2022 Fall, CMPE 13 Fundamestais of Progranming f Quastion. 1 Variabtess. - Ceparment ar a sirng yatue indienting departimnnt of the student; - studentio is a string valuet indicating ID of the stodent. - quame as a string valuet indicatire name of the atuctent - yearieighing an iriteger value indicaling how many yoris the studenf has atucied the unreersfr - gha iil youbole vavet ingioating gpa of the student Methoder: to related varables. - pnintinformation prints information as given in the sample output below. (If the student has scholarship, you should write "with scholarship", otherwise you should write "without scholarship". Asso notice that years of study should be written as 1st, 2nd, 3rd or 4 th.) Ada, whose student ID is 12345, is studying 4th year at the "CENG" department with scholarship. Ada has a GPA of 3.7. Question 2 Write a class called StudentTestlava using main method. - Create two Student objects with departments CENG and ECON, respectively. - Set features of the first student as follows. Student: ID: 12345 . Name: Ada. Years of stody: 4 GPA: 3.7 Scholarship (Yes/No): Yes - Print intormation of the first student by using printinformation method. - Predict future salary of the student by using predictFuturesalay method if (s)he works in Turkey. - Read information of the second student by using readinformation methad: - Print information of the second student by using printinformation method - Prediat future salary of the student by using predictFufureSalary method if (s)he works abroad. Loter lafornation of atrane stadint: Seradent tal stari Wien ine whan it itafy. 2 2,30 Seinstarshte creifadi an jiviett it itur. lues. Wers a triatyis hivinethie inarin
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
