Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language C++ List, Vector, Stack, Queue, Set, Map. UnorderedMap, Priority Queue 1. Make a Student class that has Name, GPA, and Student Debt as properties

Language C++

image text in transcribed

List, Vector, Stack, Queue, Set, Map. UnorderedMap, Priority Queue 1. Make a Student class that has Name, GPA, and Student Debt as properties 2. In main, make a List of ints. Add some numbers to it 3. Make a Vector of Students. Add some Student objects to it 4. Make a Stack of Student Pointers. Push and pop some dynamically created Students to it. Make sure you don't leak memory 1. As in, have a for loop add in 10 dynamically created objects. Then have another loop correctly delete the objects, not just remove the pointers from the stack. 5. Make a Set of ints. Add some numbers to it 6. Make a Map of strings to ints. Put some movie titles and the year they came out in it 7. Do #6 with an unordered map And then the hard ones 1. Make a priority queue that uses a Student's GPA for the sort criteria. Add some Student objects and show that the next one that would be popped (the top one) is the highest GPA 2. Make a priority queue that uses a Student's Debt for the sort criteria. Add some Student pointers for dynamically created Students and show the next one popped is the one with the least debt

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions