Question: Note: There will be a LAB ASSIGN 1 4 - ( DUEAPRIL 2 2 ) - THAT WILL ADD ON TO THIS ASSIGNMENT LAB ASSIGN
Note: There will be a LAB ASSIGNDUEAPRIL THAT WILL ADD ON TO THIS ASSIGNMENT
LAB ASSIGN This JAVA program WILL NOT BE functional DESIGN!!
It Will NOT REOUIRE JGRASP CAN USE ONLINE COMPILER!!
NO SUBFUNCTIONS!!
ONLY A MAIN FUNCTION!!
LAB ASSIGN : It will do the following:
PART
Load a two dimensional array with the values illustrated in figure
Then the program will give the USER three attempts to search the array for values in the array. These values will be the:
a The userid and
b The password
If AFTER THREE attempts...if the combination of both are NOT FOUND SEE SECTION PART
If within the THREE ATTEMPTS if the combination of both are NOT FOUND...PART
PART COMBINATION WAS NOT found. within the THREE ATTEMPTS
The user will be informed of the unauthorized attempt
A TWO DIM array named INVALIDLOGIN will be loaded with the user id & password that used to attempt to access the data.
Once the ARRAY NAMED "INVALIDLOGIN" has been successfully been loaded with these values
a It will be printed.
b At this time, this array will contain only ONE RECORD in it
i It only contains one employees' data.
The program will stop.
tabletableLASTNAMEtableFIRSTNAMEtableUSERIDtablePASSWORDADDRESS,CITY,STATE,tableEMPLOYTYPEtableNO OFDeductionstableHOURLYRATEJONEStableJAMESJJONES,JJth Ave,tableTuscaloosaFTSMITHROBERT,tableSROBERTSRth Street,Atlanta,GAPTBROWNWILLIAM,tableBWILLBWth Ave,Birmingham,FTWHITECHARLES,WCHARL,WCth Street,Tuscaloosa,FTCARLSONMATHEW,CMATT,CMth Ave,Atlanta,GAPTFALCONDANIEL,FDANN,FCtableth StreetBirmingham,FTFEAKANTHONY,FANTH,FAth Ave,Tuscaloosa,FTPARISMARK,PMARK,PMtablerdStreetAtlanta,GAPTTAYLORDONALD,TDON,TDth Ave,Birmingham,FT
PART COMBINATION WAS found. within the THREE ATTEMPTS
The user will be informed of the AUTHORIZED ATTEMPT
The remaining information from the array along with the number of attempts required for login the valid user id & password will be written to a TWO DIM array named VALIDLOGIN
The program will then Proceed to PART for PROCESSING.
PART COMBINATION WAS found. within the THREE ATIEMPTS
The program will ask the user for the number of hours that the user worked and then use this information ALONG with the information in the TWO DIM "VALID LOGIN" ARRAY" do the
a Detail CALCULATION & OUTPUT to a new TWO DIM arrav named "PAYROLL REPORT" to include:
i Regular pay
ii Overtime pay
iii. Gross pay
iv Deduction amount
v Net pay
b This Pavroll REPORT arrav will contain
i all values that were in the two dim array "VALIDLOGIN" AND
ii all "DETAIL CALCULATED VALUES" specified above.
c BEOUIRED Formulas FOR ARRAY OUTPUT VALUES:
i Regular pay
For those working hours OR LESS MULTIPLY hours worked from INPUT by the hourly rate from the ARRAY, "VALID LOGIN"
For those working OVER HOURS MULTIPLY by the hourly rate from the ARRAY, VALID LOGIN
ii OVERTIME PAY
For those working hours OR LESS THIS value is set to zero
For those working OVER HOURS First SUBTRACT FROM the hours worked from INPUT then MULTIPLY this RESULT by and by the hourly rate from the ARRAY, "VALID LOGIN"
iii. GROSS PAY add together the Regular pay and the Overtime pay
iv Deduction amount MULTIPLY the Gross pay by the No of Deductions from the Array, "VALID LOGIN"
v NET PAY SUBTRACT the Deduction amount FROM the Gross Pay
Once the ARRAYNAMED "PAYROLL REPORT" has been successfully been loaded with these values
a It will be printed.
b At this time, this array will contain only ONE RECORD in it
i It only contains one employees' data.
At this time, the Program will stop!
Part
Im trying to understand the second part to study because the answer is alot that i don't know. I would really like to see the complete break down of the whole project of part also in reference of part thanks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
