Wednesday, October 3, 2007

Announcement: Final Exam and Project

FINAL EXAM

Final exam on October 12, 2007, Friday.
Coverage of the exam:
  • Loops
  • Array
  • All About Class

FINAL PROJECT

Deadline of the final project will be on October 12, 2007, 6:00 PM before the exam will start. Late project will not be accepted and has an equivalent score of zero.

You need to submit the following:
  • Hard copy of your program. This also includes about your project, help or manual of your application and other important information. Don't forget to include the sample demo of the program (screenshots of the running application).
  • Electronic copy of the program that will be sent to cgabilla@gmail.com. Set your subject title in this format
    : Gabilla, Cyrus:LM1:PhonebookApp and your program should run with java Phonebook command. Your electronic copy should also contain the .class files (bytecode) so that this can be run without recompiling the source codes.
  • Submit also the copy of your proposal and the design of the user interface of your project.
If you have questions regarding your project and the final exam, you can see me at the computer center or contact me at cgabilla (YM id), or cgabilla@gmail.com (email).

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.

Wednesday, June 20, 2007

CSc 101 Group in Friendster

There is a general group at Friendster that everybody from the Friendster world is free to join.

CSc 101 - Introduction to Computer Programming is a group where students or hobbyists from different schools or universities all over the world could learn, help, discuss, and share their knowledge on computer programming in a various programming language like Scheme, C/C++, and Java and others.

Click here to visit the group or just copy the link below.

http://www.friendster.com/group/tabmain.php?
statpos=mygroup&gid=294382

If you have a Friendster account, join now and participate in discussions. No friends yet? Add me, cgabilla@gmail.com or visit my Friendster Homepage.

Tuesday, June 19, 2007

Assignment No. 2: Pseudocode and Flowchart

Instruction: Write your answer in a whole sheet of paper with the prescribed format that was given to the class. Similar works will not be accepted and will be given a score of zero.
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.

Saturday, June 16, 2007

Schedule

LECTURE

Sections:
LM1 & LM2
Days: Tuesday/Friday
Time: 06:00 ~ 07:00 PM
Building - Room: COE - Rm. 314

LABORATORIES

Section:
LM1
Days: Tuesday
Time: 12:00 ~ 03:00 PM
Building - Room: COE - Computer Laboratory 1

Section: LM2
Days: Friday
Time: 12:00 ~ 03:00 PM
Building - Room: COE - Computer Laboratory 1

Section: VW
Days: Wednesday
Time: 03:00 ~ 06:00 PM
Building - Room: COE - Computer Laboratory 1