Intra University Programming Contest 2011

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Intra University Programming Contest ‘2011

Organized by
Department of Computer Science &
Engineering
IUBAT—International University of Business
Agriculture & Technology

15th January, 2011


Contest Rules

These rules and procedures may be modified and/or extended right up to the time of the
competition.

 You have to solve each and every problem.


 There is a share folder is available. You have to submit your project on that
folder.
 You may use hard-copy (paper or book) reference material but not soft-copy
(electronic) reference material. So no disks or CDs are permitted, for
example.
 No calculators, audio devices or video devices are permitted. The Windows
calculator accessory may be used if a calculator is required for any reason.
 No communication is permitted between teams or between teams and
teachers/coaches, once the competition has started. Also, students are not
permitted access to outside resources via a web browser or e-mail during the
competition.
 Solutions are submitted electronically, and to be accepted a submitted
program must produce the right output values in the correct format, for each
of the sample input data files. Program code itself is not read and not
evaluated in any way. Input test data files used by the judges may (and
generally will) include one or more data files that the teams have not seen.
 A solution which is not accepted as correct will be rejected.
 The winner is determined by most problems solved, with ties broken by total
time taken.
 And the contestant will not get any extra paper to perform their rough.

Problem A-Mirror Pyramid


Description
A mirror image is a reflected duplication that appears identical but in reverse. On this program one
pyramid will be the mirror image of another one. The pyramids will construct with numbers. This number
will be given by the user. After giving this number; on the output you have to draw two pyramids those
are mirror reflection of each other.

Input
The program will ask for any number. Suppose you have given 5 as that number. Then it will show the
desired output.

Output
1. Enter One Number: 5
The output of given 5 will be:

2. Enter One Number: 6


The output of given 6 will be:
Problem B-Palindrome
Description
A palindrome is a word, phrase, number or other sequence of units that can be read the same way in either
direction. Some examples of common palindromic words and numbers: civic, radar, level, rotor, 55455,
787, 1698961. So, you have to write a program that will able to find out whether the given number is
palindrome or not.

Input
On input user will allow giving an integer number. After getting that number your program will show us
whether the given number is palindrome or not.

Output

1. Please Enter One Number: 5688


The output will be:
Sorry, the number is not palindrome.

2. Please Enter One Number: 5885


The output will be:
The number is palindrome
Problem C-Matrix Multiplication

Description

In mathematics, a matrix is a rectangular array of numbers, such as

An item in a matrix is called an entry or an element. The example has entries 1, 9, 13, 20, 55, and 6.
Entries are often denoted by a variable with two subscripts, as shown bellow. Thus in the matrix above,
a2, 1 = 20.
Matrices of the same size can be added and subtracted entry wise and matrices of
compatible sizes can be multiplied.

m X n matrix
You have to write a program that will able to multiply two matrix. The first one will be 2 X 3 and second
one will be 3 X 2 matrixes.

Input
User will give the elements of the two matrixes. Then your program will show the product or
multiplication result of given matrixes.

Output Result

1 2 3 4 5 1*4+2*3+3*1 1*5+2*2+3*3
X
2 4 3 3 2 2*4+4*3+3*1 2*5+4*2+3*3

1 3 = 13 18

23 27

You might also like