Create an Eclipse project, then import the CPS150_PA5.java source code file. Do not create a Main class; instead:

1.Download the file into the src sub-folder of your project folder. Remember that if you created the project in the default location, the project folder is located in the workspace folder of your home folder (e.g.: C:Usersdoej1workspace).

2.In Eclipse's Project explorer:

i.Expand your project folder to display the src sub-folder.

ii.Right-click on the src sub-folder, and select the Refresh option.

iii.Expand the src sub-folder, and then the default package sub-folder.

iv.Open the file CPS150_PA5,java.

Then, complete the program by adding the required method definitions:

  • readString(String) -> String
    Displays the received String as a user prompt, returns the String input by the user.
  • readDouble(String) -> double
    Displays the received String as a user prompt, returns the double input by the user.
  • calcSalary(double, double) -> double
    Calculates and returns the projected salary, with the received current salary and the received percentage raise.
  • displayResults(String, double, double, double)
    Displays the received name, current salary, percentage raise, and projected salary.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.