1A
If you have not done so, create the directory structure specified in Lab0.
Start a new Bluej project called hw1a_dogs_draft
in the cs46a/homeworks/hw01/draft
folder. You can actually name the project anything, but this is a good naming convention that will help keep things straight.
Create a new class called Dog (you must use this exact name). . In this application, you will display the word dog in three different languages: English (dog), Spanish (perro), and French (chien).
Go to the draft link at the bottom of the page. Copy your Dog class code into the Dog class in Codecheck and submit.
Complete the class to display the words exactly as shown.
The first row is *-----*
second row is *dog *
third row is *perro*
the fourth row is *chien*
the last row is the same as the first
For the draft, just print the first two lines like this
*-----* *dog *
When you are ready to work on the final, copy the Bluej project (hw1a_dogs_draft
) into the cs46a/homeworks/hw01/final
folder. Change the word draft to final. This will help you tell the draft and the final when both are open in Bluej. Open the copied project in Bluej and complete the assignment.
Note: It is important to remember that Codecheck just helps you get your code to work. It does not submit it for grading. You must download and submit the report for grading in the Canvas Assignment area.
It is important that you name your class exactly as specified otherwise Codecheck will not be able to process your submission and you will get no credit.
If you use an IDE like Eclipse or Netbeans, do not include a package statement. Codecheck will not be able to process your submission and you will get no credit.
To test your draft, click on the draft link below. Copy and paste the code from Bluej into the textarea and click submit. If your code passes the test, Congratulations. If not, go back to BlueJ, make any necessary changes, and repeat the process.
See the Submission directions at the bottom of the page.
Follow a similar process for the final version.
Links for Codecheck:
1B
This is a picture of Taran
He needs a stool to reach what he wants. In this assignment, you will help Taran grow.
At this URL you will find a zip file with the graphics files you need. Download it, unzip it into your cs46a/homeworks/hw01/draft
folder, and rename the file to hw1b_taran_draft.
Now in Bluej, open it by clicking Project > Non Bluej and selecting the folder hw1b_taran_draft.
The folder also contains Baby.java. You could copy and paste the Baby code from Codecheck into Bluej, but this will save you some time.
Complete the Baby class following these instructions
For the draft, create the picture and draw it. Don't translate or grow it until the final version.
When you are ready to work on the final, copy the Bluej project (hw1b_taran_draft
) into the cs46a/homeworks/hw01/final
folder. Change the word draft to final. Open the project from Bluej and complete the assignment.
Links for Codecheck:
1C
In this problem you will complete an application to calculate how many days are left until the start of Spring Break. Spring Break starts on March 23, 2015.Use the Day class presented in the videos.
Here is the set up. You will do a similar thing for every homework problem
cs46a/homeworks/hw01/draft
folder. Now you are ready to do the assignment. In the main method:
For the draft: Create a Day object representing the current day and assign it to a variable named today. (Don't change the print statement)
When you are ready to work on the final, copy the hw1c project from draft folder to the final folder. Add the word final to the end of the folder name.
When you are ready to work on the final, copy the Bluej project (hw1c_days) into the cs46a/homeworks/hw01/finals folder. Add the word final to the end of the folder name. Open the project from Bluej and complete the assignment.
Submission
When you are finished with your code, submit it in Codecheck one final time. Notice at the bottom left there is a "Download" button. Click that and a .signed.zip file will be downloaded. That is the file you need to upload into Canvas.
When you are working on the draft, add the word "draft" to the end of the name, before .signed.zip. For example Dog_draft.signed.zip
When you are working on the final, add the word "final" to the end of the name, before .signed.zip. This will help avoid submitting the wrong version.
Be sure to upload the .signed.zip file produced by Codecheck not the .java file you wrote. Do not alter the downloaded file in anyway. The files are digitally signed and the graders will check that they have not been altered.
For both the draft and the final, you will upload 3 signed.zip files. Upload all three programs at one time
Warning: do not submit the final version as the draft. In order to be graded correctly, you must submit a program that does exactly what is specified for the draft - no more, no less.