Your goal is to implement an application that reads a file, modify its content, and writes the modification back to the same file. The file includes 2 lines of integers. The first line shows which item on the second line has been selected (active). And the second line lists all the items in the list (maximum of 10). Your application should have a menu that is constantly displayed on the screen (see the menu section below). Right below the menu, the program should display the items in the list (second line). Also, it should show which item is currently selected (active) by placing it within ( ). The user should be able to select a menu item by entering its associated number. “Insert” will insert an integer before the selected item and makes the newly inserted integer active. The integer is typed by the user. If the list is full, insertion will not be possible. “Delete” deletes the active item. If no more item to delete, display empty parentheses. “Sort” sorts the list in ascending order. The active item after the sort is same as the active item before the sort. “Select Right” selects the next item in the list. If the last item is selected, this option selects the first item in the list. “Select Left” selects the previous item in the list. If the first integer is selected, this option selects the last item in the list. “Move Right” moves the selected item one position to the right. If the last item is selected, moving right will not be possible. “Move Left” moves the selected item one position to the left. If the first item is selected, moving left will not be possible. “Exit” ends the application. Make sure to use the top-down design to break your program to many simpler tasks (at least one function per task) Do not use global variables. Make sure to check the special cases. When starting the program, you should read the first number, save it into an integer, read the remaining integers and save them into an array and close the file. When ending the application, you should write back everything back in the same file before closing it. Make sure to test your program completely before submission. Do not forget to add comments.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more