Question: Write a loop that subtracts 1 from each element in lowerScores if the original element was greater than 0, and otherwise just assigns the element

Write a loop that subtracts 1 from each element in lowerScores if the original element was greater than 0, and otherwise just assigns the element with 0. Ex: lowerScores = {5, 0, 2, -3} becomes {4,0, 1,0}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
