php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS201 Introduction to Programming Assignment No.2 Solution Spring Semester 2013
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#2
Idea Solution:


#include <iostream>
#include <cstdlib>
using namespace std;

void DisplayVUID();
void DisplayReverse(char[],int);
void StoreDiagonal();

int main(){
DisplayVUID();
char VUID[12] = {'B','C','1','2','0','4','0','3','4','5','6'};
DisplayReverse(VUID,11);
StoreDiagonal();

system("pause");
cout "\n\n\n";
cout "*****************************************" endl;
cout "* Name: Ali Raza Marchal \t\t*" endl;
cout "* Date: Saturday, May 11, 2013 \t\t*" endl;
cout "* facebook.com/ali.mirchal \t\t*" endl;
cout "* Virtual University BC120403456\t*" endl;
cout "*****************************************" endl;
return 0;
}

void DisplayVUID(){
char VUID[12] = "BC120403456";
cout "My VUID is: ";
for(int i=0; i<12; i++){
cout VUID[i];
}
}
void DisplayReverse(char* VUID, int arraysize){
cout "\nMy VUID in reverse order: ";
for(int i = arraysize - 1; i>=0; i--){
cout VUID[i];
}
cout endl;
}
void StoreDiagonal(){
cout "Digits of my VUID are stored in the diagonal of the digionalMat"
endl;
int digionalMat[9][9];
for(int row = 0; row < 9; row++){
for(int col = 0; col < 9; col++){
digionalMat[row][col] = 0;
}
}
digionalMat[0][0]= 1;
digionalMat[1][1]= 2;
digionalMat[2][2]= 0;
digionalMat[3][3]= 4;
digionalMat[4][4]= 0;
digionalMat[5][5]= 3;
digionalMat[6][6]= 4;
digionalMat[7][7]= 5;
digionalMat[8][8]= 6;
for(int row = 0; row < 9; row++){
for(int col = 0; col < 9; col++){
cout digionalMat[row][col];
cout " ";
}
cout endl;
}
}

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Messages In This Thread
CS201 Introduction to Programming Assignment No.2 Solution Spring Semester 2013 - by Vuhelper - 05-14-2013, 04:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CS508- Modern Programming Languages Assignment No. 03 Solution January 2016 Vuhelper 0 4,632 01-20-2016, 05:43 PM
Last Post: Vuhelper
  CS401 assignment no 3 Solution 20th January 2016 Vuhelper 0 10,324 01-20-2016, 05:15 PM
Last Post: Vuhelper
  Human Computer Interaction (CS408) Assignment no 3 20th January 2016 Vuhelper 0 1,136 01-20-2016, 05:13 PM
Last Post: Vuhelper
  CS101 Introduction to Computing Assignment No.2 Solution Spring Semester 2013 Vuhelper 4 12,213 12-13-2014, 01:23 AM
Last Post: Vuhelper
  ENG101 English Comprehension Assignment No.1 Solution Spring Semester 2013 Vuhelper 3 4,698 11-25-2014, 03:35 PM
Last Post: Vuhelper
  CS201 Introduction to Programming Assignment No. 3 Solution Spring Semester June 2013 Vuhelper 1 4,147 06-24-2013, 10:39 PM
Last Post: Vuhelper
  MGT101 Financial Accounting Assignment 2 Solution Spring Semester June 2013 Vuhelper 0 3,134 06-15-2013, 11:57 PM
Last Post: Vuhelper
  ISL201 Islamic Studies Assignment No.1 Solution Spring Semester 2013 Vuhelper 0 4,626 05-17-2013, 09:33 PM
Last Post: Vuhelper
  ENG201 Assignment No.2 Solution Spring Semester 2013 Vuhelper 1 5,817 05-16-2013, 04:41 PM
Last Post: Vuhelper
  ENG001 Elementary English Assignment No. 2 Solution Spring Semester 2013 Vuhelper 0 4,060 05-14-2013, 10:20 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 2 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support