Following an economic crisis, the CEO (Chief Executive Officer) of EXOSTAR company decided to give the company’s employees a bonus on their monthly salary. The bonus depends on the employee’s basic salary, following the given strategy: Less than or equal 1000$, bonus of 13% Between 1000$ and 2000$, bonus of 10% Greater or equal 2000$, bonus of 7% Write a Java program that displays a message “Welcome to EXOSTAR salary system” when starts execution, then reads the number of employees N, then asks the user to enter N employees’ basic salaries. In case the number of employees was entered zero or negative, the program displays a message “Good luck in finding new employees!!” and stops execution, otherwise, the program prints the new salary of each employee. In case the entered salary is zero or negative, the program must re-ask the user to enter a positive one. (Read the sample runs for further details) Note: The solution must use arrays. Sample run1: Welcome to EXOSTAR salary system Enter the number of employees: -5 Good luck in finding new employees!! Sample run2: Welcome to EXOSTAR salary system Enter the number of employees: 0 Good luck in finding new employees!! Sample run3: Welcome to EXOSTAR salary system Enter the number of employees: 4 Enter salary of each employee: Salary of employee 1: 800 Salary of employee 2: -950 The salary must be positive, try again:1200 Salary of employee 3: 0 The salary must be positive, try again:2000 Salary of employee 4: -2500 The salary must be positive, try again:2500 The new salaries are: Employee 1: 904.0 $ Employee 2: 1320.0 $ Employee 3: 2140.0 $ Employee 4: 2675.0 $

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Following an economic crisis, the CEO (Chief Executive Officer) of EXOSTAR company decided to give the company’s employees a bonus on their monthly salary. The bonus depends on the employee’s basic salary, following the given strategy: Less than or equal 1000$, bonus of 13% Between 1000$ and 2000$, bonus of 10% Greater or equal 2000$, bonus of 7% Write a Java program that displays a message “Welcome to EXOSTAR salary system” when starts execution, then reads the number of employees N, then asks the user to enter N employees’ basic salaries. In case the number of employees was entered zero or negative, the program displays a message “Good luck in finding new employees!!” and stops execution, otherwise, the program prints the new salary of each employee. In case the entered salary is zero or negative, the program must re-ask the user to enter a positive one. (Read the sample runs for further details) Note: The solution must use arrays. Sample run1: Welcome to EXOSTAR salary system Enter the number of employees: -5 Good luck in finding new employees!! Sample run2: Welcome to EXOSTAR salary system Enter the number of employees: 0 Good luck in finding new employees!! Sample run3: Welcome to EXOSTAR salary system Enter the number of employees: 4 Enter salary of each employee: Salary of employee 1: 800 Salary of employee 2: -950 The salary must be positive, try again:1200 Salary of employee 3: 0 The salary must be positive, try again:2000 Salary of employee 4: -2500 The salary must be positive, try again:2500 The new salaries are: Employee 1: 904.0 $ Employee 2: 1320.0 $ Employee 3: 2140.0 $ Employee 4: 2675.0 $
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY