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, 21.06.2019 14:00
Just a heads up these questions are relating to a program known as gimp. (these are all fill-in-the-blank)will give brainliest-! the tool option allows you to blur the edges of the selection making it look less sharp.which option do you choose in the add layer mask dialog box to turn your selection into a mask? is a type of filter that distorts a layer making it appear like you’re looking through dirty glass.in which drop-down menu do you find the option to add a blur to your background image layer? what shape appears when you’ve completed making your selection with the free select tool (to let you know you’ve reached the beginning of your selection)? when using the toggle quick mask, everything outside of the selection becomes a color.when painting with the color with the toggle quick mask on, it removes part of your selection making it smaller.when painting with the color with the toggle quick mask on, it adds to your selection making it larger.to use the paths tool, click and add (a tiny circle).to close your selection when using the paths tool, press and hold while clicking the first anchor point you created.the tool works just like the free select tool by clicking around an image to select it.
Answers: 2
question
Computers and Technology, 22.06.2019 12:00
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Ais a built in formula in spread spread a is any math process such as addition or subtraction. options are function and operation
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Your is an example of personal information that you should keep private.
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, 15.01.2021 18:00
question
Mathematics, 15.01.2021 18:00
question
Mathematics, 15.01.2021 18:00
question
Arts, 15.01.2021 18:00
question
Chemistry, 15.01.2021 18:00
Questions on the website: 13722363