Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How to solve 2 5 1 - IN CLASS DISCUSS - TUES - JULY 1 6 - ( unit 2 ) - ARRAY LOAD -
How to solve
IN CLASS DISCUSSTUESJULY unit ARRAY LOADSEARCHCALCULATE AND PRINT
The program will load the following array.
tableAssistant,,,,,NAMEtableAssistantNameSTATE,tableNUMBEREMPLOYEEStableHOURLYPAY RATEtableBONUSRATEtableEMPLOYEEHOURSSMITHJohn,ALJONESMary,GABROWNJill,MS
This program has the following known input
a Bonus Amt Available is
The program will ask the user if they have a Search process
a If yes, then the program will do the following UNTIL the user says NO to the prompt of do you have another Search.
The user will enter the VET NAME.. SEARCH FOR.
If the VET NAME IS NOT FOUND in the array,
a NO PROCESSING WILL OCCUR
b The number of FAILED SEARCHES will be increased by
c and the user will be prompted to see if they want to do another search
If the VET NAME IS FOUND.
a NORMAL PROCESSING WILL OCCUR and
b the user will be prompted to see if they want to do another search.
Once the user says that they have no more SEARCHES to do the program will print:
a The number of successful searches & number of failed searches.
b The program will print only if at least one successful searches:
c The REQUIRED SUMMARY OP
d The program will print the entire array used in the search.
NORMAL PROCESSING:
CALCUATE BOTH the DETAIL CALCULATIONS & SUMMARY CALCULATIONS
DISPLAY THE DETAIL OP
Increase the number of successful searches.
DETAIL CALC:
FINAL AMT DUE is found by ADDING the GROSS PAY and the BONUS EARNED together
GROSS PAY is found by MULTIPLYING the HOURLY PAY RATE by the EMPLOYEE HOURS
BONUS EARNED
a FOR ALABAMA VETS is found by FIRST ADDING $ to the BONUS AMT AVAILABLE and then MULTIPLYING this by the the BONUS RATE.
b FOR GEORGIA VETS is found by FIRST SUBTRACTING $ FROM the BONUS AMT AVAILABLE and then MULTIPLYING this by the the BONUS RATE.
c FOR MS VETS is found by FIRST ADDING $ to the BONUS AMT AVAILABLE and then MULTIPLYING this by the the BONUS RATE.
SUMMARY OUTPUT CALC:
Average NUMBER OF EMPLOYEES
Average FINAL AMT DUE for ALABAMA VETS
Average GROSS PAY for nonAlabama Vets that the number of employees are and the BONUS EARNED is
Average BONUS EARNED for nonMississippi Vets that the Hourly rate exceeds $ and the number of employees are more than and the Assistant Name DOES NOT begin with the LETTER J
IN CLASS DISCUSSTUESJULY unit ARRAY LOADSEARCHCALCULATE AND PRINT
The program will load the following array.
tableAssistant,,,,,NAMEtableAssistantNameSTATE,tableNUMBEREMPLOYEEStableHOURLYPAY RATEtableBONUSRATEtableEMPLOYEEHOURSSMITHJohn,ALJONESMary,GABROWNJill,MS
This program has the following known input
a Bonus Amt Available is
The program will ask the user if they have a Search process
a If yes, then the program will do the following UNTIL the user says NO to the prompt of do you have another Search.
The user will enter the VET NAME.. SEARCH FOR.
If the VET NAME IS NOT FOUND in the array,
a NO PROCESSING WILL OCCUR
b The number of FAILED SEARCHES will be increased by
c and the user will be prompted to see if they want to do another search
If the VET NAME IS FOUND.
a NORMAL PROCESSING WILL OCCUR and
b the user will be prompted to see if they want to do another search.
Once the user says that they have no more SEARCHES to do the program will print:
a The number of successful searches & number of failed searches.
b The program will print only if at least one successful searches:
c The REQUIRED SUMMARY OP
d The program will print the entire array used in the search.
NORMAL PROCESSING:
CALCUATE BOTH the DETAIL CALCULATIONS & SUMMARY CALCULATIONS
DISPLAY THE DETAIL OP
Increase the number of successful searches.
DETAIL CALC:
FINAL AMT DUE is found by ADDING the GROSS PAY and the BONUS EARNED together
GROSS PAY is found by MULTIPLYING the HOURLY PAY RATE by the EMPLOYEE HOURS
BONUS EARNED
a FOR ALABAMA VETS is found by FIRST ADDING $ to the BONUS AMT AVAILABLE and then MULTIPLYING this by the the BONUS RATE.
b FOR GEORGIA VETS is found by FIRST SUBTRACTING $ FROM the BONUS AMT AVAILABLE and then MULTIPLYING this by the the BONUS RATE.
c FOR MS VETS is found by FIRST ADDING $ to the BONUS AMT AVAILABLE and then MULTIPLYING this by the the BONUS RAT
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started