Create a program in java using JOptionpane class for input and output, you can also use java.util.Arrays
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The Really Awesome Computing Corporation (RACC) has decided they want to give everyone in the company (all 10 employees) a 10% raise for all of their hard work. However, before this happens, RACC has to make sure they can afford such a jump in payroll costs. Write an efficient program that will prompt for the names and current salary for each of the employees within the company. Salaries must be valid (between $0 and $95,000, inclusive), otherwise it will print an error message. For each employee entered, calculate and print the employee name and individual pay increases. Once all 10 employees have been entered, print the total cost for the proposed increase across all employees. Note: Your program must use modules. Sample Input/Output: Input Enter Employee 1 name: Alex Enter Employee 1 Salary: 40000 Enter Employee 2 name: Bob Enter Employee 2 Salary: 60000 Enter Employee 3 name: Peter Enter Employee 3 Salary: 20000 Enter Employee 4 name: Allen Enter Employee 4 Salary: 75000 Enter Employee 5 name: Jenny Enter Employee 5 Salary: 55000 Output Employee Name: Alex Employee Salary after increase: 44000 Employee Name: Bob Employee Salary after increase: 66000 Employee Name: Peter Employee Salary after increase: 22000 Employee Name: Allen Employee Salary after increase: 82500 Employee Name: Jenny Employee Salary after increase: 60500 **Total Employee Salary after increase: 275000 The Really Awesome Computing Corporation (RACC) has decided they want to give everyone in the company (all 10 employees) a 10% raise for all of their hard work. However, before this happens, RACC has to make sure they can afford such a jump in payroll costs. Write an efficient program that will prompt for the names and current salary for each of the employees within the company. Salaries must be valid (between $0 and $95,000, inclusive), otherwise it will print an error message. For each employee entered, calculate and print the employee name and individual pay increases. Once all 10 employees have been entered, print the total cost for the proposed increase across all employees. Note: Your program must use modules. Sample Input/Output: Input Enter Employee 1 name: Alex Enter Employee 1 Salary: 40000 Enter Employee 2 name: Bob Enter Employee 2 Salary: 60000 Enter Employee 3 name: Peter Enter Employee 3 Salary: 20000 Enter Employee 4 name: Allen Enter Employee 4 Salary: 75000 Enter Employee 5 name: Jenny Enter Employee 5 Salary: 55000 Output Employee Name: Alex Employee Salary after increase: 44000 Employee Name: Bob Employee Salary after increase: 66000 Employee Name: Peter Employee Salary after increase: 22000 Employee Name: Allen Employee Salary after increase: 82500 Employee Name: Jenny Employee Salary after increase: 60500 **Total Employee Salary after increase: 275000
Expert Answer:
Answer rating: 100% (QA)
import javaxswingJOptionPane import javautilArrays public class EmployeeSalaryIncr... View the full answer
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
Consider an electric motor with a shaft power output of 20 kW and an efficiency of 88 percent. Determine the rate at which the motor dissipates heat to the room it is in when the motor operates at...
-
Given (x, y) = 2.25xy + 1.75y 1.5x 2 2y 2 Construct and solve a system of linear algebraic equations that maximizes (x). Note that this is done by setting the partial derivatives of with respect...
-
(Proprietary Fund Balance Sheet) Prepare a skeleton balance sheet for a proprietary fund using the headings in Illustration 2-12 (i.c., Current Assets, Capital Assets, Current Liabilities) that shows...
-
Several professionals are listed as being part of compliance efforts with regard to participation in the examination of potential compliance violations. Identify at least three other categories of...
-
Abernathy Corporation was organized on January 1, 2012. It is authorized to issue 10,000 shares of 8%, $50 par value preferred stock, and 500,000 shares of no-par common stock with a stated value of...
-
1. Create a demand graph using the following table of values: PRICE QUANTITY 500 10 20 450 30 400 40 350 50 300 60 250 70 200 2. Create a supply graph using the following table of values: PRICE...
-
Dwight Donovan, the president of Donovan Enterprises, is considering two investment opportunities. Because of limited resources, he will be able to invest in only one of them. Project A is to...
-
Your friend, Wilma, has built a "mobile" to hang over her infant daughter's crib. She has built it as instructed - she thinks. However, it will not hang properly. (She purchased it from Ikea.) Check...
-
Who do you believe is ethically accountable for an organizations behaviorthe organization or its employees? Provide reasons why you answered the way you did.
-
How do post-structuralist and postmodernist perspectives challenge traditional sociological frameworks, particularly in terms of their critiques of essentialism, meta-narratives, and the nature of...
-
How do ecological and environmental sociological perspectives shed light on the interconnectedness between human societies and the natural world, including the socio-political dimensions of...
-
Jenny and Laura are buying food for a meeting. Jenny bought 3 chicken meals and 1 taco meal for $31. Laura bought 3 chicken meals and 2 taco meals for $38. Write a system of linear equations...
-
How do theories of globalization and cosmopolitanism reshape our understanding of social theory, particularly in terms of the increasing interconnectedness of societies and the emergence of new forms...
-
Problem One: Problem 7 Previous Problem Problem List Next Problem (1 point) (a) Evaluate the definite integral by interpreting it in terms of signed area. (8 (8x + 3) dx = Suggestion: Draw a picture...
-
The electric field due to a line charge is given by where l is a constant. Show that E is solenoidal. Show that it is also conservative. E =
-
In September, TEE Company, a merchandising firm that sells one product, assembled the following information and estimates to prepare a budget for October. Expected sales are 40,000 units at a price...
-
What is an appropriation? Give an example of one in a university.
-
Financial versus management accounting: role for activity-based cost systems in privatization of government services The mayor of Gotham City is dissatisfied with the rising costs and deteriorating...
-
To test \(H_{0}: \sigma=50\) versus \(H_{1}: \sigma <50\), a random sample of size \(n=24\) is obtained from a population that is known to be normally distributed. (a) If the sample standard...
-
In Example 2 from Section 10.3, the quality-control engineer for M\&MMars tested whether the mean weight of fun-size Snickers was 20.1 grams. Suppose that the standard deviation of the weight of the...
-
(a) Determine the critical values for a right-tailed test of a standard population deviation with 18 degrees of freedom at \(\alpha=0.1\) level of significance. (b) Determine the critical values for...
Study smarter with the SolutionInn App