Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Attached is the c code i have done so far for the assignemnt however I do not know how to proceed. I know malloc(sizeof(struct node))

Attached is the c code i have done so far for the assignemnt however I do not know how to proceed. I know malloc(sizeof(struct node)) must be used as well as .next to get to the next node space. library functions are not allowed. I do not need pseudocode either. Just the rest of the C code for the assignment.Thank you!image text in transcribedimage text in transcribed

Goal of this assignment: get familiar with pointers and linked lists. Continue to practice problem solving methodologies and coding methodology Submission . Submit ONE C file and one WORD file (pseudocode) . For the format of the C file and WORD file, please follow instructions in Lab 2 assignment. Requirement Write pseudocode and translate it to ONE C-program for the following problem In your pseudocode and C-program, use only what you have learned in this class so far. In this problem, you will create and maintain a virtual line for a service. Your program will display a menu with the following items 1. 0. Call a customer 1. Add a customer 2. Quit Please input your command (0-2) When 0 is selected, if there is no customer in the line, give some warning such a:s there is no customer for now. Otherwise, print the name of the first customer in the line and remove it from the line. When 1 is selected, ask the name of the customer and put the customer to the end of the line. When 2 is selected, your program exits You must use linked lists in your pseudocode and C-program. No standard library function is allowed to delete or insert a node to the linked list. The data structure of the linked list can be defined in the Data section of your pseudocode Goal of this assignment: get familiar with pointers and linked lists. Continue to practice problem solving methodologies and coding methodology Submission . Submit ONE C file and one WORD file (pseudocode) . For the format of the C file and WORD file, please follow instructions in Lab 2 assignment. Requirement Write pseudocode and translate it to ONE C-program for the following problem In your pseudocode and C-program, use only what you have learned in this class so far. In this problem, you will create and maintain a virtual line for a service. Your program will display a menu with the following items 1. 0. Call a customer 1. Add a customer 2. Quit Please input your command (0-2) When 0 is selected, if there is no customer in the line, give some warning such a:s there is no customer for now. Otherwise, print the name of the first customer in the line and remove it from the line. When 1 is selected, ask the name of the customer and put the customer to the end of the line. When 2 is selected, your program exits You must use linked lists in your pseudocode and C-program. No standard library function is allowed to delete or insert a node to the linked list. The data structure of the linked list can be defined in the Data section of your pseudocode

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions