Important Announcements


FINAL EXAM date and time:
Monday, May 18th, 9:00
If you have conflicts with other exams, work it out with them
We will not offer the exam at any other time.
Do not buy plane or train tickets until after the exam.
If you skip the final, you will FAIL the course.


Thu Apr 1, 8:35pm

HOMEWORK moved to here

(Well that's what we are calling it now so you'll do it and it has a due date).
(We may decide to use your score on this "homework" to help your score on the coding portion of the midterm.)
Write the code for the coding question from the midterm
Due: Thu at start of class, 4:30 - no lateness allowed.
At this point the grading staff and I are considering having this submitted via NYUClasses instead of printout.
This in no way changes what you should be doing right now.

Do note that for almost all of you, just coding what you remember having written on the test is wrong.
Think through what we discussed in class as to the steps and which function are responsible for which activites and where variables should be defined and where processed and how to correctly have function communicate with each other - then write the correct code.

There is a FAQ - frequently asked and answer question in the Announcements link which will also be sent via Messages in Classes>
Be sure to read before submitting.

NOTE: we hopefully have the submitting link set to allow infinite resubmission before the deadline.
please report to us if it does not allow.
This means you can - and should - submit whatever you have and then work some more and then submit that and then work some more - so that you will at least get partial credit.

Lots of "class notes" are in the pictures links (some from spr14)
Read (and think) - while looking at the pix


Wed Apr 1, 9:00pm

NOTE: we hopefully have the submitting link set to allow infinite resubmission before the deadline.
please report to us if it does not allow.
This means you can - and should - submit whatever you have and then work some more and then submit that and then work some more - so that you will at least get partial credit.

This is a FAQ - frequently asked and answer question in the Announcements link which will also be sent via Messages in Classes>
Be sure to read before submitting.

Q: Do we need to use pointers?
Q: How many function must we write?

I would never tell anyone how to write the code!
So I will not answer whether or not you need pointers!!!

It's never about which statement to use - it's about which problem form needs to be solved.
It's never about should I use pointers parameters - that's about communication.
It's never about the quantity of functions - it's about procedural problem solving.

Breaking the problem into parts and subparts and subsubparts... identifies the functions that need to be written: one for each.
Thinking  about the pieces of information needed by each function and how to implement those and how to communicate from caller to designer and back tells you all you need to know about parameter types and return statements and how to call a function.

Think of how you should approach this problem (or really ANY problem).

What is the problem? - that's ONLY main's job to solve.
What is the topmost level of steps in the problem that's ALL that goes in main.
What is main's job in this homework?

For this homework main's job is:
1) To have the game played seven times and then
2) To have the stats shown.
That's it. (Defining local variables is not a "step" in this sense but you'd need to do that if you needed to.)
What pieces of information does main need to do it's job?
What are the sources of those pieces of information?
How do you implement the code for those sources?
Do you need variables defined in main to hold information needed for main to do things like calling showStats (so it can do its job)?
How does main hold that information? A: local variables defined in main.
How do those variables get their stored information?
Should any of those variables be initialized?
Design question: what uses of variables require initializations?
Which don't?

What pieces of information does playONEgame need to do its job - which is to play ONE game?
What are the sources of information for each of those?
Implement each.
What information does it need from it caller (what must be passed in - pass by value parameters)?
Does the caller of playONEgame need information given back from that function?
If yes, how can playONEgame communicate what it needs to communicate back to its caller?
return? pointer parameters?
Implement that.

What pieces of information does showStats need to do its job?
What are the sources for each of those?
Implement that.

Done!!!
(if you know how to do all the things discussed above in C)

Tue Mar 24, 3:25pm

The Thursday AFTER break,
Thu, March 26:
your midterm, during the class period
- where to be announced.

Thu Feb 26, 7:25pm

Please ignore the previous announcement about dates in this course.
I goofed!

The Thursday BEFORE break is:
labs in lecture - bring your fully charged laptop
This is:
Thu, March 12 (CORRECTION)

The Thursday AFTER break is:
your midterm, during the class period - where to be announced.
This is:
Thu, March 26

Thu Feb 26, 7:10pm

DELEETED

Wed Jan 28, 2015, 10:00pm

Everyone have a great semester.

You MUST be signed up for the recitation (also known as a lab).
See your advisor NOW if you are not signed up for a lecture and a LAB.

Be sure to go to the first LAB this week -
EVEN IF YOU ARE NOT SIGNED UP FOR THE LABS -
go to one during the first week of classes.

You must have a working laptop and you must bring it to every lab.
The labs are "laptop labs".
If you do not have a laptop or your laptop is out of service, go to the lab anyway and work something out with the lab worker.
We will be working in a UNIX environment, using Cygwin, which will be installed during the first lab.

Sometimes a Tuesday or Thursday "lecture" period may, on occasion, also be a "lab" session (in the room we would normally meet for lecture).
This means bring your laptop and we will try to announce this beforehand.