Com S 100J Introduction to Computer Programming Grade: letter or S/U Spring 2006
674-586 TR 09:05 Kimball B11 Instructor: David Gries 4 credits
674-678 TR 11:15 Olin 255 Newsgroup: cornell.class.cs100j

Announcements
Home
About email
Academic Excellence Workshop
Academic integrity
Announcements
DrJava
Exams
Grades
FAQs
Handouts, general
    Assignments
    Labs
    Quizzes
Links
Staff info
Syllabus
Texts
Times & places
Newsgroup
Email Gries


March 27 Help sessions
March 26 Step 5 of assignment A5
February 15 Look at the CS100J newsgroup
February 10 Course management system (CMS)
January Seeing consultants, TAs, and Gries
January Make extensions visible on your PC
   
   
   

 

  • Step 5 of assignment A6.

Step 5 of assignment A5 asks you to write a method play that plays the music given by the file names in a String array s. If you simply call

StdAudio.play(s[i])

for each filename s[i], all the music will be played at once. That is because, as the method specification says, the music will be played in the background. Thus, the music will play while other things are going on, like the DrJava program execution asking it to play the file given by the next file name.

So, don't do the above. Instead, for each file name, read the contents of the file into a new double array d (say) --there is a method StdAudio.read(String filename) that helps you to do this-- and then play the double array --there is a method StdAudio.play(double[] input) that will do this.

  • Look at the CS100J newsgroup regularly. It is an important means of communication between us. To find out about it, click on the link Newgroup in the left column.

  • About the CMS (Course management system). The CMS for this course is at this URL: http://cms3.csuglab.cornell.edu/. If you do not appear in it, please email Kathy Carpenter at kathyc@cs.cornell.edu and ask her to put you in it. Note: We are using a new version of the CMS. You must use the URL shown above. Do NOT use http://cms1.csuglab.cornell.edu/ .

  • Fix your PCs so that extensions (like .java and .doc) ALWAYS appear. To do this, do the following: Open an explorer window. Use menu item Tools / Click on Folder Options. Click the view tab. Uncheck the box "Hide extensions for known file types".

  • Newsgroup. Click here to find out about the CS100j news group.

  • Making appointments with TAs. Check here for office hours of TAs and the instructor. You can make an appointment for a one-on-one session with any TA at the undergrad office (Upson 303) between 9:30 and 4:30 M-F, or by emailing: ugrad@cs.cornell.edu--24 HOURS IN ADVANCE.

  • Please look at handout 0, which summarizes what we did in lecture each time!

  • January About consulting and TA hours.

    Consultants for CS100 live in a corner of the newly remodeled Engineering Library in the basement of Carpenter Hall, where you may spend a good deal of time programming. They are there to answer your questions. If you need help downloading and setting up DrJava, if you have a misunderstanding on an assignment, if you are having trouble debugging a program —in all such matters, ask the consultants for a quick answer. However, they will not write your program for you. 
     
    The TAs have office hours. If you need some conceptual help of any kind, go the the TAs during their office hours. Choose any TA whose office hours are convenient for you, you don't have to limit yourself to your Section TA.
     
    TAs have a closed office hour and an open office hour. If you want time alone with a TA because you just don't understand or are falling behind, then arrange a closed session by calling 255-0982 or going to the undergrad office (Upson 303). If you just have a question, go see a TA; there may be other people there at the same time, and you can all hear each others questions/answers. The closed hours will act like open hours if no one has made an appointment.
     
    Please feel free to see Gries during his office hours --or any time that he is there. If he is not working frantically on someting that has a deadline, he will be happy to chat with you. He also looks at email and answers it often.

  • March 27: Help sessions

    A number of students did not do well on prelim 2. A lot of the problem has to do with difficulty in developing loops and recursive procedures. This week and next, each TA and Gries will have two sessions where students can come and get practice in these tasks. We want at most six people at each session.

    Below are the times for the sessions (more will be added). Please email the person who is handling a session to reserve space for yourself.

    This week, the sessions will be on developing loops.
    Instructor Time Place
    Instructor email Time Place Time Place
    Eric Breck ejb34@cornell.edu 2:00PM Mon 5154 Upson 4:00PM Wed 5154 Upson
    Mohamed Elhawary mfe5@cornell.edu 3:30PM Tue 4162 Upson 3:45PM Wed 4162 Upson
    David Gries djg17@cornell.edu 3:35PM Wed 167 Olin 2:30PM Fri 167 Olin
    Asif ul Haque ah344@cornell.edu 2:00PM Mon 328C Upson 3:00PM Wed 4121 Upson
    Piti Irawan pi27@cornell.edu 3:00PM Tues Rhodes 586 4:00PM Thurs Rhodes 586
    Megan Owen mao29@cornell.edu 3:00PM Wed Rhodes 657 4:30PM Thurs Rhodes 657
    Sean Williams saw57@cornell.edu 1:00PM Sun Duffield-Upson Atrium 2:00PM Sun Duffield-Upson Atrium