Your SlideShare is downloading. ×
UNIVERSITI TUN HUSSEIN ONN MALAYSIA      FACULTY OF MECHANICAL AND MANUFACTURING ENGINEERING      DTI2143/DAM31303: COMPUT...
4. Open a complier on your PC, find either Turbo C++ or Dev- C++      a. Run (execute) the following program:             ...
Upcoming SlideShare
Loading in...5
×

Dti2143 dam31303

350

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
350
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Dti2143 dam31303"

  1. 1. UNIVERSITI TUN HUSSEIN ONN MALAYSIA FACULTY OF MECHANICAL AND MANUFACTURING ENGINEERING DTI2143/DAM31303: COMPUTER PROGRAMMING LAB EXERCISE 2: Design Recap and Introduction to C - the program1. What are the 6 rules to design pseudo-code?2. Transform pseudo code below into flow chart o Start o Accept first integer, X o Accept second integer value, Y o Compute the multiplication of first integer value and second integer value: result = X*Y o Display result o End3. Convert the flow chart below to pseudo code
  2. 2. 4. Open a complier on your PC, find either Turbo C++ or Dev- C++ a. Run (execute) the following program: #include <stdio.h> void main ( ) { printf(“ SELAMAT DATANG KE KELAS PENGATURCARAAN C”); printf(“n WELCOME TO C PROGRAMMING CLASS”); } b. Add #include<conio.h> after include <stdio.h>, state the difference(s). c. Add getch() before { , state the difference(s). d. Rewrite the program to display the following

×