Sale!

MCS-011 Problem Solving and Programming Solved Assignment 2019-20

(1 customer review)

50.00 0.00

Course Code : MCS-011
Course Title : Problem Solving and Programming
Assignment Number (Code) : BCA(2)/011/Assignment/2019-20
Last Date of Submission : 15th October 2019 (for July 2019 session)
15th April 2020 (for January 2020 session)

Q1. Write the following functions that:
a) Request the user for two integers and outputs them and their sum.
b) Request the user for two integers and outputs their remainder after division.
c) Request the user for two floats and outputs their product.
d) Request the user for a word and prints it twice on the same row.

Write a C (main) program to provide the above functions as options to the user using
switch statement and performs the functions accordingly.

Q2. Write an algorithm, draw a corresponding flowchart and write an interactive program to convert a binary number to its decimal equivalent.

Q3. Write the following functions that:
a) Request the user to input a 5 digit number and reverse the given number and print it.
b) Request the user to input two floats and outputs the largest of the inputs.
c) Request the user to input an integer and, if the number is divisible by two, divides it by
two, otherwise multiplies it by three and output the result.
d) Request the user for three integers and output whether any of them are equal. Use only
one if-else-statement

Write a C (main) program to provide the above functions as options to the user using
switch statement and perform the functions accordingly.

Q4. Write a program which reads characters from a string and calculates the number of
vowels in it. It should print the string and the number of vowels in it.

Q5. Following is the Taylor-series expansion for sin(x):
sin(x) = x − x3
/3! + x5
/5! − x7 /7! + …..
Write a program that reads a value of x and calculates sin(x) using the first 10 terms only and prints out the result.

Q6. Using structures, write an interactive C program to generate Grade Card for BCA first
semester courses for 20 students of your study centre.
Note: Follow the evaluation criteria given in your programme guide.

Q7. Write a C program:
(a) To generate 10 random numbers between -1.5 and 1.5 and writes them in a file
ran.dat.

(b) To read the data from the file ran.dat (created above) and computes the average of the
data. It also finds the number of data above the average value.

1 review for MCS-011 Problem Solving and Programming Solved Assignment 2019-20

  1. RANCHO

    good

Add a review

Your email address will not be published. Required fields are marked *