Question
Hi I gave in a coding task but it needs some fixing. Here's the fixes that need to be added: (Gave by one of our
Hi I gave in a coding task but it needs some fixing.
Here's the fixes that need to be added: (Gave by one of our lecturers), please fix this for me.
you should ask the user add another entry, ask for the income name, amount, if its recurring then create that object and add it to a income array. Then ask them to input a expense, ask for the expense name, amount, if its recurring then create that object and add it to a expenses array (you can then loop over these arrays to get the totals). After that, show the Income minus the expenses. Then ask the user how much they want to save and display the total. Please don't use var, rather use let or const to declare a variable.
Here's the code:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started