CLICK HERE FOR VARIOUS NEW JOBS 
CLICK HERE FOR VARIOUS EDUCATIONAL NEWS 
CLICK HERE FOR NEW SCHOLARSHIPS 
CLICK HERE FOR ADMISSION NOTICES 
Click And Follow On Google+ To Get Updates
Please Wait 10 Seconds... OR You CanSkip

ADMISSION NOTICES
Scholarships

Scholarship-300x291

BUDGET 2014-15
budget_2014-2015
New Date Sheets
VU SOLVED ASSIGNMENTS
Recent Posts

Posts Tagged ‘Assignment No. 02 Semester: Spring 2013 CS201: Introduction to Programming’

Assignment No. 02 Semester: Spring 2013 CS201: Introduction to Programming

Assignment No. 02 Semester: Spring 2013 CS201: Introduction To Programming

 g

Assignment No. 02
Semester: Spring 2013

CS201: Introduction to Programming

Total Marks: 20

 

Due Date:15/05/2013

 Instructions:

Please read the following instructions carefully before submitting assignment. It should be clear that your assignment will not get any credit if:

 

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • Assignment is copied(partial or full) from any source (websites, forums, students, etc)

 

Note: You have to upload only .cpp file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks. For example, if you submit code in .doc (Word document) or .txt files or .exe file, no reward will be given in any case.

 

 

Objective:

 

The objective of this assignment is to provide hands on experience of:

 

  • Basic concepts of C/C++ language and Programming
  • Dealing with Data types
  • For Loop
  • Expressions
  • Character Array
  • Functions
  • Multidimensional Integer Array

 

Guidelines:

 

  • Code should be properly indented and well commented.
  • Follow C/C++ rules while writing variable names, function names etc
  • Use only dev-C++ for this assignment.

 

 

 

 

 

 

 

 

 

 

 

 

 

Assignment  

 

Problem Statement:      

Write a C++ program that prints your VUID by using character array, then prints your VUID in reverse order by using character array and finally stores and displays the digits of your VUID at the diagonal of 9 x 9 Matrix by using two dimensional integer array.

You are required to perform these tasks with the help of following three functions:

  • DisplayVUID()
  • DisplayReverse(char [])
  • StoreDiagonal()

 

Detailed Description:

 

Description of above functions are as follows:

 

DisplayVUID()

This function stores your VUID in character array (for example bc020455055) and simply prints it.

 

DisplayReverse(char [])

This function takes the character array as parameter having your VUID and displays it in reverse order.

 

StoreDiagonal()

This function stores the digits of your VUID at the diagonal of 9 x 9 matrix, for example VUID i.e. bc020455055   contains the digits 020455055, so you have to store these digits in the diagonal of the 9 x 9 matrix as follows:

 

 

 

And finally prints the whole matrix.

 

Following is the sample run of your program:

 

 

Assignment No. 02 Semester: Spring 2013 CS201: Introduction To Programming

Assignment No. 02 Semester: Spring 2013 CS201: Introduction to Programming

Assignment No. 02 Semester: Spring 2013 CS201: Introduction To Programming

 g

Assignment No. 02
Semester: Spring 2013

CS201: Introduction to Programming

Total Marks: 20

 

Due Date:15/05/2013

 

Instructions:

Please read the following instructions carefully before submitting assignment. It should be clear that your assignment will not get any credit if:

 

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • Assignment is copied(partial or full) from any source (websites, forums, students, etc)

 

Note: You have to upload only .cpp file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks. For example, if you submit code in .doc (Word document) or .txt files or .exe file, no reward will be given in any case.

 

 

Objective:

 

The objective of this assignment is to provide hands on experience of:

 

  • Basic concepts of C/C++ language and Programming
  • Dealing with Data types
  • For Loop
  • Expressions
  • Character Array
  • Functions
  • Multidimensional Integer Array

 

Guidelines:

 

  • Code should be properly indented and well commented.
  • Follow C/C++ rules while writing variable names, function names etc
  • Use only dev-C++ for this assignment.

 

 

 

 

 

 

 

 

 

 

 

 

 

Assignment  

 

Problem Statement:     

 

Write a C++ program that prints your VUID by using character array, then prints your VUID in reverse order by using character array and finally stores and displays the digits of your VUID at the diagonal of 9 x 9 Matrix by using two dimensional integer array.

You are required to perform these tasks with the help of following three functions:

  • DisplayVUID()
  • DisplayReverse(char [])
  • StoreDiagonal()

 

Detailed Description:

 

Description of above functions are as follows:

 

DisplayVUID()

This function stores your VUID in character array (for example bc020455055) and simply prints it.

 

DisplayReverse(char [])

This function takes the character array as parameter having your VUID and displays it in reverse order.

 

StoreDiagonal()

This function stores the digits of your VUID at the diagonal of 9 x 9 matrix, for example VUID i.e. bc020455055   contains the digits 020455055, so you have to store these digits in the diagonal of the 9 x 9 matrix as follows:

 

 

 

And finally prints the whole matrix.

 

Following is the sample run of your program:

 

 

Assignment No. 02 Semester: Spring 2013 CS201: Introduction To Programming

ALL NEW RESULTS
Educational News

Updated Educational News

Categories
POSTS BY DATE
December 2016
M T W T F S S
« Sep    
 1234
567891011
12131415161718
19202122232425
262728293031