Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

note:ID number is 26564 Write C program that solves following tasks: 1) Declare a linked list data structure node with the following elements: an integer

image text in transcribedimage text in transcribed

note:ID number is 26564

Write C program that solves following tasks: 1) Declare a linked list data structure "node" with the following elements: an integer number and a pointer to the next node. (5 points) 2) Asks the user to enter n numbers (of datatype integer) into a linked list. (5 points) 3) After the insertion of each number, the user is asked whether they wish to proceed with further insertion. (15 points) 4) Create a function called Create that inserts the data into the linked list. A new node should be inserted at the end (tail) of the linked list. One of the insertions should be your ID number. (35 points) 5) Create a function called Display that prints the numbers of the linked list. (15 points) 6) Create a function called DisplayEvenandCountNums that prints the even numbers of the linked list and counts them by returning the value to the main. Print the number of even numbers as per sample output. (25 points) You will be asked to enter numbers into a linked list. Enter number into the node: 1 Press 1 if you wish to enter more nodes. Otherwise, press @ to exit: 1 Enter number into the node: 2 Press 1 if you wish to enter more nodes. Otherwise, press @ to exit: 1 Enter number into the node: 3 Press 1 if you wish to enter more nodes. Otherwise, press o to exit: 1 Enter number into the node: 4 Press 1 if you wish to enter more nodes. Otherwise, press @ to exit: 1 Enter number into the node: 1234 Press 1 if you wish to enter more nodes. Otherwise, press @ to exit: 0 Displaying the elements in the linked list: 12 3 4 1234 Displaying the even elements in the linked list: 2 4 1234 You have inserted 3 even numbers. Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago