For this assignment, you need to submit a Python program that gathers information about instructors and students according to the rules provided: What type of individual we're dealing with (instructor...

1 answer below »

For this assignment, you need to submit a Python program that gathers information about instructors and students according to the rules provided:



  • What type of individual we're dealing with (instructor or student)

  • If the individual is a student, we need to get their Student ID (this is required, and must be a number that is 7 or less digits long)

    • We also need to obtain their program of study (this is required)



  • If the individual is an instructor, we need to get their Instructor ID (this is required, and must be a number that is 5 or less digits long)

    • We also need to obtain the name of the last institution they graduated from (this is required) and highest degree earned (this is required)



  • The individual's name (this is required, and must be primarily comprised of upper- and lower-case letters. It also cannot contain any of the following characters: ! " @ # $ % ^ & * ( ) _ = + , <> / ? ; : [ ] { } \ ).


  • The individual's email address(this is required, and must be primarily comprised of alphanumeric characters.It also cannot contain any of the following characters: ! " ' # $ % ^ & * ( ) = + , <> / ? ; : [ ] { } \ ).


Write your program such that if a user inputs any of the above information incorrectly,the program asks the user to re-enter it before continuing on. Your program should accept any number of individuals until the person using the program says they are done.


You will store the information you collect for each user in class instances that you will append to a list called "college_records". There will be an Instructor class and a Student Class (which should be pretty simple), and your submission must use inheritance principles. Create a method that displays all collected information for an individual called "displayInformation".


You must also create a class called "Validator" that has methods attached to it that validate submitted information.



When your submission is through gathering data, print out all entries in the college_records list.



Be sure to put comments in your code that clearly mark how you are performing your program logic.

Answered Same DaySep 02, 2021

Answer To: For this assignment, you need to submit a Python program that gathers information about instructors...

Neha answered on Sep 03 2021
158 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here