2A

You are going to practice using some String methods. Complete the class called FunWithStrings.

Do the following

You are given a word in the starter file and Codecheck will test with that word and with a different word

For the draft, just print the length of the string multiplied by 2.5.

2A draft:
2A final:

2B

In this application you will use some of the methods of the Day class. Create a class called PlayDays. copy in the code form Codecheck. Also copy in the code for the Day class.

Do the following

  1. Step 1 (for the draft)
  2. Step 2 (for the final)

For the draft, do step 1.

2B draft:
2B final:

2C

Draw the object below. It looks a little like a flight of stairs. Create a class called StairsViewer. Add a main method. There is no starter code this time.

Import the graphics package from Udacity. The URL is in the syllabus area.

Your drawing should follow these specifications.

For the draft, create the top step and fill it with red

Fill the rectangles. Do not use the draw() method. This will guarantee that Codecheck will correctly evaluate your code.

Just ignore the textarea labeled .DS_STORE. It is something Mac through in and I can not get rid of it. It will not affect your program.

Sample output

output

2C draft:
2C final: