Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

image text in transcribedimage text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

Does it have correct contact information?

Answered: 1 week ago

Question

2 The role of economic theory in economics.

Answered: 1 week ago