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, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 23.06.2019 22:00
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
question
Computers and Technology, 24.06.2019 03:00
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Jean has kept the content of her website limited to what is important; she has also ensured that the text follows a particular style and color all throughout her website. which website features has jean kept in mind? jean has limited the content of her website to what is important; this ensures (clarity, simplicity, harmony and unity) of the content. she has also formatted the text in a particular style and color throughout her website, ensuring (balance, simplicity, consistency)
Answers: 2
You know the right answer?
CPT 236 Java Programming Assignment 5 Creating a Pay Statement Using Arrays

Store the f...
Questions
question
English, 01.10.2019 20:30
Questions on the website: 13722363