Bootstrap 4
- Flexbox
- Align
- NavBar
Bootstrap 4
5.1: Exercise Competition:
Three girls Jenny, Kelly, and Barb are enrolled in an exercise class. One day after class the three decide to have a friendly competition to see how many sets of 10 repetitions of running in place each can do before getting tired. Barb decides to go first and gets tired at 10 repetitions. Kelly goes next and she gets tired at 20 repetitions. Jenny, who has been in the exercise class for the longest, goes next. She gets tired at 30 repetitions.
Create a world that suites the competition.
ExerciseGirl
class that you created in chapter 5.
EACH Assignment below requires the use of a parameter in some way. If you do not have a parameter, as described, you will lose a lot of credit.
Here is a helpful link on how to create and use parameters, in case you forget.
Add a jumpingJack
method to the ExerciseGirl
class. The method should make the object perform jumping jacks .
Marcello the magician has finally mastered his disappearing act. To perform the act, he places several items on a table in front of him. He stands with his right arm extended over an item. He says the magic word “Alakazam, Alakazee” and the object disappears. He repeats this procedure for each object on the table. Create a world in which Marcello (an instance of the Magician class from the People Collection) demonstrates his new act . In the magician object
sayMagicWords
makeDisappear
We are going to create a variable numWins to keep track of how many times the user correctly beats the cpu.
This is how you increase the value of a variable by 1.
In the Part 2, we ended with a dilemma. If the user wants to play a second game, we need hide the objects that were chosen in the first game!
Note: all commands in alice have a duration. Since we want all 6 objects to immediately hide, s et the duration to 0 by clicking on more and selection duration as shown below:
So, now you should have a fully functional Rock, Paper, Scissors Game that should work similar to what you can see below (Still, there are some improvements that could be made ,see the bottom).
However, there are some improvements that we should make.
Improvement #1 : Keep track of how many times the user beats the computer. (required)