Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Briefly explain difference between an instance variable and a local variable. 2. Briefly explain the math class in Java. 3. create a java program to

 Briefly explain difference between an instance variable and a local variable. 2. Briefly explain the math class in Java. 3. create a java program to implement a part of a payroll system, that will display the information about employees and payments. a) Prompt the user to enter the name of the employee b) Prompt the user to enter the employee ID c) Prompt the user to select between full-time and part-time d) If the employee is working full-time, display the following options for the user Full-Time Employee Company Experience 1. Less than 1 year 2. 1 - 2 years 3. 2 - 3 years 4. More than 3 years Enter Your Option: [ Option 1: Rs .30 000, Option 2: Rs. 45 000, Option 3: Rs.60 000, Option 4: Rs.70 000] e. Display an error message for an invalid option number f. If the employee is working part-time, 1. Prompt the user to enter the rate per hour 2. Prompt the user to enter the number of working hours and overtime hours [ Company pays 110% for extra overtime hour] g. The company rate per hour should be between Rs. 500 - Rs.1000. Display an error message for invalid rates. h. Display the employee's name, employee ID, and employee's monthly salary

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Id be glad to provide a response that combines the strengths of previous responses addresses potential shortcomings and incorporates insights from the ... 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

Applied Regression Analysis And Other Multivariable Methods

Authors: David G. Kleinbaum, Lawrence L. Kupper, Azhar Nizam, Eli S. Rosenberg

5th Edition

1285051084, 978-1285963754, 128596375X, 978-1285051086

More Books

Students also viewed these Programming questions

Question

This extrise cootains only perts b,, and d r=

Answered: 1 week ago

Question

How do you think adults might react in a similar experiment?

Answered: 1 week ago