Programming Assignment 25

 

 

The Department of Computer and Information Sciences has had a problem with unauthorized individuals sneaking into Department meetings!  They have asked you to write a program which checks identification at the door.

 

Your program should do the following things.

 

1.         Read the names of the Department members from a file.  (You don't know how many there are, but there will never be more than 10.)  Use a function named Input.

 

2.         Your program should use a loop to get names of individuals seeking entrance from the keyboard.  This loop should stop when the name "Quit" is entered.  For each name entered from the keyboard (you need a prompt first), you need to check whether the person should be admitted.  In the loop

 

            a.         Use a function GetName to get the name of the individual seeking entrance from the keyboard.

 

            b.         Check the individual's name against the list of Department members and print an appropriate message on the screen.  Use a bool function named Check.

 

 

 

CISC Department (in prog25.dat)

Moulton, Prof. Jack

Paradis, Prof. Rose

Diener, Prof. David

Lichtman, Prof. Howard

Carbone, Prof. Susan

Gann, Prof. Robert