CS 300 HashTable Milestone SH

docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

300

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

2

Uploaded by SargentSummerAntelope68

Report
Shyanne helo Hash table Milestone SNHU May 31, 2023 Professor Susalla CS 300 Pseudocode- Reading file: Open file using fstream Call to open file if the file not found than return value will be -1 Else if file is found While its not the end of file Read every line If > than 2 values in 1 line, than it returns error Else read the parameters If 3 or more parameters If 3 or more parameters are in 1 parameter elsewhere continue Else it returns an error Close file Creating course objects in a hash table: Int course vector Produce hashtable class Produce insert method Insert items into hashtable Create a loop for the file While not end of file For every line in the file For 1 st & 2 nd value
Produce temp item to secure values If 3 rd value exists + to current value Use insert method for every value Search & print from the hashtable: Call on input Allot input for the key If key is established Print course info For each prereq of the course Print prereq course info
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help