University : Swinburne University of Technology UniLearnO is not sponsored or endorsed by this college or university.
Subject Code : COS10007
Country : Australia
Assignment Task

 

Qn 1. Write a complete C program

Create a text file that contains three columns and five rows. First column contains strings values, second column contains integer values, and third column contains float values (you are free to use your own values). Declare a structure that contains 3 elements (you are free to use your own variables). First element should be a char array – to read first column values from the text file. Second element should be an int value – to read second column values from the text file. Third element should be a float value – to read third column values from the text file. Declare an array of this structure with size 15 and read the contents of the text file into this array. Then prompt the user with the following instructions:

 

1: Display the details of the array – call a function to display the contents of the array on screen.

2: To sort the array (you should call sort function – output of the sorting function is written onto a separate text file and terminal) You should give the user the chance to sort in ascending or descending order with respect to int value Then you should give the user the option to select from different sorting techniques (you should write minimum two sorting algorithm functions, call the functions according to the choice the user enters – call the sorting function only after the user selects the above mentioned options)

3: To search for an int element (Write the output on terminal) You should give the user to select the searching technique (linear or binary – must use recursive version of the searching functions) if binary is selected call a sort function first

4: To insert these array elements into a linked list in the order of integer values. Display the contents on the terminal.

5: Quit Your complete program should have multiple files (minimum two .c file and a .h file). Give your file name as heading and then paste your code. Do not forget to show the screen shots of your text files as well.

 

 

 

This (COS10007) Computer Science Assignment has been solved by our 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 distinctio.

  • Uploaded By : William
  • Posted on : September 04th, 2019
  • Downloads : 402

Whatsapp Tap to ChatGet instant assistance