Showing posts with label Holychild. Show all posts
Showing posts with label Holychild. Show all posts

Monday, March 12, 2012

HCSD Data Structure Binary tree Quiz

In a one whole sheet of paper, write your answers for the following questions:

A. construct a binary tree based on the following values

S>E>R>J>G>F>V>B>A>C>P>T>H>K>O>Q

B. Construct a binary tree based in the following values and Identify the traversal order of the following:
- preorder
- inorder
- postorder

70>90>87>65>20>25>17>99>150>120>130>55>53>50>75>95>100>88>73>71>69

Read more...

Monday, February 27, 2012

HCSD Data Structures Case Study 7

Determine the advantages and disadvantages of each sorting algorithm once it will be applied in a program or an application:

  • Bubble Sort
  • Selection Sort
  • Insertion Sort
  • Shell Sort
  • Bucket Sort
  • Merge Sort
  • Quicksort
Post your answers in your blog. To be submitted today (March 6 ,2012).

Read more...

Sunday, June 19, 2011

HCSD IT314 DBMS Assignment 1: Designing an ERD

Consider the following set of requirements for a University database. Design an ER diagram for this application:

  • The university keeps track of each student's name, student number, social security number, current address and phone number, permanent address and phone number, birthdate, sex, class (freshman, graduate), major department, minor department (if any), degree program (B.A., B.S., ... Ph.D.). Some user applications need to refer to the city, state, and zip code of the student's permanent address and to the student's last name. Both social security number and student number are unique for each student. All students will have at least a major department.
  • Each department is described by a name, department code, office number, office phone, and college. Both the name and code have unique values for each department.
  • Each course has a course name, description, course number, number of credits, level and offering department. The course number is unique for each course.
  • Each section has an instructor, semester, year, course, and section number. The section number distinguishes sections of the same course that are taught during the same semester/year; its value is an integer (1, 2, 3, ... up to the number of sections taught during each semester).
  • A grade report must be generated for each student that lists the section, letter grade, and numeric grade (0,1,2,3, or 4) for each student and calculates his or her average GPA.
Instructions:
  • Printed, Short
  • Use Chen's Notation
  • To be submitted next Saturday June 25, 2011

Read more...

Saturday, May 21, 2011

CS323: Case Study 4

Using the process state diagram, explain why there is no transition:
• From the READY to WAITING.
• From the WAITING to RUNNING.

Instructions:
• Your answers should reach in not less than 300 words.
• Post your answers to your electronic journal.
• Date of submission: May 22, 2011 12:00 midnight
• Once I found out that you have a duplicated answer from a classmate, automatic 50 grade.




Read more...

Saturday, May 14, 2011

CS323: Case Study 3

Load the following jobs into memory using fixed partition following a certain memory allocation method (a. best-fit, b. first-fit, c. worst-fit).

Memory Block

Size

Block 1

50K

Block 2

200K

Block 3

70K

Block 4

115K

Block 5

15K





a. Job1 (100k) f. Job6 (6k)

turnaround: 3 turnaround: 1

b. Job2 (10k) g. Job7 (25k)

turnaround: 1 turnaround: 1

c. Job3 (35k) h. Job8 (55k)

turnaround: 2 turnaround: 2

d. Job4 (15k) i. Job9 (88k)

turnaround: 1 turnaround: 3

e. Job5 (23k) j. Job10 (100k)

turnaround: 2 turnaround: 3

*turnaround – how long it will stay in the memory.

Instructions:
  • Post your answers to your electronic journal.
  • Date of submission: Today (May 15, 2011) 12:00 midnight.
  • Once I found out that you have a duplicated answer from a classmate, automatic 50 grade.

Read more...

Saturday, May 7, 2011

IT111: Intro to IT Case Study

Case Study 2

Select two of the following professionals:

  • An insurance adjuster
  • A delivery person for a courier service
  • A newspaper reporter
  • A doctor (general practitioner)
  • Manager in a supermarket

Put forward a theory about how that person might use a hand held computer in their work

Instructions:

  • Your answers should reach in not less than 300 words.
  • Post your answers to your electronic journal.
  • Date of submission: Today (May 8, 2011)
  • Once I found out that you have a duplicated answer from a classmate, automatic 50 grade.

Read more...

CS323: Case Study 2

Computer Architecture

Case Study 2

In a multiprogramming and time-sharing environment, several users share the system simultaneously. This situation can result in various security problems. Name at least two of these problems. Can we ensure the same degree of security in a time-share machine as we have in a dedicated machine? Explain your answer

Instructions:


· Your answers should reach in not less than 500 words.


· Post your answers to your electronic journal.


· Date of submission: Today (May 8, 2011)


· Once I found out that you have a duplicated answer from a classmate, automatic 50 grade.

Read more...

Saturday, April 16, 2011

CS323: Case Study 1

Computer Architecture Case Study 1

Explain why we need to study Computer Architecture? What is its significance with your field as an IT or CS student? Differentiate Computer Architecture and Computer Organization?

Instructions:

  • Your answers should not be less than 250 words.
  • Due: April 17, 2011 4pm
  • DONT COPY AND PASTE!

Read more...

CS323: Blogs

CS323 Students:


Post your Name, blog url as a comment.

Read more...

Saturday, January 8, 2011

IT311 OOP SampleFrame Example

//SampleFrame.java


package sampleframe;
import javax.swing.*;
/**
*
* @author Mark Van Buladaco
*/
public class SampleFrame extends JFrame {
JPanel p1=new JPanel();
JButton b1=new JButton("Ok");
JButton b2=new JButton("Clear");
JLabel lab1=new JLabel("Contact Name");
JLabel lab2=new JLabel("Contact Number");
JLabel lab3=new JLabel("Address");
JTextField tf1=new JTextField(7);
JTextField tf2=new JTextField(7);
JTextField tf3=new JTextField(7);
public SampleFrame(){
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
p1.add(lab1);
p1.add(tf1);
p1.add(lab2);
p1.add(tf2);
p1.add(lab3);
p1.add(tf3);
p1.add(b1);
p1.add(b2);
add(p1);
}

}

//Main.java

package sampleframe;

/**
*
* @author Mark Van M. Buladaco
*/
public class Main {

public static void main(String[] args) {
SampleFrame sf=new SampleFrame();
sf.setTitle("Phonebook");
sf.setSize(200,250);
sf.setVisible(true);


}

}

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...

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...
Web Marketingdrive recovery software