Thursday, December 6, 2012

Computer C++

HOME WORK CLASS- XI SUBJECT COMPUTR SCIENCE 1.
Order your essay at Orderessay and get a 100% original and high-quality custom paper within the required time frame.
What will be the siding for the followers given program : i> Void main() { Int a[]={2,3,4,5,7,8,9,10}; Int I,s=3; for (i=0;i<7;i++) { S+=a[i]+I; } Cout<< shopping center=<<s; } ii> Void main() { Int a[]={2,3,4,5,7,8,9,10}; Int b[]={3,2,1,5,7,8,9,12,23}; Int I,s=0; for (i=0;i<7;i++) { S+=a[i]+b[i]; } Cout<< rundown=<<s; } iii> misdirect main() { Int a[3][4]={2,3,4,5,6,7,1,2,7,8,9,5}; Int I,j,s=0; for (i=0;i<3;i++) { for(j=0;j<4;j++) { If(i+j%2=0) S+=a[i][j]; } } Cout<<sum*<<s; } I v> Void main() { woman s[]=ComputerScience; Int I; for(i=0;s[i]!=\0;i++) { If(i%2=0) S[i]=s[i+2]; else If(isupper([si])) S[i]=s[i]+3; else Is(islower(s[i])) S[i]=s[i-1]; } Puts(s); } 2. Writ a c++ equivalent statement for the following given statement: i> To name an array of size[10] with name SUM ii> To create an array of size 4x5 with name B iii> To initialise an array b with values 2,3,4,5,7,8 iv> To initialize an array b[2][3] with values 5 ,6,7,8,9,2 v> To initialize the character array mental test with value ANNUAL EXAM#2012 3. Find the syntax error from the given program if both and correct them #includ<iostream.h> Void main() { Int a[3](4)=(2,3,4,5,6,6,7,8,9,4,3,2); Int I,s; For(i=0;i<3;i++) { For(j=0;j<4;j++) { S=*a[i]j]; } Cout<<sum<<s; } If you want to get a full essay, order it on our website: Orderessay

Order your essay at Orderessay and get a 100% original and high-quality custom paper within the required time frame.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.