question archive Part A: Add a new ?lnctionality to this calculator as follows: 1- The retult of each successful calculation in each iteration must be stored in the memory, in a way that is retrivable in the future
Subject:Computer SciencePrice: Bought3
Part A: Add a new ?lnctionality to this calculator as follows: 1- The retult of each successful calculation in each iteration must be stored in the memory, in a way that is retrivable in the future. For example, assume the user runs the program and calculates the following: [111+ 2.5 =3.5 [2] 5*6 = 30 [3] max(8, 98) = 98 [4] square root of 9 = 3 [5] 3 A 2 = 9 You must store the results of these calculations, i.e. 3.5, 30, 98, 3, and 9 in an array. A new item is added to the list of options, "select M to see the memory". If the user selects M, the program will show the number of items which have been stored in the memory. If the number of items is zero, a message will be prompted and the program will show the main list of available options. Otherwise the user can choose any item in a range of l to the number of items, and see its corresponded value. The user also can choose to see the whole list of values by entering zero. This process continues unless the user choses to return to the main list of options by entering E. For example, following the above sample calculations, when the user selects M, the program will show that there are 5 items available in the memory. Then if the user enters l, the program will show 3.5 as the output, and asks the user if s/he wants to see another item in the memory, the whole list, or return to the main menu. Add another option to your calculator, R, such that by entering this character by the user, the momory will be erased.