- 1. Read the problem statement.
- 2. Formulate the
algorithm using pseudocode and top-down, stepwise refinement. - 3. Write a Java
program . - 4. Test, debug and execute the Java program.
- 5. Process three complete sets of data.
(Salary Calculator) Develop a Java application that determines the gross pay for each of three employees. The company pays straight time for the first 40 hours worked by each employee and time and a half for all hours worked in excess of 40. You’re given a list of the employees, their number of hours worked last week and their hourly rates. Your program should input this information for each employee, then determine and display the employee’s gross pay. Use class Scanner to input the data.
Want to see the full answer?
Check out a sample textbook solutionChapter 4 Solutions
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Additional Engineering Textbook Solutions
Starting Out with Python (4th Edition)
Computer Systems: A Programmer's Perspective (3rd Edition)
Starting Out with C++ from Control Structures to Objects (8th Edition)
Artificial Intelligence: A Modern Approach
Concepts Of Programming Languages
Starting Out with Java: Early Objects (6th Edition)
- NB: This question shouldn't get rejected at any cost everything is clear please help me answer it, the reason i pay is to get this type of questions answered, take 3-6 hours to answer it CASE STUDY: A PAYROLL SYSTEM use Java to develop a payroll software to assist in paying the salary of employee/staff of a certain university named XYZ University. Assume we have three employees in the university with ranks - Programmer, Admin and Librarian, write a Java program to calculate and printout the total salary of these three employees in the institution. The program should have the following features:1) Create a public class named: Employee that would get the firstname and lastname of each employee from the keyboard/user2) Create three objects: prog, adm and lib, for programmer, admin and librarian respectively to access the properties in Employee class.3) Create EmployeeSalary as parent interface to store basic_sal, housing_all and transport_all. The values for these three items are fixed…arrow_forwardUse Java 5-1) (Count positive and negative numbers and compute the average of numbers) Write a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computes the total and average of the input values (not counting zeros). Your program ends with the input 0. Display the average as a floating-point number.arrow_forwardIn Java Find the value of x , y after the statements are executed:arrow_forward
- 1- Please I want answer of this question. Thanks Write a Java program with the followingarrow_forwardPlease read all directions carefully! Java Program Pleasearrow_forwardplease use java and keep the solution and code very basic Q1-Solve this easy question(i)Indicate the display the computer carries out when it executes the code of each System.out.printf statement for the two fragments: System.out.printf("%3.1f - %3.1f = %4.2f\n", 6.51, 4.92, 1.59); int1 = 8; int2 = 3; product= int1 * int2; System.out printf("The product of %d and %d is %d. In", int1, int2, product): (ii)Write a fragment of syntactically correct Java code that contains the following (in the order specified):1. a one-line comment whose text is Here are the variables2. followed by a single blank line3. followed by the declaration of the following 4 variables with one variable declared per line:•o anint of type int* aDouble of type double* aString of type String* aChar of type char (iii) From the following list of character sequences, there are reserved words, identifiers for variables or methods, identifiers for constants, and "invalid" sequences don't apply…arrow_forward
- 3. Create a program that can accept 5 numbers get their sum, difference, product and quotient.USE JAVA PROGRAMMINGarrow_forwardTrue or False ___ 20. The statement System.out.println(“\\\\\t\\\\”); will print the result: \\\\. ___ 21. Stepwise refinement technique should be used when you start learning how to write a Java program. ___ 22. Java comment symbols /* and */ can be nested in a Java program. ___ 23. Program header is important and should be included in every Java program you write. ___ 24. Java has a set of reserved words that cannot be used as identifiers. ___ 25. Double is a legitimate identifier.arrow_forwardWrite Java statements that accomplish each of the following tasks: a) Display the message "Enter an integer:", leaving the cursor on the same line. b) Assign product of variables b and c to the integer variable a. c) Use a comment to state that a program performs a sample payroll calculation. Run in Java Compiler include screen shotarrow_forward
- PROBLEM STATEMENT: Return the greatest of two numbers! Can you help mew with this question The language is Java public class MaxNumber{public static int solution(int a, int b){// ↓↓↓↓ your code goes here ↓↓↓↓return 0;}}arrow_forwardIn Java find the value of x , y after the statements are executed: (statements are in picture)arrow_forwardWrite Java statements that accomplish each of the following tasks: a) Display the message "Enter an integer:", leaving the cursor on the same line. b) Assign product of variables b and c to the int variable a. c) Use a comment to state that a program performs a sample payroll calculation. Run in Java Compiler include screen shotarrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education