Ifchoice is l the program will ask the user to enter a


Project: A Resistor Linked List

Project Description:

In this project, you will create and maintain a resistor linked list. The linked list

structure template and all function prototypes are given in the header file "resistorList.h". In your program, you will prompt user to enter one of the three choices (I) insert (2) delete (3) exit. If an invaluable choies is entered, display error message "invaled Choice." and wait for next input.

Ifchoice is l, the program will ask the user to enter a resistor ID and value of resistance to be inserted into the end of list.

Make sure you check thoroughly for relevant errors and display associated error messages including invalid resistor ID (ID number has to be a positive integer) and invalid resistance values (postie real number). lfthe resistor ID exists in the list already, display an error message and return to the main menu.

Upon a successful insertion, the program will display the

resistor list and also the total equivalent resistance assuming all the resistors in the list are connected in series.

Ifchoice is 2 and the resistor list is not empty, the program will first display the current list and ask the user enter the resister ID to be deleted.

Ifresister 1D is invalid, display an error message and return to main menu. Ifresister 1D is not found in the list, display an error message and return to main menu. The program will display the resulting resistor list and the new total equivalent resistance.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Ifchoice is l the program will ask the user to enter a
Reference No:- TGS02903633

Expected delivery within 24 Hours