Develop a set of classes for a college to use in various student service and personnel
applications. Classes you need to design include the following:
l Person—A Person contains a first name, last name, street address, zip code, and
phone number. The class also includes a method that sets each data field, using a
series of dialog boxes and a display method that displays all of a Person’s
information on a single line at the command line on the screen.
l CollegeEmployee—CollegeEmployee descends from Person. A CollegeEmployee
also includes a Social Security number, an annual salary, and a department name,
as well as methods that override the Person methods to accept and display all
CollegeEmployee data.
l Faculty—Faculty descends from CollegeEmployee. This class also includes
a Boolean field that indicates whether the Faculty member is tenured, as well as
methods that override the CollegeEmployee methods to accept and display this
additional piece of information.
l Student—Student descends from Person. In addition to the fields available in
Person, a Student contains a major field of study and a grade point average as well
as methods that override the Person methods to accept and display these
additional facts.
Write an application named CollegeList that declares an array of four “regular”
CollegeEmployees, three Faculty, and seven Students. Prompt the user to specify
which type of person’s data will be entered (C, F, or S), or allow the user to quit (Q).
While the user chooses to continue (that is, does not quit), accept data entry for the
appropriate type of Person. If the user attempts to enter data for more than four
CollegeEmployees, three Faculty, or seven Students, display an error message.
When the user quits, display a report on the screen listing each group of Persons
under the appropriate heading of College Employees, Faculty, or Students. If the user
has not entered data for one or more types of Persons during a session, display an
appropriate message under the appropriate heading
พัฒนาชุดชั้นเรียนสำหรับวิทยาลัยที่จะใช้ในการให้บริการต่าง ๆ ของนักเรียนและบุคลากร
การใช้งาน เรียนคุณต้องออกแบบรวมถึงต่อไปนี้:
ลิตรส่วนบุคคลคนมีชื่อ, นามสกุล, ที่อยู่, รหัสไปรษณีย์และ
หมายเลขโทรศัพท์ ชั้นนี้ยังรวมถึงวิธีการที่กำหนดในแต่ละเขตข้อมูลโดยใช้
ชุดของกล่องโต้ตอบและวิธีการแสดงที่แสดงทุกคนของ
ข้อมูลในบรรทัดเดียวที่บรรทัดคำสั่งบนหน้าจอ.
ลิตร CollegeEmployee-CollegeEmployee สืบทอดมาจากคน CollegeEmployee
ยังรวมถึงหมายเลขประกันสังคม, เงินเดือนประจำปีและชื่อแผนก,
เช่นเดียวกับวิธีการที่แทนวิธีที่คนจะยอมรับและแสดงทั้งหมด
ข้อมูล CollegeEmployee.
L-คณะคณะลงจาก CollegeEmployee ชั้นนี้ยังรวมถึง
ข้อมูลบูลีนที่บ่งชี้ว่าสมาชิกคณะจะดำรงตำแหน่งเช่นเดียวกับ
วิธีการที่แทนที่วิธีการ CollegeEmployee ที่จะยอมรับและแสดงนี้
ชิ้นส่วนที่เพิ่มขึ้นของข้อมูล.
ลิตรนักเรียนนักศึกษาลงมาจากคน นอกจากฟิลด์ที่มีอยู่ใน
บุคคลนักศึกษามีข้อมูลที่สำคัญของการศึกษาและคะแนนเฉลี่ยสะสมตลอดจน
เป็นวิธีการที่แทนวิธีที่คนจะยอมรับและแสดงเหล่านี้
ข้อเท็จจริงเพิ่มเติม.
เขียนแอพลิเคชันชื่อ CollegeList ที่ประกาศอาร์เรย์ของสี่ "ปกติ"
CollegeEmployees สามคณะเจ็ดและนักเรียน แจ้งให้ผู้ใช้เพื่อระบุ
ชนิดของข้อมูลของบุคคลที่จะถูกป้อน (C, F, หรือ S) หรืออนุญาตให้ผู้ใช้ที่จะเลิก (Q).
ในขณะที่ผู้ใช้เลือกที่จะดำเนินการต่อ (นั่นคือไม่เลิก) ยอมรับการป้อนข้อมูล สำหรับ
ประเภทที่เหมาะสมของผู้ที่ หากผู้ใช้พยายามที่จะป้อนข้อมูลนานกว่าสี่
CollegeEmployees สามคณะหรือเจ็ดนักเรียนแสดงข้อผิดพลาด.
เมื่อผู้ใช้เลิกแสดงรายงานบนหน้าจอรายการแต่ละกลุ่มบุคคล
ภายใต้หัวข้อที่เหมาะสมของพนักงานวิทยาลัยคณะ หรือนักเรียน หากผู้ใช้
ไม่ได้ป้อนข้อมูลสำหรับการอย่างใดอย่างหนึ่งหรือหลายชนิดคนระหว่างช่วงการแสดง
ข้อความที่เหมาะสมภายใต้หัวข้อที่เหมาะสม
การแปล กรุณารอสักครู่..

พัฒนาชุดของชั้นเรียนสำหรับวิทยาลัยเพื่อใช้ในการให้บริการนักศึกษาและบุคลากร
ต่างๆโปรแกรม เรียนคุณต้องออกแบบรวมถึงต่อไปนี้ :
L คน person-a ประกอบด้วย ชื่อ , นามสกุล , ที่อยู่ , รหัสไปรษณีย์และ
เบอร์โทรศัพท์ . ชั้นนี้ยังรวมถึงวิธีการที่ชุดแต่ละเขตข้อมูลโดยใช้
ชุดของกล่องโต้ตอบและแสดงวิธีที่จะแสดงทั้งหมดของบุคคล
ข้อมูลในบรรทัดเดียวที่บรรทัดคำสั่งบนหน้าจอ collegeemployee
L collegeemployee ลงมาจากคน เป็น collegeemployee
รวมถึงหมายเลขประกันสังคม , เงินเดือน , และแผนกชื่อ
รวมทั้งวิธีการแทนที่คนวิธีการยอมรับและแสดงข้อมูล collegeemployee ทุกคน
.
อาจารย์คณะผมลงมาจาก collegeemployee . ชั้นนี้ยังรวมถึง
ตรรกะที่ระบุว่าคณะกรรมการสอน ตลอดจนวิธีการแทนที่ collegeemployee
วิธีการรับและแสดงข้อมูลเพิ่มเติมของชิ้นนี้
.
นักเรียนนักศึกษาผมลงมาจากคน นอกจากนี้ในเขตข้อมูลที่มีอยู่ใน
คน นักเรียน ประกอบด้วยสาขาวิชาของการศึกษาและเกรดเฉลี่ยเช่นกัน
เป็นวิธีที่ทำให้คนวิธีการยอมรับและแสดงข้อเท็จจริงเพิ่มเติมเหล่านี้
.
เขียนโปรแกรมชื่อ collegelist ที่ประกาศ array ของสี่ " ปกติ "
collegeemployees 3 คณะ และ 7 คน ให้ผู้ใช้สามารถระบุประเภทของข้อมูล
บุคคลซึ่งจะถูกป้อน ( C , F หรือ S ) หรืออนุญาตให้ผู้ใช้ที่จะเลิก ( q )
เมื่อผู้ใช้เลือกที่จะต่อ ( นั่นคือไม่เลิก ) ยอมรับการป้อนข้อมูลสำหรับ
ประเภทที่เหมาะสมของบุคคล หากผู้ใช้พยายามที่จะระบุข้อมูลมากกว่า 4
collegeemployees สามคณะ หรือเจ็ดคน แสดงข้อความแสดงข้อผิดพลาด .
เมื่อผู้ใช้เลิกแสดงรายงานในรายการจอแต่ละกลุ่มบุคคล
ภายใต้หัวเรื่องที่เหมาะสมของพนักงาน นักศึกษา อาจารย์ หรือ หากผู้ใช้
ไม่ได้ป้อนข้อมูลสำหรับหนึ่งหรือมากกว่าหนึ่งประเภทของบุคคลระหว่างเซสชัน แสดงข้อความที่เหมาะสมภายใต้หัวข้อ
เหมาะสม
การแปล กรุณารอสักครู่..
