Question: in javascript Create an array named salaries with the following array items 36548,29740,59337,98599,75665 create a variable named raise and assign it a value of .035

in javascript

Create an array named salaries with the following array items 36548,29740,59337,98599,75665

create a variable named raise and assign it a value of .035 - which represents a 3.5% raise.

Use a for loop to iterate through each item in the array, producing the results shown below

Results (this is what your print out on the screen should look like)

A salary of 36548 with a raise of 1279.18 would be 37827.18

A salary of 29740 with a raise of 1040.9 would be 30780.9

A salary of 59337 with a raise of 2076.795 would be 61413.795

A salary of 98599 with a raise of 3450.965 would be 102049.965

A salary of 75665 with a raise of 2648.275 would be 78313.275

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!