Question: USE MATLAB TO SOLVE STEPS 22-25. IGNORE THE Generated from step 5 part 22. Before the variable that tracks the total game score (generated from

USE MATLAB TO SOLVE STEPS 22-25.
IGNORE THE "Generated from step 5 part"
22. Before the variable that tracks the total game score (generated from Step 5), add an input function to ask the game host to enter the number of human players that will play the game interactively with this computer program. Save the keyboard input value in a new variable. 23. The number of human players should be an integer and should not be a negative value. We will add 2 if..end statements immediately after the input function to check the value.) If the number of humarn players is not equal to the floor value of the number of human players (i.e. the floor value of 2.8 is 2), modify the number of human players to the floor value of the number of human players. End. 24. If the number of human players is less than 0, modify the number of human players to 0. End. 22. Before the variable that tracks the total game score (generated from Step 5), add an input function to ask the game host to enter the number of human players that will play the game interactively with this computer program. Save the keyboard input value in a new variable. 23. The number of human players should be an integer and should not be a negative value. We will add 2 if..end statements immediately after the input function to check the value.) If the number of humarn players is not equal to the floor value of the number of human players (i.e. the floor value of 2.8 is 2), modify the number of human players to the floor value of the number of human players. End. 24. If the number of human players is less than 0, modify the number of human players to 0. End
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
