(Solved) : Deliverables Complete Assignment Must Submit Linkedlistcand Linkedlisth Websourses Project Q42592669 . . .

Language C, Need the whole code

Deliverables To complete this assignment you must submit your linkedListcand linkedlist.h to Websourses Project description T

Tasks and Rubric Activity linkedListb Create a header file name linkedList Include the following C header files: 1. stdiah 2.3 passing variable filename as an argument 3. Write an if statement to detemine if fileRoiat is NULL a If true output that th4 vii. 7, output Seven viii 8, output Eight ix 9, output Nine X T, output Ten xi. J, output Jack xii. Q, output Queen xiii. K

Deliverables To complete this assignment you must submit your linkedListcand linkedlist.h to Websourses Project description This project will require students to generate a linked list of playing card based on data read from a file and to write out the end result to a file Assignment Scope 1 File input and output 2. Stuctues 3. Linked lists 4. Decision making 5. Loops 6. Compile and run a file 7. Submit to Wehsourses References Source code examples in Websouss 1. filelO 2. strustures.c 3. simpleLinkedist 4. looping.c 5. decisionMaking.c 6. memoryManagsment.c Tasks and Rubric Activity linkedListb Create a header file name linkedList Include the following C header files: 1. stdiah 2. stdlib.h 3. stringh Create the following macros: 1. TRUE 2. FACES 13 3. SUITS 4 Add the following function prototypes: 1. адСard 2. displayCards 3. adDataEile 4. writeDataFile Add a typedef struct definition named card and aliased as Card as follows: 1 char suit; 2. char face; 3. struct card *next Add a global variable: 1. Card head Create a C source code file named linkedlist.c Include the user defined header file names linkedlisth. 1Create an integer local variable to store the user selection 2. Initialize the global head of the linked list to NULL 3. Loop while TRUE is true 4. Provide the user a menu of the following options: 1. Read data file 2. Display deck of cards 3. Write data file 4. Exit Program linkedList.c main 5. Use a conditional statement to evaluate the user’s selection and call the appropriate function 1. Create the following local variables readDataEils char face; b. a char suit char faces[FACES]; char suits[SUITS] C. d. char leName”Assignment8Input.txt” f. e. FILE filePointer int s 0; int f 0 h. char c 2. Set variable fileRointer equal to function call fonca0 3 passing variable filename as an argument 3. Write an if statement to detemine if fileRoiat is NULL a If true output that there was an issue opening the file b. Otherwise output that the file was opened successfully 4. Write a for loop that loops four times to read in each character for the four suits in a deck of cards, store the values in the array named suits 5. Write a for loop that loop 13 times to read in cach character for the 13 faces in a deck of cards, store the values in the array named faces 6. Write a nested for loop to loop through the suits array and faces array, for each iteration call function addCard0 passing the current suit and face as arguments 7. Close the input file 1 Parameter list should include two characters, one for the face of the card and one for the suit of the card addCardo 2. Declare a variable of data type Card named temp set equal to the appropriate memory allocation function call 3. Set the linked list node member suit equal to the parameter representing the card suit 4. Set the linked list node member face equal to the parameter representing the card face 5. Set the linked list node member next equal to the global variable head 6. Set the head node equal to the temp node display0 Declare local variables a. Card set equal to the global head b. char suit[9]; c. char face[6]: 2. Traverse the linked list, for cach node do the following: a. Write decision making logic to evaluate the value of the linked list node member suit, if i. C, output Clubs i D, output Diamonds i. H, output Hearts iv. S, output Spades b. Write decision making logic to evaluate the value of the linked list node member face, if i A, output Ace i. 2, output Two ii. 3, output Three iv. 4, output Four v. 5, output Five vi. 6, output Six 4 vii. 7, output Seven viii 8, output Eight ix 9, output Nine X T, output Ten xi. J, output Jack xii. Q, output Queen xiii. K, output King witeDataFile0 Declare local variables char ileName “Assignment8Output.txt” a. FILE leainter b. Card current= head; C. 2. Set variable filcRointer.cqual to function call fopcnO passing variable filename as an argument 3. Write an if statement to determmine if filcPointer is NULL a. Iftrue output that there was an issue opening the file b. Otherwise output that the file was opened successfully 4. Traverse the linked list, for cach node do the following: Write decision making logic to evaluate the value of the linked list node member suit, if i. C output Clubs i. D, output Diamonds i H, output Hearts iv. S, output Spades a. b. Write decision making logic to evaluate the value of the linked list node member face, if i A, output Ace ii. 2, output Two i 3, output Three iv 4, output Four v. 5, output Five vi 6, output Six vii. 7, output Seven viii 8, output Eight ix 9, output Nine X T, output Ten xi J,output Jack xii Q, output Queen xiii. K, output King 5. Close the output file Test cases pass Source compiles with no errors Source runs with no errors Test Cases Compile Run Source includes comments Comments Show transcribed image text Deliverables To complete this assignment you must submit your linkedListcand linkedlist.h to Websourses Project description This project will require students to generate a linked list of playing card based on data read from a file and to write out the end result to a file Assignment Scope 1 File input and output 2. Stuctues 3. Linked lists 4. Decision making 5. Loops 6. Compile and run a file 7. Submit to Wehsourses References Source code examples in Websouss 1. filelO 2. strustures.c 3. simpleLinkedist 4. looping.c 5. decisionMaking.c 6. memoryManagsment.c
Tasks and Rubric Activity linkedListb Create a header file name linkedList Include the following C header files: 1. stdiah 2. stdlib.h 3. stringh Create the following macros: 1. TRUE 2. FACES 13 3. SUITS 4 Add the following function prototypes: 1. адСard 2. displayCards 3. adDataEile 4. writeDataFile Add a typedef struct definition named card and aliased as Card as follows: 1 char suit; 2. char face; 3. struct card *next Add a global variable: 1. Card head Create a C source code file named linkedlist.c Include the user defined header file names linkedlisth. 1Create an integer local variable to store the user selection 2. Initialize the global head of the linked list to NULL 3. Loop while TRUE is true 4. Provide the user a menu of the following options: 1. Read data file 2. Display deck of cards 3. Write data file 4. Exit Program linkedList.c main 5. Use a conditional statement to evaluate the user’s selection and call the appropriate function 1. Create the following local variables readDataEils char face; b. a char suit char faces[FACES]; char suits[SUITS] C. d. char leName”Assignment8Input.txt” f. e. FILE filePointer int s 0; int f 0 h. char c 2. Set variable fileRointer equal to function call fonca0
3 passing variable filename as an argument 3. Write an if statement to detemine if fileRoiat is NULL a If true output that there was an issue opening the file b. Otherwise output that the file was opened successfully 4. Write a for loop that loops four times to read in each character for the four suits in a deck of cards, store the values in the array named suits 5. Write a for loop that loop 13 times to read in cach character for the 13 faces in a deck of cards, store the values in the array named faces 6. Write a nested for loop to loop through the suits array and faces array, for each iteration call function addCard0 passing the current suit and face as arguments 7. Close the input file 1 Parameter list should include two characters, one for the face of the card and one for the suit of the card addCardo 2. Declare a variable of data type Card named temp set equal to the appropriate memory allocation function call 3. Set the linked list node member suit equal to the parameter representing the card suit 4. Set the linked list node member face equal to the parameter representing the card face 5. Set the linked list node member next equal to the global variable head 6. Set the head node equal to the temp node display0 Declare local variables a. Card set equal to the global head b. char suit[9]; c. char face[6]: 2. Traverse the linked list, for cach node do the following: a. Write decision making logic to evaluate the value of the linked list node member suit, if i. C, output Clubs i D, output Diamonds i. H, output Hearts iv. S, output Spades b. Write decision making logic to evaluate the value of the linked list node member face, if i A, output Ace i. 2, output Two ii. 3, output Three iv. 4, output Four v. 5, output Five vi. 6, output Six
4 vii. 7, output Seven viii 8, output Eight ix 9, output Nine X T, output Ten xi. J, output Jack xii. Q, output Queen xiii. K, output King witeDataFile0 Declare local variables char ileName “Assignment8Output.txt” a. FILE leainter b. Card current= head; C. 2. Set variable filcRointer.cqual to function call fopcnO passing variable filename as an argument 3. Write an if statement to determmine if filcPointer is NULL a. Iftrue output that there was an issue opening the file b. Otherwise output that the file was opened successfully 4. Traverse the linked list, for cach node do the following: Write decision making logic to evaluate the value of the linked list node member suit, if i. C output Clubs i. D, output Diamonds i H, output Hearts iv. S, output Spades a. b. Write decision making logic to evaluate the value of the linked list node member face, if i A, output Ace ii. 2, output Two i 3, output Three iv 4, output Four v. 5, output Five vi 6, output Six vii. 7, output Seven viii 8, output Eight ix 9, output Nine X T, output Ten xi J,output Jack xii Q, output Queen xiii. K, output King 5. Close the output file Test cases pass Source compiles with no errors Source runs with no errors Test Cases Compile Run Source includes comments Comments

Expert Answer


Answer to Deliverables To complete this assignment you must submit your linkedListcand linkedlist.h to Websourses Project descript…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us