Question
Populate a symbol table using the textbook's symbol table API. (a) Use the table below to determine the proper operations to create and fill a
Populate a symbol table using the textbook's symbol table API.
(a) Use the table below to determine the proper operations to create and fill a symbol table with courses that your professor will be teaching for Spring of 2019.
COURSE | SEATS OCCUPIED |
SER222 | 47 |
SER315 | 63 |
SER334 | 38 |
SER401 | 40 |
SER415 | 42 |
(b) Before the beginning of the semester starts SER222 is canceled and will need to be removed from the symbol table. The number of occupied seats for SER401 have increased from 40 to 60 students and the number of occupied seats for SER315 have decreased from 63 to 58. Provide the code that would update your data symbol table with the provided scenario. Also provide the code that will print out all the keys located in the updated symbol table.
Step 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