Sample of proper output Please enter the number of students to process: 3 * * * * * * * * * * * * * * * * * * * * * * * * * * Please choose one of the menu options below: * * ============================================= * * (1) Input one student * * (2) Input all students * * (3) Print one student info record * * (4) Print all student info records * * (100) Exit this program * * * * * * * * * * * * * * * * * * * * * * * * * * Please enter your choice now: 2 Name: Wagner ID number: 12 Current number of students: 1 Name: Brian ID number: 25 Current number of students: 2 Name: Peter ID number: 39 Current number of students: 3 * * * * * * * * * * * * * * * * * * * * * * * * * * Please choose one of the menu options below: * * ============================================= * * (1) Input one student * * (2) Input all students * * (3) Print one student info record * * (4) Print all student info records * * (100) Exit this program * * * * * * * * * * * * * * * * * * * * * * * * * * Please enter your choice now: 1 ERROR: Array is full. Cannot add another student * * * * * * * * * * * * * * * * * * * * * * * * * * Please choose one of the menu options below: * * ============================================= * * (1) Input one student * * (2) Input all students * * (3) Print one student info record * * (4) Print all student info records * * (100) Exit this program * * * * * * * * * * * * * * * * * * * * * * * * * * Please enter your choice now: 2 ERROR: Array is full. Cannot add another student * * * * * * * * * * * * * * * * * * * * * * * * * * Please choose one of the menu options below: * * ============================================= * * (1) Input one student * * (2) Input all students * * (3) Print one student info record * * (4) Print all student info records * * (100) Exit this program * * * * * * * * * * * * * * * * * * * * * * * * * * Please enter your choice now: 3 * * * * * * * * * * * * * * * * * * * * * * * * * * Please choose one of the menu options below: * * ============================================= * * (1) Select student by ID * * (2) Select student by name * * (99) Cancel this request * * (100) Exit this program * * * * * * * * * * * * * * * * * * * * * * * * * * Please enter your choice now: 1 Please enter the ID of the student to search for: 12 Name: Wagner ID #: 12 * * * * * * * * * * * * * * * * * * * * * * * * * * Please choose one of the menu options below: * * ============================================= * * (1) Select student by ID * * (2) Select student by name * * (99) Cancel this request * * (100) Exit this program * * * * * * * * * * * * * * * * * * * * * * * * * * Please enter your choice now: 2 Please enter the name of the student to search for: Brian Name: Brian ID #: 25 * * * * * * * * * * * * * * * * * * * * * * * * * * Please choose one of the menu options below: * * ============================================= * * (1) Select student by ID * * (2) Select student by name * * (99) Cancel this request * * (100) Exit this program * * * * * * * * * * * * * * * * * * * * * * * * * * Please enter your choice now: 99 * * * * * * * * * * * * * * * * * * * * * * * * * * Please choose one of the menu options below: * * ============================================= * * (1) Input one student * * (2) Input all students * * (3) Print one student info record * * (4) Print all student info records * * (100) Exit this program * * * * * * * * * * * * * * * * * * * * * * * * * * Please enter your choice now: 4 Name: Wagner ID #: 12 Name: Brian ID #: 25 Name: Peter ID #: 39 * * * * * * * * * * * * * * * * * * * * * * * * * * Please choose one of the menu options below: * * ============================================= * * (1) Input one student * * (2) Input all students * * (3) Print one student info record * * (4) Print all student info records * * (100) Exit this program * * * * * * * * * * * * * * * * * * * * * * * * * * Please enter your choice now: 100 Thank you for using the CS 12 Student Information Center. Good bye now. :) in_lab_exer_3 has exited with status 0.
© 2003 UC Riverside Department of Computer Science & Engineering. All rights reserved.