Saturday 7 March 2015

IGNOU MCA MCS-011 Problem Solving and Programming SOLVED ASSIGNMENTS 2014-2015

SOLVED ASSIGNMENTS FOR 1st SemesteMCS-011 2014-2015 Problem Solving and Programming 

Ans: Comming soon. Now follow - How to write Best ASSIGNMENTS / ANSWERS by Yourself

Q.1 Write an algorithm, draw a corresponding flowchart and write an interactive C program to prompt the user to input 3 integer values and print these values in forward and reversed order, as shown below.
Sample Output: Please enter your 3 numbers: 21 35 66 Your numbers forward: 21 35 66 Your numbers reversed: 66 35 21

Q.2 Write a C program to add two fractions and display the resultant fraction. The program should prompt the user to input Fraction-One and Fraction-Two. The numerator and denominator of each fraction‟s are input separately by space.

Q.3 Write an interactive C program to calculate the total and average of scores of a selected student. The program should prompt the student to input the stu_id. This stu_id is checked against the stu-ids’ and make sure it really exists. Calculate the total and average, if the scores in assignemnt1 (out of 10 marks), assignment2 (out of 10 marks), mid-term score (out of 30 marks), and final score (out of 50 marks) are given.

Q.4 Write an interactive C program to swap the values of two given variables, using pointers.

Q.5 Write an interactive program called “DISTANCE CONVERTER” that accepts the distance/length in centimetres / kilometres /miles and displays its equivalent in metres.

Q.6 Write an interactive C program to display a table that represents a Pascal triangle of any size.

Hint: In Pascal triangle, the first and the second rows are set to 1. Each element of the triangle (from the third row downward) is the sum of the element directly above it and the element to the left of the element directly above it. See the below given example Pascal Triangle of size=5:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1



No comments:

Post a Comment