Menu

[solved] – Question 87188

Task 3 (35 marks)

Write an addition operation for the SILL. Your program should perform addition operation in the digit level (one digit in the node of a linked list) and store the result in another SILL. See below an example:

SILL1:

999
SILL2:

11
SILL3 = SILL1+SILL2

1010

Write a driver program to test all the functionality that you have implemented. The driver program should have a simple menu to allow users to:
1. Accept the name of an input file. If the file exists, the program should read it. The program must inform users if it has read the file successfully or failed, in which case, it must inform users why it has failed to read the file. (task 1)
2. Display integers stored in SILL (task 2).
3. Display the results of the addition arithmetic operation in SILL (task 3).
4. Exit.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *