University : University of Tasmania UniLearnO is not sponsored or endorsed by this college or university.
Subject Code : KIT107
Assignment Task:

Task:

Assignment Task

Instructions:
There is a total of 180 marks available.  You are required to answer ALL SEVEN (7) questions — attempt ALL FOUR (4) questions from Section A, BOTH OF THE TWO (2) questions from Section B, and THE ONE (1) question from Section C.
Answers foreach question should be provided in this document and the document uploaded to MyLO before the deadline.
This is an individual assessment task.  You may not consult with anyone while completing the examination.  Your work will be checked for plagiarism and severe penalties may be applied under the Ordinance of Student Academic Integrityif academic integrity breaches are identified. 
SECTION A —SHORT ANSWER QUESTIONS
Attempt ALL questions available in Section A. All questions in Section A are of equal value.  Each question is worth 12 marks. This section is worth 48 marks, or 26.7% of the examination.
code1.JPG

code2.JPG

Question 2.    (Assessing ILOs: 1, 2, and 3)
A doubly-linked list may be defined as shown below on lines 4–20.  The function declared on lines 22–74creates a new list (l1)containing every second node of l2 (starting with its first) and every second node of l3 (starting with its first), alternatively drawing from l2 and l3.  When one of these lists is empty, every second remaining node from the other list is appended at the back.  The lists l2 and l3 are destroyed in the process; this is not an error.
There are, unfortunately, six lines in the splice() functionwith errors.  Please identify the line number on which each error occurs and re-write the line in your answer book in its corrected form.  Do not rewrite lines that do not contain errors.
code3.JPG

code4.JPG

code5.JPG

Question 3.    
A computer Mouse has two buttons (left and right) which can be pressed or released.  Clicking a button is a press followed by a release.  The mouse can also be moved by providing a double distance forward/backward and a double distance left/right.  Distances forward and right are positive numbers; distances backward and left are negative numbers.

SECTION B — LONG ANSWER QUESTIONS
Answer ALL questions available in Section B.  All questions in Section B are of equal value.  Each question is worth 51 marks. This section is worth 102 marks, or 56.7% of the examination.
Question 5.    
Yoyos!  Thought to be invented in China at least 2500 years ago, these were a huge worldwide craze in many centuries — most recently perhaps in the 1970s.  

You’ve been asked to measure the craze across Europe (only 44 countries), looking at where manufacturing started through to markets large and small for a fixed six-week period during the height of the craze.  See part (e) ii for details on required functionality.

The data are organised by country (and are presented in alphabetical order) and by ‘date’ (ascending order of week number and year). For each week the data value is the cumulative number of yoyos sold (in hundreds) for that country.  
a. Which underlying data structure (array or linked-list) will you use as a basis to model the overall collection of countries (i.e. the countriestype)?  In two–three sentences, justify your answer.
Click or tap here to enter text.
[4 marks]
b. Which kind of abstract data type (binary tree, general tree, array, stack, priority queue, double-ended queue, set, list, etc.) would you use to model the collection of countries?  In two–three sentences, justify your answer by indicating the functionality required.
Click or tap here to enter text.
c. Which underlying data structure (array or linked-list) will you use as a basis to model the collection of sales for each country (i.e. the collectiontype)?  In two–three sentences, justify your answer.
Click or tap here to enter text.
d. Which kind of abstract data type (binary tree, general tree, array, stack, priority queue, double-ended queue, set, list, etc.) would you use to model the collection of sales for each country?  In two–three sentences, justify your answer by indicating the functionality required.
Click or tap here to enter text.
e. Given your definition for the collection of sessions in parts (a) and (c) above:
i. Using typedefs, define the types countriesand collectionthat represent a collection of countries and sales respectively.
Click or tap here to enter text.
ii. Implement the following functions that allow the manipulation of a collection of countries given your answers above:
• voidinit_craze() — create an empty data set;
Click or tap here to enter text.
• voidadd_sale(char*p, sales) — add the salesto the end of the collectionfor the named country p;
Click or tap here to enter text.
• voiddisplay_sales(char *p) — print all salesin the collection cfor the named country p including the country name as a title, and rows comprising the date and number of sales;
Click or tap here to enter text
• intcount_range(intmin,intmax)— calculate and return the count of all countries with saleswithin the given sales range (min–max inclusive); and
Click or tap here to enter text.
• intlag() — count all sales entries for which the num_sold value is 0.
Click or tap here to enter text.

 

This KIT107 IT/Computer Science Assignment has been solved by our IT/Computer Science Experts at UniLearnO. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Eureka! You've stumped our genius minds (for now)! This exciting new question has our experts buzzing with curiosity. We can't wait to craft a fresh solution just for you!

  • Uploaded By : Pearl
  • Posted on : November 02nd, 2018

Whatsapp Tap to ChatGet instant assistance