Create a students class with the following methods default


Program # 1

1. Show StudentsADT interface

2. Create a Course class with the following methods: default constructor, overloaded constructor, copy constructor, setCourseName, setSectionNumber, setNumberOfCredits, setLink, getCourseName, getSectionNumber, getNumberOfCredits, getLink, toString

3. Create a Students class with the following methods: default constructor, overloaded constructor, copy constructor, setMaxNumberOf Students, add5tudent, addCourse (pass 2 args), dropCourse (2 args), toString

4. Create an Inner class called Student inside Students class with the following methods: default constructor, overloaded constructor, setID, setCourses, getID, getCourses, addCourse (pass 1 arg), dropCourse (1 erg), toString

5. Create a Studentsbemo class by adding the students with Ms: 1111, 1234, 2357

- Display the following menu:

"What action would you like to implement?"

1: Show all Students
2: Add a Course
3: Drop a Course
9: Quit

 

Program # 2

1. Show PolynomialADT interface

2. Create the PolyNodeClass with the following methods: default constructor, overloaded constructor, copy constructor, setCoefficient, setExponent, setNext, getCoefficient, getExponent, getNext

3. Create the Polynomialbata5trucClass with the following methods: default constructor, overloaded constructor, copy constructor, isEmpty, setFirstNode, getFirstNode, addPolyNodeFirst (PolyNode is created and set to beginning of polynomial), addPolyNodeLast, addPolyNode (PolyNode is set to the end of polynomial), addPolynomials, toString

4. Create the PolynomialDemoClass: instantiate and initialize Polynomialbata5trucClass objects pl, p2, p3, p4

Add terms to the polynomials (pass 2 arguments to the method: coefficient and exponent- for example: pl.addPolyNodeLast(4, 3);)
Print out pl, p2 and sum of the polynomials AND p3, p4, and sum of the polynomials

Use: p1 = 4x^3 + 3x^2 - 5;  P2= 3x^5 + 4x^4 + x^3 - 4x^2 + 4x^1 + 2

AND

p3= -5x^0 + 3x^2 + 4x^3 ; p4 = -4x^0 + 4x^3 + 5x^4

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a students class with the following methods default
Reference No:- TGS02579218

Now Priced at $30 (50% Discount)

Recommended (96%)

Rated (4.8/5)