Homework Assignments – Fall 2010

C Programming (COP-2220)

Assignments, due dates, and hints are given below, most recent first. Homework is due by midnight of the date shown. Send your homework as an email attachment from your FSCJ email account to sdifranc@fscj.edu. Include your name, homework number, and the class and reference number in the subject line as described in the homework guidelines.

Note: If you are asking for help on an assignment rather than turning it in, make sure to include the word "Help" in the subject line.


Hw02: Data Representation

Answer the "Self-test Questions" at the end of the lecture notes on "Data Representation". Type your answers with a text editor (like Notepad, but not a word processor, like WordPad or MS Word), and save it as an ASCII text file with the name hw01-xxx.txt, where xxx are your initials.


Hw01: Using The Dev-C++ IDE

Modify the program given in the Dev-C++ Tutorial to prompt the user for a number of students who have signed up for the senior class trip to Washington, D.C., then calculate the number of full buses (each can hold 42 students) needed, and the number of students that will be on the last partially-filled bus (i.e., the number of students "left over"), if any, and display the result.

As an extra challenge (not extra credit), solve this problem instead: prompt the user to enter a number of seconds, and convert this to hours, minutes, and seconds, as in this program. (This is an executable, machine language program; you can run it to observe its interface, but not edit it.)

Save your source code with the filename Hw01-xxx, where xxx are your initials, and email to me as an attachment from your student email account as described in the homework guidelines.

 Updated: 2010-09-07