This is Python programming Focus 1. Classes and Objects 2. Creating objects 3. Manipulating objects This lab maps to learning...

70.2K

Verified Solution

Question

Programming

This is Python programming

Focus
1. Classes and Objects

2. Creating objects

3. Manipulating objects

This lab maps to learning the following objectives: Write a workingprogram that creates a Class, Instances of Objects from that Class,and Functions that use Objects as parameters.

For this portion of the lab, you will create a new program foryour Professor. Create a class named Student that holds thefollowing data about a student:

1. Name

2. Student ID number

3. GPA

4. Expected grade in this course

5. Full time or part time

Create five student objects from this class and pass data to fillin the class data above. Besides creating the objects, you willwrite a menu-driven program that performs the followingtasks:
1. Look up and print the student GPA

2. Add a new student to the class

3. Change the GPA of a student

4. Change the expected grade of a student

5. Print the data of all the students in a tabular format

6. Quit the program Save all the files that you create in thisprogram with appropriate file names.

Answer & Explanation Solved by verified expert
4.1 Ratings (598 Votes)
SolutionThis problem is solved using two python filesstudentpyclass Student student class definitionnamestudentID0 variables declarationGPA0expectedgradetypefpdef initselfnamestudentIDGPAexpectedgradetypefpconstructor of classselfnamename set all the class variablesselfstudentIDstudentIDselfGPAGPAselfexpectedgradeexpectedgradeselftypefptypefpdef setGPAselfGPA method to set gpaselfGPAGPAdef setexpectedgradeselfgrade method to set    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students