SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
Building on the Student and course classes from a previous lab, implement the drop_student ()
instance method in the Course class, which removes a student (by last name) from the course
roster. If the student is not found in the course roster, no student should be dropped. The file
main.py will contain both the Student class and the Course class. Copy your student class from
the previous lab, or write a Student class with the following instance methods: - A Student
constructor that takes parameters for self, first, last, and gpa and sets the instance variables - A
method get_first(self) - return student's first name - A method get_last(self) - return student's last
name - A method get_gpa(self) - return student's gpa Ex: If a new Student object is created with
Andrew, Woo, 3.6, the default return values are: Andrew Woo 3.6 Copy your Course class from
the previous lab (you do NOT need the print statements), or write a Course class with the
following instance methods:

Mais conteúdo relacionado

Semelhante a Building on the Student and course classes from a previous lab, imple.pdf

import school.; import school.courses.;public class Main { p.pdf
import school.; import school.courses.;public class Main { p.pdfimport school.; import school.courses.;public class Main { p.pdf
import school.; import school.courses.;public class Main { p.pdf
annaiwatertreatment
 

Semelhante a Building on the Student and course classes from a previous lab, imple.pdf (8)

import school.; import school.courses.;public class Main { p.pdf
import school.; import school.courses.;public class Main { p.pdfimport school.; import school.courses.;public class Main { p.pdf
import school.; import school.courses.;public class Main { p.pdf
 
Java Inheritance
Java InheritanceJava Inheritance
Java Inheritance
 
Java abstract class & abstract methods
Java abstract class & abstract methodsJava abstract class & abstract methods
Java abstract class & abstract methods
 
CMSC 350 HOMEWORK 1
CMSC 350 HOMEWORK 1CMSC 350 HOMEWORK 1
CMSC 350 HOMEWORK 1
 
Method overloading, recursion, passing and returning objects from method, new...
Method overloading, recursion, passing and returning objects from method, new...Method overloading, recursion, passing and returning objects from method, new...
Method overloading, recursion, passing and returning objects from method, new...
 
Object Oriented Programming in PHP
Object Oriented Programming  in PHPObject Oriented Programming  in PHP
Object Oriented Programming in PHP
 
Python unit 3 m.sc cs
Python unit 3 m.sc csPython unit 3 m.sc cs
Python unit 3 m.sc cs
 
Java Basic day-2
Java Basic day-2Java Basic day-2
Java Basic day-2
 

Mais de sattarali527

Calculate the gross income.At any time during 2019, did you receiv.pdf
 Calculate the gross income.At any time during 2019, did you receiv.pdf Calculate the gross income.At any time during 2019, did you receiv.pdf
Calculate the gross income.At any time during 2019, did you receiv.pdf
sattarali527
 

Mais de sattarali527 (20)

CAM plants cope with hot, dry environments by Separating CO2 intake f.pdf
 CAM plants cope with hot, dry environments by Separating CO2 intake f.pdf CAM plants cope with hot, dry environments by Separating CO2 intake f.pdf
CAM plants cope with hot, dry environments by Separating CO2 intake f.pdf
 
Consider a humid temperate region such as western Oregon and Washingt.pdf
 Consider a humid temperate region such as western Oregon and Washingt.pdf Consider a humid temperate region such as western Oregon and Washingt.pdf
Consider a humid temperate region such as western Oregon and Washingt.pdf
 
Consider a cubic polynomial regression of Y on X (with no other varia.pdf
 Consider a cubic polynomial regression of Y on X (with no other varia.pdf Consider a cubic polynomial regression of Y on X (with no other varia.pdf
Consider a cubic polynomial regression of Y on X (with no other varia.pdf
 
conpelline wor. Peave eloberate the yatenent, identity the diferent .pdf
 conpelline wor. Peave eloberate the yatenent, identity the diferent .pdf conpelline wor. Peave eloberate the yatenent, identity the diferent .pdf
conpelline wor. Peave eloberate the yatenent, identity the diferent .pdf
 
concerning the companys operations in July appear below The company.pdf
 concerning the companys operations in July appear below The company.pdf concerning the companys operations in July appear below The company.pdf
concerning the companys operations in July appear below The company.pdf
 
Calculate the gross income.At any time during 2019, did you receiv.pdf
 Calculate the gross income.At any time during 2019, did you receiv.pdf Calculate the gross income.At any time during 2019, did you receiv.pdf
Calculate the gross income.At any time during 2019, did you receiv.pdf
 
Computer information systems - Tell us about your knowledge of a Coll.pdf
 Computer information systems - Tell us about your knowledge of a Coll.pdf Computer information systems - Tell us about your knowledge of a Coll.pdf
Computer information systems - Tell us about your knowledge of a Coll.pdf
 
Computer Model Specs For drawing the component layout diagram. Skyte.pdf
 Computer Model Specs For drawing the component layout diagram. Skyte.pdf Computer Model Specs For drawing the component layout diagram. Skyte.pdf
Computer Model Specs For drawing the component layout diagram. Skyte.pdf
 
COMPUTE FOR YOUR BASIC EARNING PER SHARE BASIC EARNINGS PER SHARE E.pdf
 COMPUTE FOR YOUR BASIC EARNING PER SHARE  BASIC EARNINGS PER SHARE E.pdf COMPUTE FOR YOUR BASIC EARNING PER SHARE  BASIC EARNINGS PER SHARE E.pdf
COMPUTE FOR YOUR BASIC EARNING PER SHARE BASIC EARNINGS PER SHARE E.pdf
 
Compuse the cash paybock periad for DO ITt 12.1 (LO 1), AP Wayne Com.pdf
 Compuse the cash paybock periad for  DO ITt 12.1 (LO 1), AP Wayne Com.pdf Compuse the cash paybock periad for  DO ITt 12.1 (LO 1), AP Wayne Com.pdf
Compuse the cash paybock periad for DO ITt 12.1 (LO 1), AP Wayne Com.pdf
 
Complete the MainActivity kt and MyAdapter kt code given below. Use t.pdf
 Complete the MainActivity kt and MyAdapter kt code given below. Use t.pdf Complete the MainActivity kt and MyAdapter kt code given below. Use t.pdf
Complete the MainActivity kt and MyAdapter kt code given below. Use t.pdf
 
Complete the following probability distribution table and then calcul.pdf
 Complete the following probability distribution table and then calcul.pdf Complete the following probability distribution table and then calcul.pdf
Complete the following probability distribution table and then calcul.pdf
 
Complete la tabla marcando () la columna correcta para cada afirma.pdf
 Complete la tabla marcando () la columna correcta para cada afirma.pdf Complete la tabla marcando () la columna correcta para cada afirma.pdf
Complete la tabla marcando () la columna correcta para cada afirma.pdf
 
Compare and contrast the changing roles of gametophytes and sporophyt.pdf
 Compare and contrast the changing roles of gametophytes and sporophyt.pdf Compare and contrast the changing roles of gametophytes and sporophyt.pdf
Compare and contrast the changing roles of gametophytes and sporophyt.pdf
 
Choose the climate forcings or feedbacks that cause climate anomalies.pdf
 Choose the climate forcings or feedbacks that cause climate anomalies.pdf Choose the climate forcings or feedbacks that cause climate anomalies.pdf
Choose the climate forcings or feedbacks that cause climate anomalies.pdf
 
Comparative balance sheets for Softech Canvas Goods for 2021 and 2020.pdf
 Comparative balance sheets for Softech Canvas Goods for 2021 and 2020.pdf Comparative balance sheets for Softech Canvas Goods for 2021 and 2020.pdf
Comparative balance sheets for Softech Canvas Goods for 2021 and 2020.pdf
 
Chose the answer that best describes the DNA genome replication mecha.pdf
 Chose the answer that best describes the DNA genome replication mecha.pdf Chose the answer that best describes the DNA genome replication mecha.pdf
Chose the answer that best describes the DNA genome replication mecha.pdf
 
Choose ALL the statements which are FALSE about DNA replication. a. O.pdf
 Choose ALL the statements which are FALSE about DNA replication. a. O.pdf Choose ALL the statements which are FALSE about DNA replication. a. O.pdf
Choose ALL the statements which are FALSE about DNA replication. a. O.pdf
 
Claim Fewer than 94 of adults have a cell phone. In a reputable pol.pdf
 Claim Fewer than 94 of adults have a cell phone. In a reputable pol.pdf Claim Fewer than 94 of adults have a cell phone. In a reputable pol.pdf
Claim Fewer than 94 of adults have a cell phone. In a reputable pol.pdf
 
Cick the icon to vew ino dsta the a) Find a 954 confidence interval f.pdf
 Cick the icon to vew ino dsta the a) Find a 954 confidence interval f.pdf Cick the icon to vew ino dsta the a) Find a 954 confidence interval f.pdf
Cick the icon to vew ino dsta the a) Find a 954 confidence interval f.pdf
 

Último

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Último (20)

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 

Building on the Student and course classes from a previous lab, imple.pdf

  • 1. Building on the Student and course classes from a previous lab, implement the drop_student () instance method in the Course class, which removes a student (by last name) from the course roster. If the student is not found in the course roster, no student should be dropped. The file main.py will contain both the Student class and the Course class. Copy your student class from the previous lab, or write a Student class with the following instance methods: - A Student constructor that takes parameters for self, first, last, and gpa and sets the instance variables - A method get_first(self) - return student's first name - A method get_last(self) - return student's last name - A method get_gpa(self) - return student's gpa Ex: If a new Student object is created with Andrew, Woo, 3.6, the default return values are: Andrew Woo 3.6 Copy your Course class from the previous lab (you do NOT need the print statements), or write a Course class with the following instance methods: