Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please code should be written in python please For this question, you are required to create and implement the class Student. Your class should be

Please code should be written in python please

For this question, you are required to create and implement the class Student. Your class should be able to do the following:

3.1 (10 pts)Every instance of the Studentclass should have the following attributes:

First Name

Last Name

Middle Name

euid, by default euid is blank.

GPA, by default the GPA is set to 0

Classes taken. This object should store the class number (such as INFO 5731), the semester it was taken it (such as "Spring 2018"), and the grade the student obtained. HINT: use a collection data type.

3.2. (6 pts)Write a program that asks the user to enter information for three fictional students. The program should prompt the user to ask for the student's first, middle, and last names. This information should be stored in an object of type Student.

3.3. (9 pts)Write a function for the Student class that assigns each student a euid. The euid should be composed of three letters (the first three letters of the student's first, middle, and last names) and then 4 digits chosen randomly. For example, if a student's name is Jennifer Lynn Meyers her euid could be "jlm8940". Use this function to print out the names and euids of the students you created in 3.2.

3.4. (10 pts)Write a function for the Studentclass called "register". This function asks the user to enter a class number, a semester, and a grade for each student. Then this information is added to the Student object. Call this function for the students you created in part 3.2. Each student should be registered for at least two courses, but can have more than that .

3.5. (10 pts)Write a function for the Studentclass that calculates a student's GPA and prints it out. Use it to print out the names and GPAs of the student's you created in 3.2.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions