subject

This week we will create a Linked-List (data structure) that will consist of 4 source code files. You will be given three files that are already written: main. c, createList. c and releaseMemory. c (plus a header file prog9.h), the fourth file (called p9.c-which you need to write). To copy these files to your account, perform the following commands: Login to your ctec. clark. edu account (i. e. the Linux server). At the prompt, type rightarrow mkdir prog9 At the prompt, type rightarrow cd prog9 At the prompt, type rightarrow cp/home/faculty/skoss/p9 files/*. At the prompt, type rightarrow ls -l You should now see the following 5 files listed: 1. createList. c 2. main. c 3. p9.c 4. prog9.h 5. releaseMemory. c You need to add code to the file named p9.c If you open p9.c with vi, you'll see a function definition already started as follows: void print_list (PERSON *person_ptr) { } As you can see from the function definition, you are passed a pointer (i. e. person_ptr) to a PERSON object. The pointer will be pointing at the beginning of a linked-List of PERSON objects. You need to traverse the linked-list and print the information (i. e. name & age) to the screen of each object as you traverse the list. Use the following command to build your executable: gcc main. c createFile. c p9.c releaseMemory. c p9

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:10
Is the following an example of social media viral marketing? indicate your response by selecting yes or no. when you sign onto your favorite social networking website, you get messages from friends who have seen a television show they thought was a "must see! "
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
[java] create an application called registrar that has the following classes: a. a student class that minimally stores the following data fields for a student: - name - student id number - number of credits - total grade points earned and this class should also be provides the following methods: - a constructor that initializes the name and id fields - a method that returns the student name field - a method that returns the student id field - methods to set and retrieve the total number of credits - methods to set and retrieve the total number of grade points earned. - a method that returns the gpa (grade points divided by credits) b. an instructor class that minimally stores the following data fields for an instructor: - name - faculty id number - department the following methods should be provided: - a constructor that initializes the name and id fields - methods to set and retrieve the instructor’s department. c. a course class that minimally stores the following data for a course: - name of the course- course registration code- maximum number of 35 students- instructor- number of students- students registered in the course (an array)the following methods should also be provided: - a constructor that initializes the name, registration code, and maximum number of students- methods to set and retrieve the instructor- a method to search for a student in the course; the search should be based on an id number.- a method to add a student to the course. if the course is hill, then an exception with an appropriate message should be raised (try creating your own exception class for this). also, be sure that the student is not already registered in the course. the list of students should be in the order that they registered.- a method to remove a student from the course. if the student is not found, then an exception with an appropriate message should be raised (use the same exception class mentioned a method that will allow course objects to be output to a file using object serialization- a method that will allow course objects to be read in from a file created with object serializationyou will note that the student and instructor classes described above have some commonality. create aperson class that captures this commonality and uses it as a base class for student and instructor. this class should be responsible for the name and id fields and also provide atostring method that returns a string of the form name, id. this will be the inheritedtostring method for the student and instructor classes.1. draw a uml diagram for diss application.2. implement the previous classes in java. write a main program that can serve as a test class that tests all of the methods created and demonstrates that they are working
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
question
Computers and Technology, 24.06.2019 09:50
Suppose you are an ad-serving company and you maintain a log of cookie data for ads you serve to the web pages for a particular vendor (say amazon). a. how can you use this data to determine which are the best ads? b. how can you use this data to determine which are the best ad formats? c. how could you records of past ads and ad clicks to determine which ads to send to a given ip address? d. how could you use this data to determine how well the technique you used in your answer to part c was working? e. how could you use this data to determine that a given ip address is used by more than one person? f. how does having this data give you a competitive advantage vis-à-vis other ad-serving companies?
Answers: 2
You know the right answer?
This week we will create a Linked-List (data structure) that will consist of 4 source code files. Yo...
Questions
question
Mathematics, 18.10.2019 23:30
Questions on the website: 13722362