Lab3a_Example_Simult's Code

Created by: Jeff Goldstein 12345678

world

Events

When the world starts
Do:
world.my first method


Methods

  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