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
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