## Assignments Due Dates for January 2010 Trimester

• #### MrMv 6:53 pm on March 15, 2010 Permalink | Reply

from the college they didnt give enough time to us for completing the assgnment. according to OUM assignment has to give on first week. but they provide it for us on fouth week. its too late.. i hate this

• #### phaariz 2:11 pm on March 23, 2010 Permalink | Reply

That is true. We have to bring this issue up to our president. It is our right, right?

## Villa College Students Association Voting is OPEN today (SUNDAY) also.

The Villa College’s new Student Association Executive Board Election will still be underway today also, according to the Election Committee. The election was started yesterday, Saturday the 27th of February, 2010. Voting is scheduled to continue today (Sunday) from 06:00pm to 10:00pm.

Below is the list of candidates who are competing for the posts.

We request you to use your right to Vote and enable a better future for the students at Villa College. Because by getting together, not only can we do better in studies, but in life as well.

## Class Exercises 2 of OO Programming in Java

Question 1
Write statements that perform the following one-dimensional-array operations:

1. Set the 10 elements of integer array counts to zero.
2. Add one to each of the 15 elements of integer array bonus.
3. Display the five values of integer array bestScores in column format.
```// File:  Question1.java
// Author: Abdulla Faris

public class Question1 { // begin class

public static void main(String args[]) { // begin the main method

// part a
int array[]={0,0,0,0,0,0,0,0,0,0}; // declaring and setting 10 elements in the
// array with zero

// part b
int bonus[];
bonus=new int[15];  // declaring array bonus with 15 elements

for(int i=0;i<15;i++){ // adding 1 to each element
bonus[i]+=1;
}

// part c
int bestScores[]={10,20,30,40,50}; // declaring the array bestScores of
// 5 elements
for (int j=0;j<5;j++){
System.out.printf("%d\t", bestScores[j]); // displaying them in a
// column format
}
}
}
```

Question 2

Write a Java program that reads a string from the keyboard, and outputs the string twice in a row, first all uppercase and next all lowercase. If, for instance, the string “Hello” is given, the output will be “HELLOhello”
(More …)

## Class Exercises of OO Programming in Java

Here are the Questions and the source codes of the Java Exercises we did in the Object Oriented Programming class.

These are also color coded for ease of reading.

OO Programming Exercises 1 (Right click and Save)

Hope this helps

## Example Programming Codes in C

I think this Example programming codes will be important for those who are undertaking c programming subject also those who will be taking c programming in the future.

C Programms (Right Click here and Save)

-Yasir-

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
e
edit
o
t
go to top
l
h
show/hide help
shift + esc
cancel
Follow

### Follow “OUM Students from Maldives”

Get every new post delivered to your Inbox.