代写 swift graph network Donna Graves COMP 35 Project Winter 2019 Concert Reservation System

Donna Graves COMP 35 Project Winter 2019 Concert Reservation System
Table of Contents
COMP 35 Project Introduction………………………………………………………………………………………………………….. 2 The Patron Master File…………………………………………………………………………………………………………………….. 3 The Ticket Master File……………………………………………………………………………………………………………………… 4
Record layout:………………………………………………………………………………………………………………………… 4 Concert Reservation System – Menu Program…………………………………………………………………………………….. 5 Concert Reservation System – Inquiry Program…………………………………………………………………………………… 6 Concert Reservation System – Ticket Reservation Program………………………………………………………………….. 7 User id, passwords, programs, mapsets, trans-ids & files …………………………………………………………………….. 9
ASSIGNMENT #1 ASSIGNMENT #2 ASSIGNMENT #3
Due Date: Tues Jan 29th (must be demo’d during lab)………………………………………. 10 Due Date: Tues Mar 12th (must be demo’d during lab) …………………………………….. 11 Due Date: Mon Apr 15th …………………………………………………………………………………. 12
35project2019
COMP 35 Page1

COMP 35 Project Introduction
The consulting firm that you currently work for has been hired to enhance a concert reservation system for a local ticket agency. You will be responsible for modifying three of the programs:
1) The menu program that lets a user invoke one of six programs
2) The patron inquiry program that displays all information about a patron. 3) A program that allows a patron to reserve at most 6 concert tickets.
The concert reservation system uses 2 KSDS VSAM files; one to keep track of the concerts available and the other to keep track of the patrons. The concert file stores each concert’s title and status. There is a separate concert record for each ticket for the concert; therefore if there are five tickets available to The Rolling Stones there will be five records for that concert. The concert file is indexed by a combination of the concert number and a copy number. When a ticket is reserved, a flag is turned on indicating that the ticket is reserved and the patron’s phone number is added to the file.
The patron file stores each patron’s phone number, name and address. It is indexed by the patron’s phone number. The patron file also contains a count of the number of tickets the patron has currently reserved. This count is incremented whenever a patron reserves a ticket and decremented when he/she cancels one. Since the local ticket agent only has a few tickets for sale for each concert in this region, the number of tickets purchased by a patron is limited to 6.
As a member of the programming team working on this project, you will be expected to perform as an IS professional. As with any business, money is a driving factor. To ensure the cost of this project does not go over budget, you are expected to adhere to the following:
 You are expected to attend all classes – information should not have to be relayed to individuals twice.
Time is money!
 Classes are to be treated as business meetings; arrive on time, no conversations (with classmates or cell
phones!), no misuse of handheld devices or laptops, come prepared to take notes etc.
 THE TEXTBOOK IS REQUIRED. THE 2ND AND 3RD TESTS ARE BOTH OPEN TEXTBOOK. Bring your text to
every class.
 All programs will contain necessary documentation.
 Design is to be thoroughly developed before implementation begins.
 Information sessions or brainstorming amongst programmers is encouraged, however all programs are
to be unique!
 At this point in your career, you should have acquired appropriate problem solving skills to not only
design but to debug your own programs. As the project leader, I should not be inundated with numerous questions. You should be asking key questions that will help me understand your program. Questions are to be at the design level, not the code level. You have an extensive background in COBOL and should not be asking syntax questions. Remember your colleagues have deadlines to meet and you should not be using up their time to complete your project.
 All due dates must be adhered to. Again time is money.
 Remember that you are writing code for the maintenance programmer. Ensure that you develop
solutions that are not only easy to read, but are easy to maintain. A program isn’t necessarily correct,
just because it works.You will be graded on your design too.
 Since all of the programs exist in this system, you are to make appropriate changes to these programs.
You will not be rewriting the programs from scratch.
 All programs must be free of syntax errors before being accepted.
The lab exercises are designed to help you complete the programs for this project. Write ups for the labs are posted on Blackboard each week, providing helpful hints.
35project2019 COMP 35 Page2

The Patron Master File
Record layout:
01 PATRON-MASTER-RECORD.
*
05 PM-PHONE-NUMBER
05 PM-FIRST-NAME
05 PM-LAST-NAME
05 PM-ADDRESS
05 PM-CITY
05 PM-PROVINCE
05 PM-POSTAL-CODE
05 PM-NO-TICKETS
The following test data will be loaded in the Patron Master File:
(Copy member name: PATRON)
PIC X(7).
Key field
PIC X(20).
PIC X(30).
PIC X(30).
PIC X(20).
PIC X(2).
PIC X(10).
PIC 9(4) COMP.
1111111
John Smith
413 Maple Belleville ON
L5M 4L8
2222222
Mary
Johnson
327 Birch Street Kingston
ON
K7L 4V1
3333333
Brandon Albertson
3882 Pine Street Gananoque
ON
K4L 3M5
4444444
Robert
Eckert
3828 Alder Crescent Hull
PQ
H7J 6M8
EXT1151
Donna
Graves
St. Lawrence College Kingston
ON
K7L 5A6
35project2019 COMP 35
Page3

The Ticket Master File
Record layout:
01 TICKET-MASTER-RECORD.
*
05 TM-TICKET-NUMBER.
10 TM-CONCERT-NUMBER 10 TM-COPY-NUMBER 05 TM-CONCERT-TITLE 05 TM-STATUS
88 NOT-RESERVED
88 RESERVED
05 TM-PATRON-NUMBER
05 TM-DATE-RESERVED
The following test data will be loaded in the Ticket Master File:
Copy member name: TICKETS)
Key field
PIC X(6).
PIC 9(2).
PIC X(30).
PIC X.
VALUE ‘1’.
VALUE ‘2’.
PIC X(7).
PIC S9(7) COMP-3.
10000001
10000002
10000003
10000004
The Rolling Stones The Rolling Stones The Rolling Stones The Rolling Stones
20000001
20000002
Josh Groban Josh Groban
30000001
30000002
30000003
Celine Dion Celine Dion Celine Dion
40000001
40000002
40000003
40000004
Katy Perry Katy Perry Katy Perry Katy Perry
50000001
50000002
Blue Rodeo Blue Rodeo
60000001
60000002
60000003
Taylor Swift Taylor Swift Taylor Swift
70000001
70000002
70000003
70000004
Justin Timberlake Justin Timberlake Justin Timberlake Justin Timberlake
80000001
80000002
80000003
Lady Gaga Lady Gaga Lady Gaga
90000001
90000002
90000003
90000004
Adele Adele Adele Adele
11111111
Mariah Carey
22222221
22222222
Averyl Lavigne Averyl Lavigne
33333331
33333332
33333333
Bare Naked Ladies Bare Naked Ladies Bare Naked Ladies
35project2019 COMP 35
Page4

Concert Reservation System – Menu Program
Screen Layout:
12345678 12345678901234567890123456789012345678901234567890123456789012345678901234567890
1 2 3 4 5 6 7 8 9
10
11
12
13
:
18
19
20
21
22
23
24
Program Specifications:
MENUM?? Concert Reservation System – Menu Program XXXX
Written by add your name here
Select an action. Then press Enter.
1. Patron Inquiry
2. Ticket Reservation
3. Cancel Reservation
4. Update Patron Data
5. Print Patron Bill
6. Print Concert List
Action . . . . 9
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
F3=Exit F12=Cancel X
Where X’s represent alphanumeric and 9’s represent numeric only fields
Program name
MENUP?? (Replace ?? with your 2 digit CICS id number)
Trans-id
ME??
Description
Displays a menu and lets the user select which program to run.
Input/output specifications
MENUM?? Menu map
Processing specifications
1. The menu program is invoked when the user enters the trans-id ME?? or when another program branches to it via an XCTL command with no communication area. Either way, it should respond by displaying the menu map.
2. On the menu map, the user enters an action code. If the action code is valid (from 1 to 6), the program should XCTL to the appropriate program, as follows:
1 INQP??
2 ADDP??
3 CANP??
4 UPDP??
5 PRINTP??
6 LISTP??
Patron Inquiry Ticket Reservation Cancel Reservation Update Patron Data Print Patron Bill Print Concert List
If the action code isn’t valid, the program should display an error message.
3. If the user presses F3 or F12, the program should display the message
“Session ended” and terminate by issuing a RETURN command without a
trans-id.
4. If the user presses Pause, clear the screen and display the initial
instructions.
5. Print a user friendly error message for any other PFkey and ignore all PA
keys.
35project2019 COMP 35 Page5

Concert Reservation System – Inquiry Program
Screen Layout:
12345678 12345678901234567890123456789012345678901234567890123456789012345678901234567890
1 2 3 4 5 6 7 8 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Program Specifications:
INQM?? Concert Reservation System – Inquiry Program XXXX
Written by add your name here
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Patron phone number. . . . . . XXXXXXX
Name and address . . . . . . : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX XX XXXXXXXXXX
# Tickets Reserved . . . : ZZ,ZZ9
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
F3=Exit F12=Cancel X
Where X’s represent alphanumeric and 9’s represent numeric only fields
Program name
INQP?? (Replace ?? with your 2 digit CICS id number)
Trans-id
IN??
Description
Displays patron information from the Patron Master File based on the phone number entered by the user.
Input/output specifications
CSTMST?? Patron Master File INQM?? Inquiry map
Processing specifications
1. Control is transferred to this program via XCTL from the menu program with no communication area. The user can also start the program by entering the trans-id IN?? Either way, the program should respond by displaying the inquiry map.
2. The user instructions should initially read, “Type a patron phone number. Then press Enter.” When the user enters a phone number read the appropriate record from the CSTMST?? file and display it, changing the user instructions to “Press Enter to continue.” When the user presses the Enter key, erase the patron data and redisplay the original user instructions. If the user doesn’t enter a phone number or the record doesn’t exist, leave the phone number on the screen, if entered, and display an appropriate error message.
3. If the user presses F3 or F12, the program should return to the menu program by issuing an XCTL command.
4. If the user presses Pause, clear the screen and display the initial instructions.
5. Print a user friendly error message for any other PFkey and ignore all PA keys.
35project2019 COMP 35 Page6

Concert Reservation System – Ticket Reservation Program
Screen Layout:
12345678 12345678901234567890123456789012345678901234567890123456789012345678901234567890
1 2 3 4 5 6 7 8 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ADDM?? Concert Reservation System – Ticket Reservation Program XXXX
Written by add your name here
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Patron phone number. . . . . . XXXXXXX
Name. . . . . . . . . . . . : XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Tickets Reserved . . . . . : ZZ,ZZ9
Ticket # Concert Status
XXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
XXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
XXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
XXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
XXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
XXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X
Where X’s represent alphanumeric and 9’s represent numeric only fields
35project2019 COMP 35 Page7

Ticket Reservation Program (cont’d)
Program Specifications:
Program name
ADDP?? (Replace ?? with your 2 digit CICS id number)
Trans-id
AD??
Description
Program allows a patron to reserve in at most six tickets, updating both the Patron and Ticket Master file records.
Input/output specifications
CSTMST?? ITMMST?? ADDM?? ADDMAP
Patron Master File
Ticket Master File
Ticket Reservation Map Programmer-generated symbolic map
Processing specifications
1. Control is transferred to this program via XCTL from the menu program with no communication area. The user can also start the program by entering the trans-id AD?? Either way, the program should respond by displaying the Ticket Reservation map.
2. The user instructions should initially read, “Type a patron number and up to six tickets. Then press Enter.” When the user enters a phone number and one or more ticket numbers, read the appropriate record from the CSTMST?? file and the appropriate ticket records from the ITMMST?? file and display the patron’s name, number of tickets prior to this reservation and each ticket’s title and status (“Available”, “Reserved”, or “Invalid ticket”). If (1) the patron and ticket numbers are valid, (2) all of the tickets are available to reserve, and (3) the total number of tickets for the patron won’t exceed 6, protect all fields and change the user instructions to “Press Enter to reserve these tickets. Or press F4 to enter corrections.” Then, if the user presses the Enter key, update the patron record by incrementing the number of tickets reserved field once for each ticket reserved. Update the ticket records by adding the patron number, current date and changing the status field to RESERVED. Then, redisplay the ticket reservation map for a new transaction. Inform the user that the records were updated.
3. If the user presses F4, unprotect the data entry fields and redisplay the screen showing user input. Change the user instructions to “Type corrections. Then press Enter.”
4. If the data entered by the user is invalid, redisplay the map with an appropriate error message and change the user instructions to “Type corrections. Then press Enter.”
5. If the user presses F12, the program should cancel the reservation and redisplay the entry screen with blank fields.
6. Transfer control to the menu program if the user ends the program by pressing F3 or by pressing F12 at the data entry screen.
7. If the user presses Pause, clear the screen and display the initial instructions.
8. Print a user friendly error message for any other PFkey and ignore all PA keys.
35project2019 COMP 35 Page8

User id, passwords, programs, mapsets, trans-ids & files
User ID: Password:
Your userid is found in Blackboard in your grades
The password is set to your user id. You must change your password when your first sign on.
Program
Program Name
Mapset Name
Trans-id
Menu
MENUP??
MENUM??
ME??
Inquiry
INQP??
INQM??
IN??
Add
ADDP??
ADDM??
AD??
Data Sets
File id
Patron Master File
CSTMST??
Ticket Master File
ITMMST??
35project2019
COMP 35 Page9

ASSIGNMENT #1 Due Date: Tues Jan 29th (must be demo’d during lab)
You are required to modify the BMS maps for the patron inquiry and ticket reservation programs. You will need to copy the maps from the SLC.CPA.SOURCE.PDS. Refer to the screen layout for each program on the previous pages to determine the changes/additions required.
Also, for both maps:
Do not add initial values to the BMS map for any program output fields. The Xs and edited picture clause that appear on the screen layout are to appear as blanks on the screen when viewing your map. They will be assigned values by the COBOL program in a later assignment.
Have all user input appear as underscores when the map is displayed.
Note: Have user input appear as underscores. The program output, which appears as X’s on the screen layout, are to appear as blanks on the screen when you view your map. i.e. don’t add them as INITIAL values for the fields since the COBOL program will be supplying them.
Patron Inquiry Program Map:
The BMS code for the Patron Inquiry program is called INQBMS.
 Ensure that the cursor stops after the patron phone number has been entered.  Position the cursor at the patron phone number when the map is displayed.
Ticket Reservation Program Map:
The BMS code for the Ticket Reservation program is called ADDBMS.
 Ensure that the cursor skips to the first ticket number after the patron phone number has been entered.
 Position the cursor in the home position (top left hand corner) when the map is displayed. Programmer Generated Symbolic Map:
You will also need to create your own symbolic map to include all fieldnames for the ticket reservation program. Include a table for the ticket information (ticket number, concert and status).
 Follow the rules on page 131 of your textbook. See Chapter 13 for code examples.
 You can use a word or notepad for your solution.
 Add your name as a comment to all code.
Maps will be evaluated on-line on the due date during our scheduled lab. It is your responsibility to ensure that CICS points to the newest version of your maps prior to demo’ing your assignment.
Place your assignment in your folder for the course and copy into my ‘ found under
DropboxW7 on the college’s network shares.
Hand in: The programmer generated symbolic map of the Ticket Reservations program only
No paper copy is to be handed in.
dropbox for COMP 35’ folder
35project2019 COMP 35 Page10

ASSIGNMENT #2 Due Date: Tues Mar 12th (must be demo’d during lab)
The Patron Inquiry program has been partially written and is called INQCOB. You will need to copy the
program from the SLC.CPA.SOURCE.PDS.
Read the program specifications for the inquiry program on page 6 to learn more about this program.
Note: Before proceeding, you need to ensure that your inquiry map program is working properly and all changes recommended when assignment#1 was evaluated have been made.
Programming Guidelines
1. Complete lab ex#6 which has you write the CICS commands required for the program.
2. Validate the patron phone number. A phone number must be entered and cannot be
spaces. Use both the L and I fields when validating. Ensure your program is user-friendly.
There is a paragraph in the INQCOB program set up for you to add your editing criteria.
3. Your program must always display appropriate instructions on line 3 and error or program
response messages on line 23. DO NOT CHANGE THE WORDING OF THE INSTRUCTIONS.
4. Allow the user to press enter after viewing the patron record to clear the screen. If the user
enters a patron phone number when asked to clear the screen, simply ignore it.
5. Use an 88 level to represent each context in your communication area.
6. Do not set the MDT for any fields! Only the DUMMY field can set it.
7. Do not add INITIAL values to the BMS map for the trans-id and the user instructions.
8. If the patron file is not open, print an appropriate error message, do not abend the program.
9. Abend the program for exceptional conditions except (not open, not found and normal).
10. Ensure the keyboard does not lock when sending messages with the alarm set.
11. Keep the size of the PROCEDURE DIVISION and WORKING-STORAGE low. Avoid extra
variables and statements. e.g. user instructions should be hard coded and avoid constants.
12. Use the same context names in your program that appear in your event response chart
13. Use CEDF to ensure that you have set a context with every event. Your code must match
your event response chart.
Stub test your program. Add the CICS commands and test them before proceeding to the next modification required. If you have logic errors when testing your program, CICS will not tell you which statement is in error. You need to know the last change that you had made to the program. You don’t want to make a lot of changes and then test it!
Note: The program must have a condition code of zero to be graded
Place your assignment in your named folder for the course and copy into my ‘dropbox for COMP 35’ folder found under DropboxW7 on the college’s network shares.
Hand in: Context Response Chart
The inquiry program will be evaluated on-line as part of the grading for the assignment. It is your responsibility to ensure that CICS points to the newest version of your program and map prior to demo’ing your assignment.
35project2019 COMP 35 Page11

ASSIGNMENT #3 Due Date: Mon Apr 15th
The Ticket Reservation program exists and is called ADDCOB. You will need to copy the program from the SLC.CPA.SOURCE.PDS. Modifications are required to the program to allow the user to confirm the reservation or to make corrections to the data input before updating the files. (See Ticket Reservation Program Specifications). Ensure your program is user friendly.
Complex changes are required to this program to incorporate the enhancements required. Stub testing is a definite must!
Lab exercise # 8, 9 and 10 been designed to help you with the ticket reservation program.
Note: You will be updating both the Patron and Ticket Master Files.
To reset the files, run the on line program that has a trans-id of FIX
All programs (menu, inquiry and ticket reservations) will be evaluated on-line. It is your responsibility to ensure that CICS points to the newest version of each program and map prior to demo’ing your assignment.
Warning: if you lost points on the inquiry program and didn’t fix them, you will lose those points again!
Note: All evaluation is completed online. You do not submit any papers to me.
Do not set the MDT for any fields (other than the DUMMY field in BMS)!
20 points will be lost if used!
There are no extensions for this assignment.
We have dedicated lab time to work on the assignment. Don’t procrastinate!
35project2019 COMP 35 Page12