world.my first method ( )
carRolls = 1 , truckRolls = 1 |
| |
// Ask the user how many rolls, today and assign it to the numeric variable |
| carRolls set value to ( ask user for a number question = How many rolls today? ) |
| // Re-assign the number of rolls to twice as many |
| truckRolls set value to ( ( carRolls * 2 ) ) |
| Do together |
| |
// Car rolls for the number of rolls the user had input |
| car roll left carRolls revolutions duration = 5 seconds |
| // Truck rolls twice as many times as car did |
| cementTruck roll left truckRolls revolutions duration = 5 seconds |