Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose you wanted to apply the conditional statements built in problem 1 to large data sets for salary ( Current _ salaries ) & performances
Suppose you wanted to apply the conditional statements built in problem to large data sets for salary Currentsalaries & performances Eperformances You have chosen to do this by including your conditional statements iteratively inside of a for loop.
Modify the script below so that it will perform this iterative operation, and store the values inside a new x vector named Newsalaries.
Remember: raises for the next year will be handed out on the following basis:
A rating of or above will result in a raise of New Salary Current Salary
A rating of will result in a raise of New Salary Current Salary
A rating of or below will result in no raise. New Salary Current SalaryCurrentsalaries ;
Eperformances ;
Newsalaries zeroslengthCurrentsalaries; This step will save on computing power for longer for loops. You should get into the habit of doing this step.
for i Complete this line by replacing the s with the appropriate code.
iterative conditional statements go here
end
Newsalaries
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