Question: Please use a C++ program Task 1: C:WINDOWSlsystem32lcmd.exe ctions on ASK 1: Declare a double-typed variable called money are to deposit this money in a

Please use a C++ program

Please use a C++ program Task 1: C:WINDOWSlsystem32lcmd.exe ctions on ASK 1:

Task 1: C:WINDOWSlsystem32lcmd.exe ctions on ASK 1: Declare a double-typed variable called money are to deposit this money in a bank which gives you interest of 3% per annum, but interest is given out and added to the money after every mont 3%/12 = 0.25%. tarting amount: RM4880 Month 1 RM4812 Month 2: RM4824.03 Month 3: HM4836.09 Month RM1848.18 Month 5: RM4860.3 Month 6 RM4872.45 Month RM4884.63 Month 8 RM4896.84 Month 9 RM4989.09 Month 18: RM4921.36 Month 11 RH4933.66 Month 12: RM49 46 Month 13: RM1958.36 Month 14: RM4970.76 Month 15: RM4983.18 Month 16: RM4995.64 Month 17 RM5008.13 Month 18: RM5020.65 Initialize it to 4800. Imagine you h at ode Write appropriate c main) program so to display on the console output the same output shown in Fig 1 Task 1 s in your ASK 2: [3 marks] tarting amount: RM4888.0B onth 1RH4812.00 Month 2: RM4824.82 Month 3 RH4836.88 Month 4:RM4848.16 Month 5 RH4868.27 Month 6:RH4872.42 Month :RM4884.59 Month 8RH4896.80 Month 9:RM499.04 Month 10:RM1921.31 Month 11:RM4933.61 Month 12 RM1945.94 Month 13:RM4958.36 Month 14 RM4970.69 Month 15:RM4983.11 Month 16:RM4995.56 Month 17 RM5008.0 forth 18 :RM5 20.55 Task 2: s writing a class file as task w write a class that represents Continue in the same c+ no money, called clsMoney. It has data members ringgit and sen, and you must decide what data type(s) suit each of them best. Write a class function called displayMoney which displays on the console output in such a format: RM4800.00. Note that RM is appended in front. Press any key to continue -. - Fig. I You are free to write your own class functions as you think are appropriate. What is important is to be able to produce an output similar (need not be exactly identical) with Fig 1 - Task 2. Note that the values obtained in Task I and Task 2 are slightly different. This is due to the way I coded the rounding function. It is not important for the outputs to be exactly identical. What I look for and the emphasis should be whether or not the fiunctionality has been achieved correctly Hint If you wish to display two-decimal point sen, you may include and search online for the functions setprecision, I believe the difficult part of the program ling sen when it exceeds 100. 7 marks] tfill and setw

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!