Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PLEASE DONT USE JAVA I WANT IN C++ Name your source code as .doc or docx (replac

ID: 3828077 • Letter: P

Question

PLEASE DONT USE JAVA I WANT IN C++

Name your source code as .doc or docx (replace the text with with your last name and first name, in that order) and upload to blackboard. Use Open or Closed Hashing to store the following information in a hash table of your own size. The items are expected to consist of about 20 string values as the keys, with integers as the associated data. Implement a conversion into int from the key string value then store the value into the hash table (open or closed, your choice). Explain what you did and why you did it in an associated report. Attach your code to the report and submit as a word file. Test your code with the following actions as inputs (program these in main) create new hash table input key, value {John, 1001} input key value {Bob, 999} input key value {Sue, 2012} input key value {Mary, 101} retrieve all inputs (one by one), outputting the key and value to standard output

Explanation / Answer

#include #include #include using namespace std; string lowerCase(string isUpper); void main() { //create hash map map stringCounts; //temp string string nextString; //import file/write file ofstream writeFile; ifstream gooseFile; //open file to read from gooseFile.open("goose.txt"); if (gooseFile.is_open()) { //read file word by word while (gooseFile >> nextString) { //WORKS DO NOT CHANGE //check for punctuation for (int i = 0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote