ct479 13
Post on 13-Jul-2015
128 Views
Preview:
TRANSCRIPT
CT 479 243
> List all of the salespeople who met their quotas this month.
Tom OttoRoz BerrySpm Etch
> Compare the percentage of produce spoiled in each of ourthree stores.
Fair Oaks 4%Tyson’s 5%Metro Center 3%
> Graph the sale of disk drives on a monthly basis for the lastthree years.
Press any key to conf,n”e
244 CT 479
CT 479
GOAL PROGRAMMING MODEL
Please enter the number of var iables in the problem
> 3
NDW enter the number of constraints
> 4
How many of the 4 constraints have negative deviat ional variables?
> 2
Enter the r ight hand sides, separated by commas
> 100 ,500
Now enter the resource coefficients for this first equation,separated by commas
2 4 5
6 File Edtt Chart Task Layout Dates Fonts Stvle
246 ' CT 479
CT 479 247
\
PERSONNEL FILE
1 I Locate an employee record by last name
21 Locate an employee record by social security number
31 Punt employees in alphabetical order
41 Print employees fwst by department, then inalphabetical order
5) Add an employee to this file
61 Remove an employee from this file
71 QW
CT 479 249
i
i Main Menu
I 1) Update Records
I21 Add a New Record31 Prrnt
1 Print Menu
I 1) Print Customer File‘ I Print lnventorv =a-
I3) Return to Main ;&u
Print Customers
1) Print in alphabetical order2) Print by Zip codes3) Return to the Print Menu
Print Inventory
1) Print in order of part number2) Print only backordered parts3) Return to the Prin: Menu
250 CT 479
4. Input/Output Forms Interface System
CT 479 251
State Motor Vehicle Divislon
N a m e(Last1
Movmg Park ing Vaiid InsuranceViolation Catatnn Lxense Confrmattol
Mck.. NO
DATA BASE
?!ame M o v i n g Parking Valid InSurancelL.35.11 Violation Cltatlon L i c e n s e Confrmatton
W.~.--;-
McKlbbenMcKinleyMcK~nnonMcKinnonrbwllasterMcMlchaelMcNei l
Yes N?N o NO
Yes NONO NClNO NO
Y e s NOY e s Y e sNO NO
y ir YL3Yes Y e sNO Yl?S
Yes YesNO Yes
YE3 YesYes YesYes Yes
State Motor Vehicle Dwsion
Name Movind ParkIng Valid Insurance(Las4 IViolatnn Crtat~on License Confirmation
McKmley Yes NO ND YSMcKinnon N o NO NO Yes
CT 479
USE SALESPPC
DISPLAY ALL LNAME, FNAME FOR CURSALES > QUOTA
U S E G R O C E R
REPLACE ALL SPOILS WITH PBOUGHT - PSOLD
GOT0 TOP
LIST
CT 479 253
Can a computer makethis dlstributnndecision?
254 CT 479
Iwis, Geoz
- - - -
St. Joseph’s . ~ Seneca Mall
CT479 255
CT 479
SnW~ 13.11 Query Type 1 %fl value 9189 attribute tllfJ%klt?lMMWtN entity
Ouery Type 1:
What did employed number 73712make in year 1987? 1
EARNINGS-HISTORY
$27.100
CT 479 257
” What entity has a specified value for a particular attribute “
“What employee (s) earned more than $ 50,ooO in 1987 “ ?
E t (VA)
258 CT 479
Cluerv Type 2
What employee(s) earned morethan 550.000 I” 1987?
EARNINGS-HISTORY
RE5POfW
Employee numbers:
7284572888 18 0 3 4 . 5
CT 479 259
What attribute (s) has a specified value for a particular entity ?
What years did employee # 72845 make over $ 50,000 ?
“What attributes [YEAR-84,YEAR-85,YEAR-86,YJSAR-871 have value 50,000 for
the e’nrity EMPLOYEE-NUMBER = 72845 ? “
A 4V.E)
260 CT 479
nlY6i 13.13 Query Type 3 %I1 attribute d@~lfhPd~ entitylm value %6
Query Type 3:
What yearlsl did employeenumber 72845 make
*w?r s5o,ooo?
EARNINGS-HISTORY
Ys
1Icll
I IEMPLOYEE
NUMBER E M P L O Y E E N A M E D E P A R T M E N T 5,” Y E A R - 8 4 Y E A R - 8 5 Y E A R - 8 6 Y E A R - 8 7
If- waters D”,Svd Sales s 48960 51400 49050 52900
I 72888 1 5V”SC Dutslde Seder 5 3/X% a4,LxJ ..oVi” ;udW
1 73712 1 Fawcen 1 Ds.rr!b”rmn 1 n ( 23500 ( 25500 ) 26780 1’ 271OC 1
80345 Well. Jr. MXtWl”g S 65Mx) 71Km 75cm 78cm
-672 Roa Malnrenance H 20560 223.C 23520 2431 s
89760 ACWla ACFD”“flng H 18755 2cO40 21360 22540L ,
1 Response:Year-85
\
Year-87
I
\ /
CT 479 261
“ List all the values for all of the attributes for a particular entity “
“ List all of the information regarding the inventory status on part HV-5678 “
all V- ( E 41 A )
262 CT 479
b&l AL dEARNINGS-HISTORY ,
I/EMPLOYEENUMBER EMPLOYEE NAME DEPARTMfNT SW YEAil-84 Y E A R - 8 5 YfAR-86 Y E A R - 8 7
72845 Walers Outside sale. s 48960 s14oc 490150 52900-
, CLUU >*t”3 _“..,._ 2e.c) 2 -722:: ‘XC so!222 :?:I:
73712 Fawcen Iolsrrib”rlan H 23500 25500 2k-780 271W
80345 Well, Jr Martetlng S 65ocm 71ooo 75000 78OOC
84672 Pp.?, MalntenanEe H 20560 22340 23520 24910
.69760 Acqula Accounclng H 18755 20040 21380 22540
CT 479 263
List all entities that have a specified value for all attributes.
“ List all of the employee whose earning exceeded $ 50,000 in any of the years
available “
all E d( V. all A )
264 CT 479
.Sl’d 13.15 Query type 5 %w”aKMqfl entries %XWJWlh3n”nrdl value Pq&
t?lPlh~flq attributes ?lfh’MWl%
Query Type 5:
List all of the employeeswhose earmngs exceeded S50.000
tn any of the years avalable.
EARNINGS-HISTORY ,p
A-
Response:Employee numbers:
728457288880345
CT 479 265
6. Query Type 6
“List all the attributes that have a specified value for all entities “
“ List all of the years for which earnings exceeded $ 20,COO for all employees in the“
company
allA+ (V,aU E)
266 CT 479
attribute
Chery Type 6:
Lwt all of the Yearsfor whbch earnings exceeded520.000 for all employees.
Response:f 1Year -87Year-98Year -89
CT 479 267
“List all customers having (zip-code GE 60001 AND zip code LT 70000 ) AND
(amount -ordered GT 500 OR times-ordered CT 5 )
2.
268 CT 479
GTSOO G
ORDER-TIMES
DRDERI1 LAST NAME I STREET ADDRESS 1G 21?’ cur;” C,,‘,Cs 34 Dream LaneR ,008 Ma&son Ave.c 454 Harmonla St.R 755 Dulclnea DrweG 7564 K StrewLc 4342 Wesf streetJ ,345 Mlchlgan Ave.T 3498 Bunon LaneM 1986 Sarnum Cm.J 354 Fwer Roadz 55 Flddier street
AiJD
CT 479 269
270 CT 479
top related