The user will be asked to enter his/her monthly earnings for 12 months for years 2018 and
Question:
The user will be asked to enter his/her monthly earnings for 12 months for years 2018 and 2017. The monthly difference between the two years will be calculated and all the information will be displayed as follows (You do not need the borders):
You would need to declare two (or three depending on your taste) double arrays of 12 (Declare 12 as a constant and use it as the array size) to store the user input for 2018, 2017 and the difference between the two.
You may also want to declare a string array of 12 (use the constant) to store the months.
You will use for loops to get user input into the two double arrays, to calculate the difference and store it in the third double array.
You will display the information as shown using loops.
Accounting Principles
ISBN: 978-1119048503
7th Canadian Edition Volume 1
Authors: Jerry J. Weygandt, Donald E. Kieso, Paul D. Kimmel, Barbara Trenholm, Valerie Warren, Lori Novak