logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Write 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)

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Week 1 - Modularizing/Debugging Your Code And Generating Documentation Assignment

For this assignment, you are going to pretend that you were just hired into a job where a previous developer left the company and you are taking their spot. The code they left is incomplete, has bugs and logic flaws in it, and needs to be documented and modularized according to the standards discussed this week in class.

Here is what the program needs to do (note that these instructions should look familiar to you from IT 533 and/or the pre-assessment for IT 534):

------------------------

Write 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 in classes 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.

Your submission should use principles of augmentation where appropriate and be as flexible as possible.

------------------------

The code you need to modify can be found at this link. Your job is to thoroughly test and debug it; reorganize your classes into modules; and produce documentation (using Pydoc) for your work using the principles discussed in the lectures this week.

Be sure to also put comments in your code that clearly mark how you are performing your program logic.  In the submission comments of this assignment, please place the repository URL of your file submission.

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

992 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

713 Answers

Hire Me
expert
Husnain SaeedComputer science

887 Answers

Hire Me
expert
Atharva PatilComputer science

710 Answers

Hire Me