Programme Code : MCA
Course Code : mcs-011
| More

Year : 2012 Views: 978 Submitted By : Hiral Pandya On 16th September, 2012

Do you have solution for this Question. If yes    I aslo want solution.



Course Code : MCS-011

Course Title : Problem Solving and Programming

Assignment Number : MCA(1)/011/Assign/12

Maximum Marks : 100

Weightage : 25%

Last Dates for Submission : 15th October, 2012 (For July 2012 Session)

15th April, 2013 (For January 2013 Session)

There are five questions in this assignment, which carries 80 marks. Rest 20 marks are for viva-voce. Answer all the questions. You may use illustrations and diagrams to enhance the explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentation.

Question 1: Write a program to print the following pattern:

a) 1 b) 1

1 2 2 2

1 2 3 3 3 3

1 2 3 4 4 4 4 4

1 2 3 4 5 5 5 5 5 5 (20 Marks)

Question 2: Declare two arrays A and B, find

(i) A intersection B and (ii) A union B. (10 Marks)

Question 3: Write a program to crypt its input according to a specified transformation scheme. The transformation scheme will consist of two strings: a string of characters and then a string of replacement characters. The idea is that your program replaces every instance of the ith character in the initial string with the (i+2) character (of English alphabets) in the replacement string. When no substitution is defined for a character, the program just passes it through to the output unchanged. Blank spaces and the other symbols remains the same. The program should inform the user of any errors in the transformation scheme. Your program should display the phrase before and after the substitutions have been made.


Original String: I know C programming.

String after the transformation: K mpqy E rtqitcookpi. (20 Marks)

Question 4: Write an interactive program called “DISTANCE CONVERTER” that accepts the distance in millimetres / feet /

miles / yards / kilometres and displays its equivalent in metres. (20 Marks)

Question 5: Write an interactive program to generate progress reports

for the students of class XII (Science group).

Assumptions can be made wherever necessary.

No Answer Found

Q Declare two arrays A and B, find (i) A intersection B and (ii) A union B.

sushant sadashiv belekar    12th October, 2012 Hits: 1544