The class reading assignments are part of each week's homework, these should be completed before class each Tuesday. If you didn't complete a Lab in your Thursday session, you should complete it on your own to prepare for the week's homework problems. Lab solutions will be available for you to study after the Thursday Lab meetings.
Always check the reading assignments page to prepare for the upcoming week's topics.
Also see the examples page for some example pieces of code.
| All homework assignments are due on-line by noon on Thursdays.
Printouts are due at the beginning of your Lab Section.
|24-Mar - 11:59pm Saturday||homework 07||solutions|
|30-Mar - 11:59pm Friday||homework 08||solutions|
|6-Apr - 11:59pm Friday||homework 09||solutions|
|15-Apr - 11:59pm Sunday||homework 10||solutions|
|23-Apr - 06:00am Monday||homework 11||solutions|
|30-Apr - 11:59pm Monday||homework 12||solutions|
|2-May - 11:59pm Wednesday||homework 13|
|2-May - 11:59pm Wednesday||homework 14|
|10-May - 09:00 Thursday||final exam|
//// Example Program Header // Name: Chris Neu // UserId: ccn4g // Homework #: 1 // Problem #: 4b // Program Name: ccn4g_program.cpp // Pledge Signature: <write out the pledge here> // // ////
The names for your programs are shown in 's in the homework assignments. The names of all the files you submit must begin with “userID_”. Substitute your userID in the file names. In the homework descriptions, the programs/files printed in bold must be submitted for grading. If your programs are not named properly, they may not be collected for grading. Use the following program to submit your homework: p2660_hw userID_program
Note: In the first prelab exercise you will modify your .login file to enable this command. Otherwise it will not be defined for your use.
For example, if your userID is 'ccn4g', you would submit your completed homework file for grading by executing the following command:
With this program you can submit one file at a time for grading. You must submit your files before each week's deadline – the program will not accept late submissions. You may resubmit (and thus overwrite) your homework as many times as you choose up until the cutoff time. Late homeworks will not be accepted.
You may want to transfer your work to your local computer or send them to UVa Webmail for printing. Instructions are provided below. Additional instructions for printing files directly from your galileo account on the printer in the Physics Library are available on the FAQ Page.
(1)Send files to your UVa Webmail using sendme
After setting up your galileo account for PHYS2660 in the first PreLab you will have access to a command called sendme. You can use sendme to email one or more files to your regular UVa email account. This command will work with any file type. Below are some examples with comments:
sendme myprogram.cpp # emails myprogram.cpp to your userID@Virginia.edu sendme myprogram.cpp myprogram.hpp # ditto, but also emails program.hpp sendme *.cpp # emails all .cpp files in my current directory sendme plot.pdf output.dat # ...
(2)Copy files directly to your computer from galileo
Alternatively, if you have one of the programs installed that supports secure shell and file copy (ssh and scp) (Software page), you can use that to copy a file to your local PC for printing.
And for the “home brewers” out there:
(3)Emailing text-only files (no graphics or binary data)
A standard way to email a text file (named 'example.txt') uses the mail program as follows:
/bin/mail userID@virginia.edu < example.txt
(4)Email attachments (send any type of file)
Type pine to start the pine email program. The first time you run pine it displays a welcome message, just type e to exit. To send a file as an attachment type c for compose. Next type the email address in the To: line. Then use the arrow keys to move your cursor to the Attachment line. Type control-j (^j) to add an attachment. Then type control-t (^t), this will bring up a file browser. Use the arrow keys to find the file you want to attach and press RETURN. Enter a title for the attachment if you wish, or just hit RETURN again. Press control-x (^x) to send the file. Using attachments you can send text, binary program files, graphics files, etc.
Some general guidelines are below. Rubrics for each assignment will be provided as well.