Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

rite a class called Student.java with the following variables and methods. ariables: - department is a string value indicating department of the student. - student

image text in transcribedimage text in transcribed

rite a class called Student.java with the following variables and methods. ariables: - department is a string value indicating department of the student. - student ID is a string value indicating ID of the student. - name is a string value indicating name of the student. - yearsOfStudy is an integer value indicating how many years the student has studied at the university. - gpa is a double value indicating gpa of the student. - hasScholarship is a boolean value indicating if the student has scholarship or not. ethods: - readlnformation reads user inputs as in the sample output given below and assigns them to related variables. Student ID: 12345 Name: Ada Years of study: 4 GPA: 3,7 Scholarship (Yes/No): Yes - predictFutureSalary gets an integer value (1 for working in Turkey or 2 for working abroad) as parameter and predicts future salary of the student according to the equations and it prints the result as in sample output given below. (You should write either "in Turkey" or "abroad" at the end of the sentence according to provided parameter.) This student may get 3960.0 TL as salary in Turkey. TurkeySalary=(GPA1000)(yearsOfStudy10) Also, add 300 to this amount if the student has scholarship. AbroadSalary=(GPA10000)(yearsOfStudy100) Also, subtract 2000 from this amount if the student does not have scholarship. printInformation 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". Also notice that years of study should be written as 1st, 2nd, 3rd or 4th.) Ada, whose student ID is 12345, is studying 4th year at the "CENG" department with scholarship. Ada has a GPA of 3.7

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

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 3 Lnai 9853

Authors: Bettina Berendt ,Bjorn Bringmann ,Elisa Fromont ,Gemma Garriga ,Pauli Miettinen ,Nikolaj Tatti ,Volker Tresp

1st Edition

3319461303, 978-3319461304

More Books

Students also viewed these Databases questions