Question: How to solve 2 5 1 - IN CLASS DISCUSS - TUES - JULY 1 6 - ( unit 2 ) - ARRAY LOAD -

How to solve
251-IN CLASS DISCUSS-TUES-JULY 16-(unit 2)-ARRAY LOAD-SEARCH-CALCULATE AND PRINT
The program will load the following array.
\table[[?bar(VET),Assistant,,,,,],[NAME,\table[[Assistant],[Name]],STATE,\table[[NUMBER],[EMPLOYEES]],\table[[HOURLY],[PAY RATE]],\table[[BONUS],[RATE]],\table[[EMPLOYEE],[HOURS]]],[SMITH,John,AL,10,10.22,0.2,35],[JONES,Mary,GA,7,15.55,0.025,25],[BROWN,Jill,MS,5,11.55,0.28,28]]
This program has the following known input
a. Bonus Amt Available is 500
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 2
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 O/P
d. The program will print the entire array used in the search.
*** NORMAL PROCESSING:***
CALCUATE BOTH the DETAIL CALCULATIONS & SUMMARY CALCULATIONS
DISPLAY THE DETAIL O/P
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 $25 to the BONUS AMT AVAILABLE and then MULTIPLYING this by the y the BONUS RATE.
b. FOR GEORGIA VETS - is found by FIRST SUBTRACTING $5 FROM the BONUS AMT AVAILABLE and then MULTIPLYING this by the y the BONUS RATE.
c. FOR MS VETS - is found by FIRST ADDING $15 to the BONUS AMT AVAILABLE and then MULTIPLYING this by the y the BONUS RATE.
SUMMARY OUTPUT/ CALC:
Average NUMBER OF EMPLOYEES
Average FINAL AMT DUE for ALABAMA VETS
Average GROSS PAY for non-Alabama Vets that the number of employees are 2-12 and the BONUS EARNED is 150-350
Average BONUS EARNED for non-Mississippi Vets that the Hourly rate exceeds $11 and the number of employees are more than 25 and the Assistant Name DOES NOT begin with the LETTER J.
251-IN CLASS DISCUSS-TUES-JULY 16-(unit 2)-ARRAY LOAD-SEARCH-CALCULATE AND PRINT
The program will load the following array.
\table[[?bar(VET),Assistant,,,,,],[NAME,\table[[Assistant],[Name]],STATE,\table[[NUMBER],[EMPLOYEES]],\table[[HOURLY],[PAY RATE]],\table[[BONUS],[RATE]],\table[[EMPLOYEE],[HOURS]]],[SMITH,John,AL,10,10.22,0.2,35],[JONES,Mary,GA,7,15.55,0.025,25],[BROWN,Jill,MS,5,11.55,0.28,28]]
This program has the following known input
a. Bonus Amt Available is 500
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 2
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 O/P
d. The program will print the entire array used in the search.
*** NORMAL PROCESSING:***
CALCUATE BOTH the DETAIL CALCULATIONS & SUMMARY CALCULATIONS
DISPLAY THE DETAIL O/P
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 $25 to the BONUS AMT AVAILABLE and then MULTIPLYING this by the y the BONUS RATE.
b. FOR GEORGIA VETS - is found by FIRST SUBTRACTING $5 FROM the BONUS AMT AVAILABLE and then MULTIPLYING this by the y the BONUS RATE.
c. FOR MS VETS - is found by FIRST ADDING $15 to the BONUS AMT AVAILABLE and then MULTIPLYING this by the y the BONUS RAT
 How to solve 251-IN CLASS DISCUSS-TUES-JULY 16-(unit 2)-ARRAY LOAD-SEARCH-CALCULATE AND PRINT

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!