Lab 3. Strings and
Graphical Objects
Points(10 overall)
Collaboration policy:
You will be working in pairs during labs.
Pairs will be randomly selected and will be announced by the TA. Each week you will have a new random
partner. You will discuss the programs
with your partner, but you will still be typing in your own code to show to the
TA. You can help each other debug, give
plenty of suggestions and hints, **explain** why things work or don't work,
etc.
To gain experience with
Write a program that allows the user to enter in a value between 1,000 and 999,999, showing commas in their input. Then show the number without commas.
Example 1:
Please enter a number between 1,000 and 999,999: 212,416
212416
Example 2:
Please enter a number between 1,000 and 999,999: 7,890
7890
Hints:
Read the input as a string, use the length of the string (to find out where the comma is) and the substring function to obtain each substring before and after the comma. You should not need to use any complex structures such as ifs or while loops.
Write a program that draws a picture of a house. The example below is an idea, it can be more simple than that, or more elaborate. Try and move lines and points, not just set a new point at each corner.

Write a program that tests how fast a user can type. Get the time. Ask the user to type, “The quick brown fox jumped over the lazy dog.”. Read a line of input. Get the current time again and display how many seconds it took them to type the statement.