(Solved) : Read File Supposedly Positive Integers 0 Integerdat Create Doubly Linked List Integers Add Q42712087 . . .

C++. —————————Read in a file of supposedly positive integers (0) from integer.dat and create a doubly linked list of integers, adding val

Read in a file of supposedly positive integers (0) from “integer.dat” and create a doubly linked list of integers, adding values in ascending sort order – print out any error messages to the screen if the integer is <1 but continue processing the file through the end. In addition, include as part of the list a doubly linked “sub-list” of only even integer numbers. This means that there are FOUR pointers for each entry in the list – forward/backward full list, forward/backward even list (What will you do with the two pointers to forward/backward even list for odd numbers? +1 E.C. opportunity for those in class who note the requirements) Write one function to print the entire list and even number list in either ascending or descending order. Use input parameter with value ‘A’ or ‘D’ to tell which direction to print The main program, after reading in from the file, will also allow the user to add (remember must be >0) or delete integers from the list. In all cases (both from file and from user), notify the user with an error message when: number to add is already in the list number to delete is not in the list Show transcribed image text Read in a file of supposedly positive integers (0) from “integer.dat” and create a doubly linked list of integers, adding values in ascending sort order – print out any error messages to the screen if the integer is 0) or delete integers from the list. In all cases (both from file and from user), notify the user with an error message when: number to add is already in the list number to delete is not in the list

Expert Answer


Answer to Read in a file of supposedly positive integers (0) from “integer.dat” and create a doubly linked list of integers, addin…

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