10/19/2013

DCT1083 Lab : Revision

1. Write an algorithm and a C++ program to find the area of a right  triangle. The area of the right triangle is given by the following formula.


area = 0.5 x (length x width)

2. Write a program to calculate the sum of EVEN integers starting from 1 to 10. 


3. Write a program that reads ten integers and displays them in the reverse of the order in which they were read


4. Write an algorithm and a C++ progam that read 20 integers. Find the maximum among the 20.. 

10/06/2013

DCT1083 Programming Fundamentals : Assignment 3



ASSIGNMENT 3


1.    MANAGING MEMORY

1.1    Define the following terms:-


i.    Sizeof()
ii.    Malloc()
iii.    Calloc()
iv.    Realloc()
v.    Free()

1.2 Write a program fragment how you use a Malloc() and Free() an a c++ program.

2.    POINTER
2.1 What is pointer ?
2.2 Why you use pointer?
2.3 What is output by the following program segment?







2.4  What is output by the following program segment?







3.    FILE INPUT AND FILE OUTPUT
3.1 Write a program that reads the content of a file(oldfile.dat) as follows and write it into a new file(newfile.dat).


10/02/2013

DCT1083 PROGRAMMING FUNDAMENTLAS : LAB 3 OKT 2013


1. Write a program statement that will do the following to array MyArray shown below:
int MyArray[10];
for(i=0;i<=9;i++)
MyArray[i]=i*2;

i.    Print all elements of array MyArray.

ii.     Print all element of array MyArray in reverse.

iii.    Print the first element.

iv.    Replace the value of third elements with 7.

v.    Copy the value of fifth elements into the first one.

vi.    Find the sum of the first five elements

vii.    Display all even-numbered elements on one line.


2 Write a program that reads ten integers and displays them in the reverse of the order in which they were read..  (Hint: Use loop with an array).

#include
#include
using namespace std;
int main(int argc, char *argv[])
{
         // TODO, add your application code


  system("PAUSE");
        return EXIT_SUCCESS;
}


 

9/30/2013

BCS2233 OOP. Assignment 1

Write an algorithm (either flowchart or pseudocode) and java program for each of the following problem.

1. (Counting positive and negative numbers and computing the average of numbers) Write a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computes the total and average of the input values. Your program ends with the input 0.

2. (Summing a series) Write a program to sum the following series:





3. Write a test program that prompts the user to enter the investment amount (e.g., 1000) and the interest rate (e.g., 9%), and print a table that displays future value for the years from 1 to 30, as shown below:

The amount invested: 1000
Annual interest rate: 9%
Years       Future Value
  1          1093.8
  2          1196.41
...
 29         13467.25
 30         14730.57




9/25/2013

DCT1083 Programming Fundamentals Lab 26 sept 2013


Write function headers for the following functions:


  1. Computing a sales commission, given the sales amount and the commission rate.
  2. Printing the calendar for a month, given the month and year.
  3. Computing a square root.
  4. Testing whether a number is even, and returning true if it is.
  5. Printing a message a specified number of times.
  6. Computing the monthly payment, given the loan amount, number of years, and annual interest rate.


9/23/2013

DCT 1043 COA : Contoh Test 1

Test 1 pelajar 1 IT akan di adakan pada ketetapan berikut:-
*Tarikh : 2/10/2013
*Masa : 8:15pm -9:15pm  (MALAM)
Tempat : Threathre A

* jika tarikah dan masa di atas berlaku pertindihan dengan jadual lain-sila maklumkan pada saya.

Topik dan contoh soalan ada seperti berikut:-

Chapter 1 - Intro

Explain the following terms :-  CPU, memory, input devices, and output devices.
Why computer use binary systems, not the hexadecimal.

What is BUS and what is its function?


Chapter 2 - CPU

The architecture of central processing unit consists of *three main parts. List and briefly explain each of them.

     *Control unit (CU),Arithmetic and Logic unit (ALU),Registers



Chapter 3 - Memory

Differenciate Main Memory and Secondary Memory.Why do computer need both?
Explain memory hierarchy with suitable example
Explain Volatile and Nonvolatile memory in details.
What is cache memory?


Cara download Installer windows 10 dalam format ISO

1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan.  ...