9/25/2012

Programming 1 : Assignment 2


PART A
1. Fill in the third column in the following tables:
expression1
expression2
expression1 || expression2
false
false

false
true

true
false

true
true


expression1
expression2
expression1 && expression2
false
false

false
true

true
false

true
true


 
PART B
1. Write a program to output even numbers 1 to 20 using three types of loop statement (while, do-while and for) in three seperate program.


2. Write a program that input a grade. If the grade is less than 0 or greater than 100, your program should print the appropriate message informing the user that an invalid grade has been entered.


2.1               PSEUDOCODE




2.2              FLOWCHART

 

2.3         C++ PROGRAM


 
3         Write a program that input ten (10) integers. Print out the sum of those integers.

3.1               PSEUDOCODE




3.2               FLOWCHART



 


3.3         C++ PROGRAM





Due date : 9 / 10 /2012

No comments:

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