In this task, revisit the letter grade program. This time, the program should use an action, GetLetterGrade, with one parameter: an integer score. Program the action so that it converts a score to a letter grade. Then call the action and pass it a argument value. Use the existing blocks to build this program.
Coding:
Hotkey Shortcuts
Move BlocksUP or DOWN or TAB
Run Program ALT + SHIFT + R
Stop Program ALT + SHIFT + S
Hide Tray ALT + SHIFT + X
Zoom In ALT + +
Zoom Out ALT + -
Open Help ALT + SHIFT + H
Navigate to Tray ALT + 1
Navigate to Blocks ALT + 2
Enter Navigation Mode SHIFT + ENTER
Switch to Next Tab CTRL + Tab
Switch to Previous TabCTRL + Shift + Tab
Blocks
Hint
Great job!
Try again
From within the GetLetterGrade action, the parameter variable score represents the value passed into the action when it's called. This variable is only used within the action. When an action with a parameter is called, a value of the correct type is passed to the action. The if block and all the output blocks should be placed in the action GetLetterGrade, and the action call should be placed in the Main action.