$20 Bonus + 25% OFF
Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!
Students Who Viewed This Also Studied
CIS2520 Data Structures
Question:
Summary and Purpose
For this assignment, you will be writing a program that performs a complex data base operation using hash tables, arrays and set. Some example code is provided to help you to understand the data available and how to use it.
Deliverables
You will be submitting:
1) A file called a6.c that contains a program (including a main function that performs as described below). Do not include any of the functions from the instructor supplied file “hash.c” in your code. #include the file hash.h in your code.
2) A makefile that complies a6.c into a file a6.o and links the file a6.o with the file hash.o (based on hash.c provided by the instructor), to produce an executable called a6.
3) If you submit any *.rel, *.idx, *.hash, or *.txt files to your git repository you will be deducted 2 marks per file. (Do not add a *.txt entry to your git ignore file or you will not be able the receive feedback on your A6.)
You will submit all of your work via git to the School’s gitlab server This is an individual assignment. Any evidence of code sharing will be investigated and, if appropriate adjudicated using the University’s Academic Integrity rules.
Operation of the program
Your program will accept 2 command line parameters. The first will be a building designation that matches one of the building designations in the file building.txt. The second will be a room number that matches one of the room numbers in the file room.txt. Your program should search the database and find all classes that occur in that room. And use the following print statement to print out the details for each class:
printf( “%s*%s %s %s – %sn”, subject, courseno, days, from, to );
Your program should not print anything else. If there are no classes in the room, the program should quit without printing anything. For the first 80% of the assignment, the print statements are allowed to contain duplicates and need not be in any particular order.
Sample code
In addition to a file hash.c and a file hash.h a number of example programs are provided by the instructor, along with a makefile. The following are some examples of how to use the example program to accomplish the same task that you are required to do (albeit in a very manual and painstaking way).
*./get_idx building ALEX This will print the index associated with the building Alexander Hall.
*./get_idx room 200 This will print the index associated with room number 200.
*./query code -1 building 3 building_3.set This will search for all codes that are associated with building index 3 in the code_building.rel relation file. It will store the resulting set of codes in the file building_3.set which is a file consisting of 1 char for each code, set to 0 if the code is NOT associated with the building and set to 1 if the code IS associated with the building.
*./query code -1 room 49 room_49.set This will search for all codes that are associated with room index 49 in the code_room.rel relation file. It will store the resulting set of codes in the file room_49.set which is a file consisting of 1 char for each code, set to 0 if the code is NOT associated with the room and set to 1 if the code IS associated with the room.
*./and building_3.set room_49.set alex200.set This will computer the set intersection of the building 3 and room 49 sets and store the result in the set alex200.set.
CIS2520 Data Structures
Answer in Detail
Solved by qualified expert
Get Access to This Answer
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.
Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.
Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.
Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.
16 More Pages to Come in This Document. Get access to the complete answer.
At MyAssignmenthelp.com, you can buy your assignment in Melbourne at highly competitive rates. We never compromise on quality despite our low prices and offer assignment help in Brisbane too, no matter which university you belong to. We also cover other regions in Australia and provide assignment help in Perth, Sydney and more. You can also avail CDR writing services from us as we have a large pool of experienced in-house CDR writers.
More CIS2520 CIS2520 Data Structures: Questions & Answers
CSI3208: Ethical Hacking and Defence
Task
You are to write a technical outline of how the exploit you developed in the workshop operates, from the initial connection, through to compromise.You should target a primarily technical audience in your report.Formatting Requirements
Approximately two pages
Font: times new roman, size 11
M …
View Answer
Management
Write a program that asks the user some questions in order to determine if it is safe for them to ride on the rollercoaster. It is unsafe for people under 110 cm tall and for pregnant women. The program must ask for the user’s height and gender. If they are female then they are asked if they a …
View Answer
COMP2300 Computer Organisation And Program Execution
Question:
IT- Cryptography
This assignment will make use of the theory taught in the first four weeks’ and will teach you how file encryption is performed in reality using the standard cryptoprimitives provided in the Java Cryptography Architecture. Along the way, you’ll explore issues such as pad …
View Answer
Non-trivial Enterprise Systems Applications
Design, construct and test non-trivial enterprise systems applications; S2. Develop applications using integrated development environments and application programming interfaces that support the development of server-side software solutions; S3. Develop applications involving complex component techn …
View Answer
Content Removal Request
If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.
Choose Our Best Expert to Help You
Isaias Armstrong
research fellow at Stanford University, working on the areas of geotechnical engineering.
650 – Completed Orders
Hire Me
Jax Mahoney
PhD degree on Management fromm Ohio State University
600 – Completed Orders
Hire Me
Still in Two Minds? The Proof is in Numbers!
33845 Genuine Reviews With a Rating of 4.9/5.
Mechanical Engineering
Home Work: 1 Page, Deadline:
23 hours
The assignment is good and i have submitted it. and i got good marks. I appreciate your good work.
User ID: 7***11 Canada
Management
Assignment: 1 Page, Deadline:
7 days
Just want to say thank you, better than I expected, came out with a B+, would recommend, and I would use again.
User ID: 6***05 Borehamwood, Great Britain
Management
Essay: 28 Pages, Deadline:
16 days
nice work, the expert has followed the instruction properly, the marks have still pending grading.
User ID: 6***66 Kelowna, Canada
Finance
Assignment: 5 Pages, Deadline:
13 days
Thank you so much! It was a well-written and organized paper. Great job Thank you so much! It was a well-written and organized paper. Great job,,
User ID: 6***98 United States
Project Management
Assignment: 2.6 Pages, Deadline:
21 hours
Very quick delivery and great assignment. They worked as instructed and was prompt in their responses.
User ID: 4***61 Australia
Management
Assignment: 5 Pages, Deadline:
5 days
good Expert he do all the requirements as mentioned, I appreciate your efforts and I am so happy to do the assignment for me
User ID: 6***84 Saudi Arabia
Assignment
Assignment: 10 Pages, Deadline:
4 days
The research essay was prepared based on all the requirements provided. All the references were well placed.
User ID: 4***87 Australia
Assignment
Essay: 5.2 Pages, Deadline:
6 days
Learning Portfolio was well written and to the point/precise. It was updated based on my review. Prompt responses from the experts and the team
User ID: 4***87 Australia
Healthcare
Assignment: 8 Pages, Deadline:
5 days
All the requirements are well covered. There are good amount of articles referenced in the work. Thks
User ID: 8***91 Singapore
Assignment
Essay: 1.6 Pages, Deadline:
3 days
very high grade, good assignment, very quick service , easy to ready, professional
User ID: 5***21 Blanchardstown, Ireland
Mechanical Engineering
Home Work: 1 Page, Deadline:
23 hours
The assignment is good and i have submitted it. and i got good marks. I appreciate your good work.
User ID: 7***11 Canada
Management
Assignment: 1 Page, Deadline:
7 days
Just want to say thank you, better than I expected, came out with a B+, would recommend, and I would use again.
User ID: 6***05 Borehamwood, Great Britain
Management
Essay: 28 Pages, Deadline:
16 days
nice work, the expert has followed the instruction properly, the marks have still pending grading.
User ID: 6***66 Kelowna, Canada
Finance
Assignment: 5 Pages, Deadline:
13 days
Thank you so much! It was a well-written and organized paper. Great job Thank you so much! It was a well-written and organized paper. Great job,,
User ID: 6***98 United States
Project Management
Assignment: 2.6 Pages, Deadline:
21 hours
Very quick delivery and great assignment. They worked as instructed and was prompt in their responses.
User ID: 4***61 Australia
Management
Assignment: 5 Pages, Deadline:
5 days
good Expert he do all the requirements as mentioned, I appreciate your efforts and I am so happy to do the assignment for me
User ID: 6***84 Saudi Arabia
Assignment
Assignment: 10 Pages, Deadline:
4 days
The research essay was prepared based on all the requirements provided. All the references were well placed.
User ID: 4***87 Australia
Assignment
Essay: 5.2 Pages, Deadline:
6 days
Learning Portfolio was well written and to the point/precise. It was updated based on my review. Prompt responses from the experts and the team
User ID: 4***87 Australia
Healthcare
Assignment: 8 Pages, Deadline:
5 days
All the requirements are well covered. There are good amount of articles referenced in the work. Thks
User ID: 8***91 Singapore
Assignment
Essay: 1.6 Pages, Deadline:
3 days
very high grade, good assignment, very quick service , easy to ready, professional
User ID: 5***21 Blanchardstown, Ireland