Build a hash table using chaining as the collision resolution technique -- 2

Κλειστό Αναρτήθηκε Πριν 7 χρόνια Πληρώθηκε κατά την παράδοση
Κλειστό Πληρώθηκε κατά την παράδοση

Program Specification:

Build a hash table using chaining as the collision resolution technique. Insertions into the hash table will correspond to declarations of variables and values in a program, searches will be requests for the value of a variable. Some variables will be local and have a narrow scope while some variables will be global.

The program will take input from a file, another program written in the omnipotent programming language BORG (Bionicly Omnipotent Resistance Grinders) and generate output from this program.

The BORG language has the following commands (keywords):

1. START-FINISH blocks. Indicating different scopes.

2. COM - Single line comments: Text should be ignored if on the same line

3. VAR varName – Variable Declaration, adds “varName” to the hash table.

4. variable = expression – Assignment statements, ie GEORGE = 122. Find GEORGE in the hash table and assign 122 to it.

5. ++ - increment operator, syntax: VARIABLE ++

6. -- - decrement operator, syntax: VARIABLE --

7. expressions, expressions are limited to unary and binary arithmetic, or variable names

8. supported operators: + - / * % ^ (plus, minus, divide, multiple, modulo, exponent)

9. PRINT – syntax PRINT expression. If the expression is a variable, and this variable is not in scope, then an error message indicating unknown variable x at line number y. The value printed if there is a variable in scope should be the variable with the closest scope.

10. Errors – other than the print statements, our interpreter will not be responsible for detecting errors, syntax errors should be disregarded if encountered, assume that the source file is correct.

Our hash function: sum the ordinal values of the characters of the variable multiplied by their position in the string (1-indexing), then taking the modulo by TABLESIZE.

Γλώσσα Προγραμματισμού C Προγραμματισμός C++

Ταυτότητα Εργασίας: #13910551

Σχετικά με την εργασία

12 προτάσεις Απομακρυσμένη εργασία Ενεργό Πριν 6 χρόνια

12 freelancers κάνουν προσφορές κατά μέσο όρο $125 για αυτή τη δουλειά

urmate

HI Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks Farah Saif

$100 USD σε 3 μέρες
(463 Αξιολογήσεις)
7.2
it2051229

Hi there, I went through the requirements and I would like to do this project if given the opportunity. Let me know if you are interested. Thanks.

$50 USD σε 1 μέρα
(783 Αξιολογήσεις)
7.4
hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Περισσότερα

$150 USD σε 3 μέρες
(200 Αξιολογήσεις)
7.3
masterlancer999

Hello, how are you? I am BF. I am expert in C/C++, .NET, JAVA programming I've just read your project descryptioin and i am interested in it I can complete your project in your timeline successfully and will always Περισσότερα

$155 USD σε 3 μέρες
(8 Αξιολογήσεις)
5.8
razibhassan225

i am very expert in programming site .i am expert in C,C++,JAVA,PYTHON ,Database and c# language.i can be solve your problem.

$155 USD σε 3 μέρες
(0 Αξιολογήσεις)
0.0
kaypeedub

I am a C++ tutor and developer and have experience with multiple assignments and extensions. I have the time to start right away.

$110 USD σε 1 μέρα
(0 Αξιολογήσεις)
1.0
astreek

Hi We are a team of two developers with around 4 years of real world experience. Our expertise is python (system programming, machine learning) and C programming. We have strong knowledge in computer science so Περισσότερα

$200 USD σε 4 μέρες
(0 Αξιολογήσεις)
0.0
brainybites

I'll do your assignment for a very negotiable price within the given time frame. Before accepting my bid you'll have to discuss the assignment question with me on chat, Inbox me now so that I could start solving your a Περισσότερα

$30 USD σε 2 μέρες
(0 Αξιολογήσεις)
0.0