Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Python DESCRIPTION Classes provide a great way to bundle information and functions. We will create a class called StudentRecord to record student academic information:
Using Python
DESCRIPTION Classes provide a great way to bundle information and functions. We will create a class called "StudentRecord" to record student academic information: 1. The class should contain attributes for recording "firstName", "lastName" to store First and Last names separately "dob" to store the student's Date of Birth "hsName", "hsCity", "hsState" to store High School name, city, and state information "degree" to store student's chosen Degree program "address" to store a string of the student's Address "transcript" to store a student's Grade history. The "transcript" object should be of a type that allows the storage of the course name "course", grade in the course "grade", the number of credits assigned to the course "credits", and the semester and year taken ("semester" and "year") for each course added to the transcript. The class should accept information for all variables listed above upon creation. I suggest also creating default values for each, as well. The class should include the following methods: "cum GPA" to return a float value of cumulative GPA "sem GPA" to return a float value of semester GPA. It should accept a number for the semester (1 or 2, for fall and spring, respectively), and a number for the year, then use these to calculate the GPA for that term. "credits" to count the number of credits a student has accumulated, and return that number as a float "newCourse" to add a course to the "transcript" object. This method should take the following parameters (in this order): O Course name o Year o Semester o Credits o Grade (as GPA points, not as a letter grade) scholarship" to determine scholarship eligibility based on the following cumulative GPA cutoffs: o 3.9 for a full-ride, o 3.63 for a half-tuition scholarship, and o 3.3 for a 1/4 tuition scholarship. All GPA's below the minimum scholarship cutoff receive no reward. o The method should return a string of "Full-ride" . "Half-tuition" . "Quarter-tuition" "Not Eligible Hint: You might want to create a separate class to handle courses that can be added to the transcript using the "newCourse" method. This separate class object should be handled behind the scenes, and not be used directly outside of the "StudentRecord" class. This is not strictly necessary, but is a good way to organize the necessary data. DESCRIPTION Classes provide a great way to bundle information and functions. We will create a class called "StudentRecord" to record student academic information: 1. The class should contain attributes for recording "firstName", "lastName" to store First and Last names separately "dob" to store the student's Date of Birth "hsName", "hsCity", "hsState" to store High School name, city, and state information "degree" to store student's chosen Degree program "address" to store a string of the student's Address "transcript" to store a student's Grade history. The "transcript" object should be of a type that allows the storage of the course name "course", grade in the course "grade", the number of credits assigned to the course "credits", and the semester and year taken ("semester" and "year") for each course added to the transcript. The class should accept information for all variables listed above upon creation. I suggest also creating default values for each, as well. The class should include the following methods: "cum GPA" to return a float value of cumulative GPA "sem GPA" to return a float value of semester GPA. It should accept a number for the semester (1 or 2, for fall and spring, respectively), and a number for the year, then use these to calculate the GPA for that term. "credits" to count the number of credits a student has accumulated, and return that number as a float "newCourse" to add a course to the "transcript" object. This method should take the following parameters (in this order): O Course name o Year o Semester o Credits o Grade (as GPA points, not as a letter grade) scholarship" to determine scholarship eligibility based on the following cumulative GPA cutoffs: o 3.9 for a full-ride, o 3.63 for a half-tuition scholarship, and o 3.3 for a 1/4 tuition scholarship. All GPA's below the minimum scholarship cutoff receive no reward. o The method should return a string of "Full-ride" . "Half-tuition" . "Quarter-tuition" "Not Eligible Hint: You might want to create a separate class to handle courses that can be added to the transcript using the "newCourse" method. This separate class object should be handled behind the scenes, and not be used directly outside of the "StudentRecord" class. This is not strictly necessary, but is a good way to organize the necessary dataStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started