Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

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

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

Stages of a Relationship?

Answered: 1 week ago