famouslastwords

Friday, April 17, 2009

Tertunda yang ditampal;

17/04/2009 23:41:00 PM

Tertunda yang ditampal;

Asaimen CSC125 da shiap pon, tertunda yang ditampal khembali, hee, perggh, lege gile, ahhha, esok bole gih anta da, arap-arap carry marks dapat disilamat-kan, heheh, :)

Buteran asaimen sepeti di bawah:

Name: Annur Binti Razali
Matrix number: 2008******
Subject: CSC125
Lecturer's name: Puan Sharifah Binti Aliman

quiz 4, page 295, question 21;

What is the output of the following C++ program statement?
Assume all variables are properly declared.

for (j=0; j<8; j++)
{
cout<
if (j!=7)
cout<<(j+1)*25-1<
else
cout<<(j+1)*25<}

Answer:

0 - 24
25 - 49
50 - 74
75 - 99
100 - 124
125 - 149
150 - 174
175 - 200

quiz 4, page 295, question 22;

The following program has more than five mistakes that prevent it from compiling
and/or running. Correct all such mistakes.

Answer:

#include
#include

using namespace std;
const int N = 2137;

int main()
{
int a, b, c, d;

a = 3;
b = 5;
c = c + d;
N = a + N;

for (i = 3; i <= N; i++)
{
cout << setw(5) << i;
i = i + 1;
}

return o;
}

p/s: asaimen sinang gile, asal aku tak buwat hah?

By: [thatreservedgirl]

No comments: