Sunday, December 26, 2010

IT16 Case Study 6: Malicious Programs

You have learned that a friend of yours is developing a worm to attack the administrative systems at your institution of learning. The worm is “harmless” and will simply cause a message – “Let’s party” – to be displayed on all workstations connected to the computers on Friday at 3 pm to 4 pm the virus will erase itself and destroy all evidence of its presence. What would you do?


Instructions:

  • Your answers should be in no less than 300 words
  • Due: January 5, 2011

Read more...

IT16 Case Study 5: Hacking

What would you do...

You have just been hired as an IT security consultant to “fix the security problem” at Acme United Global Manufacturing. The company has been hacked mercilessly over the last six months, with three of the attacks making the headlines of the business section for the negative impact they had on the firm and its customers. You have been given 90 days and a budget of $ 2 million. Where would you begin, and what steps would you take to fix the problems?

Instructions:

  • Your answers should be in no less than 300 words.
  • Due: January 5, 2011

Read more...

Monday, December 13, 2010

IT5 OOP Prelim Lab Exam

Computers are playing an increasing role in education. Write a program that will help an elementary school student learn multiplication. Use the Next method from an object of type Random to produce two positive one-digit integers. It should display a question, such as

How much is 6 times 7?

The student should then type the answer into a TextBox. Your program should check the student’sanswer. If it is correct, display "Very good!" in a Label, then ask another multiplication question. If the answer is incorrect, display "No. Please try again." in the same Label, then let the student try the same question again until the student finally gets it right. A separate method should be used to generate each new question. This method should be called once when the program begins execution and then each time the user answers a question correctly.


Read more...

Saturday, December 11, 2010

IT311 - OOP Laboratory Exercise 5

Java Laboratory Exercise 5

Instructions:

  • Due: December 15, 2010 11:59 pm.
  • Send the class file and the main program (Household.java and TestHousehold.java)
  • Attach and email the files in celticguardiandancingelf@yahoo.com
  • Subject: Lastname__it311_labexer5

a.) Create a class named Household that includes data fields for the number of occupants and the annual income, as well as methods named setOccupants(), setIncome(), getOccupants(), and getIncome() that set and return those values respectively. Additionally, create a constructor that requires no arguments and automatically sets the occupants field to 1 and the income field to 0. Save this file as Household.java.

b.) Create a program named TestHousehold that demonstrate that each of the methods works correctly.

c.) Create an additional overloaded constructor for the Household class you created. This constructor receives an integer argument and assigns the value to the occupants field. Add any needed statement to TestHousehold to ensure that the overloaded constructor works correctly.

d.) Create a third overloaded constructor for the Household class you created. This constructor receives two arguments, the values of which are assigned to the occupants and income fields, respectively. Alter the TestHousehold program to demonstrate that each version of the constructor works properly.

Read more...

IT311 OOP Calculator Class (Modified)

Calculator.java


package calculator;
public class Calculator{
int num1;
int num2;
int num3;
String name;
public Calculator(){
num1=0;
num2=0;
}
public Calculator(int a,int b){
num1=a;
num2=b;
}
public Calculator(String n,int a, int b, int c){
name=n;
num1=a;
num2=b;
num3=c;
}
public void add(int a, int b){
System.out.println(a+b);
}
public void add(int a, int b, int c){
System.out.println(a+b+c);
}
public void sub(int a, int b){
System.out.println(a-b);
}
public void sub(String n,int a, int b){
System.out.println(n);
System.out.println(a-b);
}
}

____________________________________________________________________

TestCalculator.java

package calculator;
import java.util.*;
public class TestCalculator2 {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
Calculator c=new Calculator();
Calculator c2=new Calculator(25,20);
Calculator c3=new Calculator("Addition",10,20,30);
c.add(10,11);
c.add(10,11,12);
c.sub(10,11);
c.sub("Subtraction", 22,13);

}
}

Read more...

Thursday, December 9, 2010

IT16 Prelim Exam Postponed

The scheduled prelim exam for IT16 will be moved to December 13, 2010 (Monday) due to test questionnaire reproduction problems.

Read more...

Wednesday, December 8, 2010

IT5 VB.NET Lecture Notes: Procedures

Download the following link:

http://projectarchive.comuf.com/upload/317.pdf

Read more...

Sunday, December 5, 2010

IT16 Activity: Virus Development Timeline

Create an ILLUSTRATIVE EXAMPLE of the history of VIRUS development.

  • Be creative. Creativity and Design is an IT Competency.
  • You can use magazine/newspaper pictures.
  • 1/4 illustration board.
  • By 3s or 4s (3 or members per group)
  • Submit it on December 15, 2010

Read more...

Saturday, December 4, 2010

IT311 OOP Calculator Class files



Here is the answer to our Laboratory Exercise

Create a Calculator class that has the basic operations methods (add, subtract, multiply or divide two values). Then create a program to test the class.

Calculator.java


TestCalculator.java


Read more...

IT311 OOP Creating own class



Download lecture notes here (click the link):

Right click "Save File As" or "Save Link as"


Example

Calculator.java

TestCalculator.java

Read more...

Wednesday, December 1, 2010

IT5 Lab Exercise 3

It will be checked on December 7, 2010


The factorial method is used frequently in probability problems. The factorial of a positive integer n (written n! and pronounced “n factorial”) is equal to the product of the positive integers from 1 to n. Even for relatively small values of n, the factorial method yields extremely large numbers. For instance, when n is 13, n! is 6227020800—a number too large to be represented with data type Integer (a 32-bit integer value). To calculate the factorials of large values of n, data type Long (a 64-bit integer value) must be used. Write a program that evaluates the factorials of the integers from 1 to 20 using data type Long. Display the results in a two column output table. [Hint: create a Windows application, use Labels as the columns and the vbCrLf constant to line up the rows.] The first column should display the n values (1–20). The second column should display n!.

Read more...

About

My photo
Hi! Mabuhay everyone! I am Mark Van M. Buladaco! I am from Davao City! Hope you enjoy my blog!

Contact me

476 alley Malvar St., Davao City, Philippines
celticguardiandancingelf@yahoo.com
Web Marketingdrive recovery software