Course:COSC111/Labs

From UBC Wiki

Lab 1

  • What is the purpose of the compiler (i.e What does the compiler actually do)?
  • What is an I.D.E. and why is it useful?
  • What is the name of the I.D.E. used in your computer science labs?


Lab 2

  • Memorize the following escape sequences and their purpose: \n, \t, \"
  • Understand the difference between int and double data types.
  • Understand the purpose of casting between data types (page 83-85 in the textbook).
  • Familiarize yourself with the Scanner class.
    • How do you create a new Scanner object?
    • Memorize and understand what the following methods do: next(), nextInt(), nextDouble()