Presentation is loading. Please wait.

Presentation is loading. Please wait.

JavaScript IF assignment two

Similar presentations


Presentation on theme: "JavaScript IF assignment two"— Presentation transcript:

1 JavaScript IF assignment two
Code the JavaScript for the if statements. You do not need to make them work in a script, I just need to see the if statements the way you would code them for a script. Note that as you look at the flowchart, the Y goes off to the right and the N goes off to the left.

2 Dept = 12 Review = Y Not being reviewed Msg = check In 3 months Sal > 50000 Msg = need raise Msg = okay

3 Dept = 12 Review = Y Msg = check In 3 months Msg = check In 3 months Sal > 50000 Msg = check In 3 months Msg = okay

4 Payhr > 50 Sal > 1000 Msg = ok Msg = check Msg = ok

5 Payhr > 50 Sal > 1000 Msg = hourly Pay ok Msg = check Msg = Salary ok

6 Code = N Msg = not Code N Payhr > 50 Sal > 1000 Msg = ok Msg = check Msg = ok

7 Code = N Msg = check Payhr > 50 Sal > 1000 Msg = ok Msg = check Msg = ok


Download ppt "JavaScript IF assignment two"

Similar presentations


Ads by Google