Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

As well as the specifications above, we are told: user must be asked for Firs name Last name Number of hours Pay rate (this will

image text in transcribed

As well as the specifications above, we are told:

user must be asked for

Firs name

Last name

Number of hours

Pay rate

(this will be on a loop asking the user until they type in end when they no longer have another employee)

The first name and last time will be in the first 2-D array (rows- there will be a maximum of 30 employees)

The number of hours (no overtime is paid) and pay rate will be in the second 2-D array ( this will have 3 columns in total to include the net pay)

- you will use a void method to give access to the method that will calculate the net pay, you give access to just the row/column needed, when does passes control back to main method)

"WHEN THE USER ENDS THE INPUT BY TYPING 'END' THE TABLE WILL OUTPRINT"

**** All needs to be controlled off the loop - no breaking out of the loop ***** (while loop, n not equal to end)

**** maximum of 8 characters in the last name, maximum of 6 characters in the first name, all dollar signs need to lign up, no pay over thousands, no pay under hundreds*****

I WILL RATE YOU WELL

***WRITTEN IN JAVA***

For this adventure you will need to have a text file for testing. You are not reading from this file it is just for testing The actual program will be getting all input from the user. You must ask the user to enter in their data in the following order: First Name Last Name Hours Pay Rate Your job is to write a program that will read in all the data into two 2-D arrays one that will hold the names and one that will hold the numeric data. The user will enter "end" when they have enter all the information. Your program then will give a void method access to the numeric data and it will calculate the net pay amount for each employee Your program will write the following table to the screen for each employee: (similar to this) l Last Name First Name Net Pay I Jonesh$689.70 | | Petersoni $453.87 I TompsonTim$877.95 | Jonesoe$1548.99 For this adventure you will need to have a text file for testing. You are not reading from this file it is just for testing The actual program will be getting all input from the user. You must ask the user to enter in their data in the following order: First Name Last Name Hours Pay Rate Your job is to write a program that will read in all the data into two 2-D arrays one that will hold the names and one that will hold the numeric data. The user will enter "end" when they have enter all the information. Your program then will give a void method access to the numeric data and it will calculate the net pay amount for each employee Your program will write the following table to the screen for each employee: (similar to this) l Last Name First Name Net Pay I Jonesh$689.70 | | Petersoni $453.87 I TompsonTim$877.95 | Jonesoe$1548.99

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

6. Identify characteristics of whiteness.

Answered: 1 week ago

Question

9. Explain the relationship between identity and communication.

Answered: 1 week ago