Lab 4: Multiplication Table

Announcements:

  • Just like in previous weeks, you must work with a partner! Now that a couple of weeks have gone by you should switch lab partners.

  • After taking the quiz select the one computer you will use between the two of you as you take turns being the driver (typing) and navigator (watching / suggesting).

Quiz:

The quiz will be available during the first 5 minutes of lab:

    • Your lab TA will tell you the password you will need to get into the quiz for your section.

    • You may use either one of the lab machines or your own laptop. For the lab computers your account name and password are the same as your UIC NetID and password.

    • To access your quiz select your lab time: 9am, 10am, 11am, 12pm, 1pm, 2pm, 3pm, 4pm, 5pm

Lab Exercise:

  • Starting code for this lab exercise can be found in Zybooks section 4.34 which will be accessible to you once your TA gives you the password.

  • 1 point: Complete the code within function singleLine() to display a single row of numbers up to some limit

  • 1 additional point: Complete the code within function allRowsAndColumns() to display a full 10x10 multiplication table, with the columns all aligned and at least one space between column entries.

  • Extra credit point: Display a subset of the full multiplication table

  • Shown below are the outputs expected.

Function 1: Sample Output

Function 2: Sample Output

Extra Credit: Sample Output