Tuesday, September 11, 2007

Programming Assigment: Class

Due Date: Sept. 7, 2007
Worth: 50

1. Address Book Entry. Your task is to create a class that contains an address book entry. The following table describes the information that an addressbook entry has.

Attributes/Properties - Description
--------------------------------------------------------------------------------------
Name - Name of the person in the addressbook
Address - Address of the person
Telephone Number - Telephone number of the person
Email Address - Person's Email address

For the methods, create the following:
  1. Provide the necessary accessor and mutator methods for all the attributes
  2. Constructors
2. AddressBook. Create a class address book that can contain 100 entries of AddressBookEntry objects (use the class you created in the first exercise). You should provide the following methods for the address book.
  1. Add entry
  2. Delete entry
  3. View all entries
  4. Update an entry

Tuesday, September 4, 2007

Programming Assigment: One-dimensional Array

Due Date: Sept. 7, 2007
Worth: 20

Modify RandomStudent.java so that it stores a parallel array of type boolean named isFemale, where element i is true if student i is female and false otherwise. Now, print out one male student at random and one female student at random.

Hint: use a do-while loop to generate random integers until you get one that indexes a male student.

Note: Duplicated work is considered as zero.

Friday, August 17, 2007

Final Project Proposal

Due Date: August 21, 2007
Worth: 50 points

Think of any simple application but useful and has something to do in your everyday life. There are many simple and common applications available but you may innovate them to make it different or unique.

These are examples of simple, useful and common applications that you can modify:
  1. Budget Manager. This allows you to record all your expenses.
  2. Post It. This allows you to record all your reminders.
  3. Alarm Clock. This allows you to record and update you in all your itineraries.
  4. Diary. A typical diary.
  5. Accounts Recorder. This allows you to record all your accounts (both username and password).
    1. Yahoo Account
    2. Friendster Account
  6. And others.

What to write in your proposal?
  • Description. Tell what your proposal is all about, and how had you been able to think about the project and its relevance. Cite your objectives for your modified application.
  • Features. Tell what makes your project different from other applications, as well as its contributing features.
  • Cite your sources.
  • All proposal must be encoded. Use the font Arial, size 12. Margins should be 1 inch at each side and single-spaced.
Note:
For those students who submit their final project proposal last August 17, Friday will have a plus points (10) but they are required to re-submit their proposal.

Sunday, July 15, 2007

First Preliminary Examination

The CSc 101 class sections LM1 and LM2 will not meet on Tuesday, July 17, 2007.

CSc 101's first preliminary exam will be on Friday, July 20, 2007. Bring your own test booklet, ball pen (black or blue), and extra money for your test questionnaire.

Coverage of the preliminary exam are the following:
  • History of Java (blog or Internet sources)
  • Development Cycle of a Program (JEDI)
  • Algorithms (Flowchart and Pseudocode) (JEDI and blog)
  • Overview of Java (Module 1)
  • Data Types and Operators (Module 2)

Possible exam types:

  • Modified True of False
  • Multiple Choice
  • Identification
  • Fill in the Blanks
  • Enumeration
  • Problem Solving

Note: I am not giving you a special exam except for those who have a valid reason.

Friday, July 6, 2007

Assignment No. 4: Familiarizing Common Compiling Errors in Java

Instruction:
Perform the following instructions on your computer. Write your actual sample Java programs and comment it with compiling errors it will produce in the compilation phase. The submission material should be computerized or a word-processor-generated.

Note: Do not predict the possible output or the compiling errors it will produce.

Points: 20 pts.

Problems:
  1. Create a small program that defines some fields. Try creating some illegal field names and see what kind of error the compiler produces. Use the naming rules and conventions as a guide from the course website.
  2. In the program you created in Exercise 1, try leaving the fields uninitialized and print out their values. Try the same with a local variable and see what kind of compiler errors you can produce. Becoming familiar with common compiler errors will make it easier to recognize bugs in your code.

Friday, June 29, 2007

Assignment No. 3: Coding the Algorithm

Instruction:This assignment should be computerized with inputs and outputs.
Points: 20 points.

Problem:
Develop a solution both in flowchart and pseudocode for the following problem:

Given a classroom full of people:
  • find the average height
  • the number of people
  • the height of the tallest person
  • the height of the smallest person
All measurements should be in meters.

From the algorithm you formulated from the previous assignment, as shown above, transform it into a Java program.

Sunday, June 24, 2007

The Proposed Website for CSc 101

Drupal, an open source content management platform, has been chosen to be the platform for the official website of CSc 101.

Here is the link to the proposed website for CSc 101.