2017년 4월 29일 토요일

[Data Communications] HW 3 (Due: May 16)

[Guidelines]

1. Type your homework using the MS-Word or another word processor!!
Otherwise, you will get ZERO point 

2. Do not copy your homework. You will get ZERO point 

Please submit your HW to the report box in front of NC Lab, where located at office #318, 자연대연구실험동 (Building# 313). Due time: by 7:00 pm (or much earlier is possible).

HW3


[C++] Homework #6 (Due: May 16)

HW#6

Please submit your HW to the report box in front of NC Lab, where located at office #318, 자연대연구실험동 (Building# 313). Due time: by 7:00 pm (or much earlier is possible).


2017년 4월 24일 월요일

[C++] Operator types and operator overloading

Part 1

Part 2

[C++] Polymorphism

Part 1

[C++] Inheritance

Part1

Part2

[C++] Concept of Objects and Classes

Concept of Objects and Classes

[OpenSource S/W] Lecture Supplements for C Programming

Lecture Supplements #1 for C Programming (Korean Version)
Lecture Supplements #2 for C Programming (Korean Version)
Lecture Supplements #3 for C Programming (Korean Version)
Lecture Supplements #4 for C Programming (Korean Version)
Lecture Supplements #5 for C Programming (Korean Version)






[OpenS/W] Lecture Notes: 01-Introduction

Introduction


[Open S/W] Lecture Notes: VMWare and Ubuntu Installation

VMWare and Ubuntu (English Version)

Korean Version

[Open S/W] Lecture Notes: Putty Installation

Putty Installation (English Version)

Putty Installation and Basic Commands (Korean Version)


[Open Source S/W] How to use Git

버전 관리 git

How to use

Practice 1

Practice 2

Practice 3



[Open Source SW] Lecture Notes: Make and GDB

Make

(You can find source files, such as unix3-1.c, unix3-2.c, and unix3-3.c, as here)

GDB


[Open S/W] Lecture Notes: Files and Directory


Files and Directory (Supplements) - Part 1 (Korean Version)

2017년 4월 15일 토요일

[Data Communications] Homework 2 Solutions

Solutions

From now on, no more reply to your questions via e-mail.

(This semester there are about 150 students in my classes. I am not able to handle students' questions via email. It may take at least 10 minutes to handle one student's question. You know what I mean .. ^^)

If you have any questions related to the midterm exam, please stop by my office.

Thanks,

[Question]

강의자료(long version) 12페이지의 수식을 보면, Nmax = 1/c * B * r이라는 식이 나와있는데, ( 첫번째 식 )
8페이지에 나와있는 data rate, signal rate 관련 식을 보면, S = c * N * 1/r인 식이 나와있습니다. ( 두번째 식 )
두번째 식을 정리하면 N = 1/c * S * r으로 바뀌는데, 이것과 첫번째 식을 비교하면,

Nmax = 1/c * B * r
N = 1/c * S * r이 됩니다.
S signal rate(baud rate)라고 배웠는데, 왜 이렇게 S B가 같게 되는 지 모르겠습니다.

Bandwidth, Signal rate는 단위부터 다른데, 이 부분이 헷갈립니다.


  1. We can say that the baud rate determines the required bandwidth for a digital signal: More changes in the signal mean injecting more frequencies into the signal. (Frequency means change!! change means frequency!! Namely, baud rate and frequency imply that some change rates per second)
  2. From the lecture notes, each level corresponds to one signal element.

  • From 1 and 2, we can roughly say that the bandwidth (range of frequencies) is proportional to the signal rates (baud rate). 
  • Thus, the minimum bandwidth can be given as, 
    • S  is proportional to B. 
    • B_min = c X  N X (1/r) ⇒ B ≤ c X  N X (1/r) ⇒ (1/c) X B X r ≥ N (= N_max)

[Problem 37] Errata

Signal 10V -> 10W
Signal 5mV -> 5mW



2017년 4월 11일 화요일

[Data Communications] A new version of HW2 (Due: April 14)

I just removed redundant questions.

[Guidelines]

Type your homework using the MS-Word or another word processor!!
Otherwise, you will get ZERO point

Please submit your HW to the report box in front of NC Lab, where located at office #318, 자연대연구실험동 (Building# 313). Due time: by 7:00 pm (or much earlier is possible).

HW2


[C++] Source codes on April 11

Download


2017년 4월 7일 금요일

[C++] HW 5 (Due: April 14)

HW5

Please submit your HW to the report box in front of NC Lab, where located at office #318, 자연대연구실험동 (Building# 313). Due time: by 7:00 pm (or much earlier is possible).


2017년 4월 6일 목요일

[C++] Source codes we did on April 6

Actually, it is not easy to understand the object-oriented concept at the first time.
Next week, let me review what we did today.
Have a nice weekend!!












#include <iostream>
#include <string>

using namespace std;

// Golobal !!
class Human
{
private:
    // Data attributes: States
    int    Age;
    string Name;
    string DOB;
    string POB; // place of birth

public:
    // Constructor
    /*
    Human() {
        cout << " I am alive not zombie!!" << endl;
    }
    */
    // Default construct for Age
    Human(string SetName = "BaBo" , int SetAge = 25) {
        Name = SetName;
        Age = SetAge;
        cout << " I am alive and my name is " << Name << endl;
        cout << " I am " << Age << " years old" << endl;
    }

    /*
    Human(string SetName) {
        Name = SetName;
        cout << " I am alive and my name is " << Name << endl;
    }
    */
    // Destructor
    ~Human() {
        cout << "I am dead and zombie !!" << endl;
    }

    // Setter
    void SetDOB(string HumanDOB)
    {
        DOB = HumanDOB;
    }

    // Getter
    string GetDOB()
    {
        return DOB;
    }
    // Behaviors
    void Talk(string TextToTalk)
    {
        cout << "Message: + " << TextToTalk << endl;
    }

    void IntroduceSelf()
    {
        cout << "My name is " << Name <<endl;
    }
};

int main()
{
    cout << "Hello world!" << endl;

    Human Tom;

    Tom.Talk("Ha Ha");

    Tom.SetDOB("2017-04-06");
    cout << Tom.GetDOB() << endl;

    Human* pTom = new Human();
    //(*pTom).SetDOB("2016-04-06");
    pTom->SetDOB("2016-04-05");
    // cout << (*pTom).GetDOB() << endl;
    cout << pTom->GetDOB() << endl;

    pTom = &Tom;
    cout << pTom->GetDOB() << endl;

    Human Jane("Jane");
    Jane.IntroduceSelf();

    delete pTom;

    return 0;
}

[Data Communications] Multiple Choice Quiz 3

Multiple Choice Quiz 3


2017년 4월 5일 수요일

[Open Source] HW4 (Due: April 12)

HW4

Please submit your HW to the report box in front of NC Lab, where located at #318자연대연구실험동 (Building# 313). Due Date: by 7:00 pm (or much earlier is possible).



[Open Source] Source code we worked on April 4

#include <stdio.h>

int main()
{
    int number;

    scanf("%d", number);
    printf("ECHO: %d\n", number);

    return 0;
}

2017년 4월 3일 월요일

[Notice] Homework Guidelines for C++, Open Source S/W, and Data Communications

From now (April 3) on,

1. Homework should be written in English 


2. Your homework should be logically written. For example, just capture your screen and submit it for your homework. It is not O.K !!


3. Any source codes must include "detailed comments" in variables, statements, functions, and etc.

   
If you do not follow these homework guidelines, You will get "0.0".