subject

CPT 236 Java Programming Assignment 5 Creating a Pay Statement Using Arrays

Store the following data in Arrays. (Single/Muti-dimensional).

Names Pay Rate Hours
Adam Smith 12.55 45
Eliza Joseph 19.75 38
Joe Plumber 20.00 50
James Dove 24.90 37

Use if-else loop to compute Regular Pay and Overtime pay and store them in arrays.
If the hours worked is less than 40, Regular Pay is hours multiplied by Pay Rate, otherwise it is Pay Rate multiplied by 40. Similarly Overtime Pay is 0, if the hours worked is less than 40, otherwise it is Pay Rate multiplied by one and half and the hours over 40. If the hours worked are less than 40 hours, then print overtime pay as $ 0.00.
Insert appropriate comments showing your name, Project name, semester and purpose of the project as comments in the beginning of the file and appropriate additional comments.
Print the Pay Statement as shown below, using appropriate formatting functions.

ABC Computers Inc.

Pay Statement for the week ending September 30, 2020

Employees Pay Rate Hours Regular Pay Overtime Pay Gross Pay

Adam Smith $12.55 45 $502.00 $94.13 $596.12

Eliza Joseph $19.75 38 $750.50 $0.00 $750.50

Joe Plumber $20.00 50 $800.00 $300.00 $1,100.00

James Dove $24.90 37 $921.30 $0.00 $921.30

Write this program in java, I'm clueless on how to get this.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:40
For this assignment you have to write a c program that will take an infix expression as input and display the postfix expression of the input. after converting to the postfix expression, the program should evaluate the expression from the postfix and display the result. what should you submit? write all the code in a single file and upload the .c file. compliance with rules: ucf golden rules apply towards this assignment and submission. assignment rules mentioned in syllabus, are also applied in this submission. the ta and instructor can call any students for explaining any part of the code in order to better assess your authorship and for further clarification if needed. problem: we as humans write math expression in infix notation, e.g. 5 + 2 (the operators are written in-between the operands). in computer's language, however, it is preferred to have the operators on the right side of the operands, ie. 5 2 +. for more complex expressions that include parenthesis and multiple operators, a compiler has to convert the expression into postfix first and then evaluate the resulting postfix write a program that takes an "infix" expression as input, uses stacks to convert it into postfix expression, and finally evaluates it. it must support the following operations: + - / * ^ % ( example infix expression: (7-3)/(2+2) postfix expression: 7 3 2 2 result: rubric: 1) if code does not compile in eustis server: 0. 2) checking the balance of the parenthesis: 2 points 3) incorrect postfix expression per test case: -2 points 4) correct postfix but incorrect evaluation per test case: -i points 5) handling single digit inputs: maximum 11 points 6) handling two-digit inputs: 100 percent (if pass all test cases)
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
question
Computers and Technology, 22.06.2019 16:00
If a client wants to make minor edits, what should he/she use?
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
You know the right answer?
CPT 236 Java Programming Assignment 5 Creating a Pay Statement Using Arrays

Store the f...
Questions
question
Mathematics, 21.08.2021 01:00
question
Mathematics, 21.08.2021 01:00
question
Mathematics, 21.08.2021 01:00
Questions on the website: 13722360