Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a class called StudentTest.java using main method. Create two Student objects with departments CENG and ECON, respectively. Set features of the first student as

image text in transcribedimage text in transcribed

Write a class called StudentTest.java using main method. Create two Student objects with departments CENG and ECON, respectively. Set features of the first student as follows: Student ID: 54321 Name: Ali Years of study: 1 GPA: 3.7 Scholarship (Yes/No): Yes Print information of the first student by using printinformation method. Predict future salary of the student by using predict FutureSalary method if (s)he works in Turkey Read information of the second student by using readinformation method. Print information of the second student by using printinformation method. Predict future salary of the student by using predictFuture Salary method if (s)he works abroad. Compare the two students by using areStudentsEqual method and print result as given in sample output Sample Outputs: Ali, whose student ID is 54321, is studying 1st year at the "CENG" department Ali has a GPA of 3.7. This student may get 6830.0 TL as salary in Turkey. Enter information of second student: Student ID: 54321 Name: Eda Years of study: 2 GPA: 2.54 Scholarship (Yes/No): No Eda, whose student ID is 12345, is studying 2nd year at the "ECON" department Eda has a GPA of 2.54. This student may get 9700.0 TL as salary abroad. These students are not same. Ali, whose student ID is 54321, is studying 1st year at the "CENG" department with scholarship. Ali has a GPA of 3.7. This student may get 6830.0 TL as salary in Turkey. Enter information of second student: Student ID: 12345 Name: Kazm Years of study: 4 GPA: 3.7 Scholarship (Yes/No): Yes Ali, whose student ID is 54321, is studying 1st year at the "ECON" department Ali has a GPA of 3.7. This student may get 16000.0 TL as salary abroad. These students are same

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

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

2. How should this be dealt with by the organisation?

Answered: 1 week ago

Question

explain what is meant by the term fair dismissal

Answered: 1 week ago