Don’t Worry, Be Happy!

August 31, 2008

DBMS: ER Diagram Sales System

Filed under: School, Database - kAreN maE @ 8:27 pm

In our DBMS2 (Database Management System 2) course, we are ask to make a system that suits the need of a certain company to their problem. In our case, our group has decided to choose the Telton Pharmacy located at Mabini St. Ext. Blvd., Davao City to make them help their current problem in their company. The thing is that they uses the manual method in recording their sales. The problem with this method is that they have a difficulty in monitoring their sales in a day, they can’t accurately maintain their records intact and it is also very time consuming. Our solution to their problem is that we have created a web – based application sale system that can view, add, edit and delete their sales transactions easily, accurately and efficiently. As we have gone through our project, we come up with the analyzation of this ER Diagram. Which explains in a way that in every OR their is one OR Detail and in every OR detail contains one or more item/s. As of now, we are still currently working on the designing stage of our system and as of in the 2nd week of September, we are hoping to work in the coding stage. Hope we can do it! Goodluck guys…! emoticon

August 19, 2008

Say It Again - Marie Digby

Filed under: Music/Bands - kAreN maE @ 2:25 am

The thing about love is I never saw it comin’
You kinda crept up and took me by surprise
And now there’s a voice inside my heart that’s got me wonderin’
Is this true, I wanna hear it one more time

Move in a little closer
(just a little closer)
Take it to a whisper
(woah)
Get just a little louder
(yeah)

Say it again for me
Cuz I love the way it feels when you are
Tellin me that I’m
The only one who blows your mind
Say it again for me
It’s like the whole world stops to listen
When you tell me you’re in love
Say It Again

The thing about you (about you)
Is you know just how to get me
You talk about us like there’s no end in sight
The thing about me is that I really wanna let you (wanna let you)
Open that door (open that door)
And walk into my life

Move in a little closer
(just a little closer)
Take it to a whisper
(woah)
Just a little louder
(yeah)

Say it again for me
Cuz I love the way it feels
When you are
Tellin’ me that i’m
The only one who blows your mind
Say it again for me
It’s like the whole world stops to listen
When you tell me you’re in love

And it feels like
It’s the first time
That anybody’s ever brought the sun without the rain
And never
In my whole life
Have I heard words as beautiful as when you say my name

Say It again for me
Cuz I love the way it feels
When you are tellin’ me that I’m
The only one who blows your mind
Say It again for me
It’s like the whole world stops to listen
When you tell me you’re in love

Say it again
Say it again
Say it again
(oh)

Say it again
Say it again
Say it again

Say it again
Say it again
Say it again

When you tell me you’re in love
Say it again

oooo (oh)
oooo, oh
oooo

Link2youtube : Marie Digby – Say it Again[Official Music Video]

August 2, 2008

C#: Code for Inheritance

Filed under: School, Programming - kAreN maE @ 10:32 pm

Form.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {


        }

        private void button1_Click(object sender, EventArgs e)
        {
           
            if (comboBox1.SelectedItem.ToString() == "male")
            {
                Male x = new Male();
                x.Name = textBox1.Text;
                x._gender = Gender.Male;
                MessageBox.Show(x.Talk());
            }

            else
            {
                Female x = new Female();
                x.Name = textBox1.Text;
                x._gender = Gender.Female;
                MessageBox.Show(x.Talk());
            }
           
        }
    }

}

Male.cs

using System;
using System.Collections.Generic;
using System.Text;

namespace WindowsApplication1
{
    class Male : human
    {
        public override string Talk()
        {
            return base.Talk() + "I am a boy";

        }
    }
}

Female.cs

using System;
using System.Collections.Generic;
using System.Text;

namespace WindowsApplication1
{
    class Female : human
    {
        public override string Talk()
        {
            return base.Talk() + "I am a girl";

        }
    }
}

Human.cs

using System;
using System.Collections.Generic;
using System.Text;
namespace WindowsApplication1
{
    public enum Gender
    {
        Male,
        Female
    }
    public class human
    {
        public human()
        {
            humanCounter++;
        }

        private string name;
        private Gender gender;
        public virtual string Talk()
        {

            return "my name is " + name + " and i am a " + gender + ".nCurrent Number of Instance of human" + humanCounter;

        }

        private static int humanCounter = 0;
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        public Gender _gender
        {
            get
            {
                return gender;
            }

            set
            {
                gender = value;
            }


        }

    }

}

C#: Code for HumanType

Filed under: School, Programming - kAreN maE @ 10:18 pm

Form1.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

          
        }

        private void button1_Click(object sender, EventArgs e)
        {
            human x = new human();
            x.Name = textBox1.Text;
            if (comboBox1.SelectedItem.ToString() == "Male")
            {
                x._gender = Gender.Male;
            }
            else
            {
                x._gender = Gender.Female;
            }
            MessageBox.Show(x.Talk());
        }
    }

    }

Human.cs

using System;
using System.Collections.Generic;
using System.Text;
namespace WindowsApplication1
{
    public enum Gender
    {
        Male,
        Female
    }
    public class human
    {
        public human()
        {
            humanCounter++;
        }

        private string name;
        private Gender gender;
        public string Talk()
        {

            return "my name is " + name +" and i am a " + gender +".nCurrent Number of Instance of human" + humanCounter;

        }

        private static int humanCounter = 0;
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        public Gender _gender
        {
            get
            {
                return gender;
            }

            set
            {
                gender = value;
            }


        }

    }

}

Get free blog up and running in minutes with Blogsome
Theme designed by Alex King