Exercise 1: A bug integer is represented as a linked list of digits where each digit is an integer between 0 and 9. Write a java program to build up a linked list for a big integer by asking the user...

Write a Java program
Exercise 1:<br>A bug integer is represented as a linked list of digits where each digit is an integer between 0 and 9.<br>Write a java program to build up a linked list for a big integer by asking the user to enter a big<br>integer and each digit will be an element of the linked list. For example, the linked list of the number<br>123456789 will be as follows<br>3<br>4<br>6.<br>7<br>8.<br>Provide to the user the following operations Menu:<br>1. Print the digits. For example, 1 2 3 4 5 6 7 8 9<br>2. Add a digit in a certain position in the linked list. For example, add 0 at position 7.<br>1 2 3 4<br>6.<br>7<br>8<br>9.<br>3. Delete a digit from the linked list. For example, delete 4.<br>3<br>6 0 7<br>8<br>9.<br>4. Quit the operations menu<br>Write a method for each operation in the menu. The program should keep displaying the menu until<br>the user chooses to quit.<br>

Extracted text: Exercise 1: A bug integer is represented as a linked list of digits where each digit is an integer between 0 and 9. Write a java program to build up a linked list for a big integer by asking the user to enter a big integer and each digit will be an element of the linked list. For example, the linked list of the number 123456789 will be as follows 3 4 6. 7 8. Provide to the user the following operations Menu: 1. Print the digits. For example, 1 2 3 4 5 6 7 8 9 2. Add a digit in a certain position in the linked list. For example, add 0 at position 7. 1 2 3 4 6. 7 8 9. 3. Delete a digit from the linked list. For example, delete 4. 3 6 0 7 8 9. 4. Quit the operations menu Write a method for each operation in the menu. The program should keep displaying the menu until the user chooses to quit.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here