Header Ads

MCS 011 Solved Assignment 2021-22

 

MCS 011 Solved Assignment 2021-22

Problem Solving and Programming

MCS 011 Solved Assignment 2021-22 : All assignments are in PDF format which would be send on email/WhatsApp (9958676204) just after payment.

Course Code : MCS 011

Course Title : Problem Solving and Programming

Assignment Number : PGDCA(I)/011/Assign/2021-22

Maximum Marks : 100

Weightage : 25%

There are seven 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.

Q1: Draw a flow chart and write an interactive program which prompts the user with the following options on the opening menu:

1) Add two integers

2) Compare two integers for the larger

3) Test an integer for odd or even

4) Quit

Enter your choice:

If an “1” is entered, prompt for the input of two integers and display their sum. If “2” is entered, prompt for two integers and display the larger of the two. If “3” is entered, prompt the user for one integer and print out if it is odd or even. If “4” is entered, exit the program. If the user enters any letters or numbers other than the choice, redisplay the prompt. All output should go to the terminal and all input should come from the keyboard.

20

Q2: Write a program with three functions besides main(). The first function will have two arguments - a character array and a short integer which holds the size of the array. With this function, initialize the elements of the array to the characters of the alphabet, beginning with the letter entered at the keyboard and ending with lower case “z”. Thus, if the character entered is an 'a', then the array will have 26 characters (the whole alphabet) stored into it. The second function will have three arguments - the character array which was initialized by the first function, the number of characters actually stored into the array, and an integer array (short) which is the same size as the maximum size of the character array. Set each element of the short integer array equal to the decimal value of the alphabetic characters in the character array. In the third function, print the characters in the character array to the standard output using the putchar(), built-in function, along with the decimal value of that character using the fprintf() function (use stdout for the fp argument). The output should look like:

a 97

b 98

c 99

10

Q3: Write an interactive program using strings which:

a) gets a filename from the standard input (keyboard) or a file

b) gets a mode (read or write) from the same source and,

c) copies the contents of the input file to:

(i) the standard output if the input is from a file or

(ii) to the file specified in a) if the mode from b) is write

10

If the file won't open, direct the input/output to the corresponding standard file (stdin/stdout).

mcs 012 solved assignment 2021 2022; mcs-012 solved assignment 2019-20; eco 02 solved assignment 2021-22; mcs 012 solved assignment 2020-21; mcs 015 solved assignment 2021; mcs-011 solved question paper; mcs-051 solved assignment 2020-21; assignment guru 2021-22

Q4: Write a program which has 7 functions. The functions should be: main() this calls the other 6 functions namely:

fget_long() a function which returns a long data type from a file

fget_short() a function which returns a short integer variable from a file

fget_float() a function which returns a floating point variable from a file

fprt_long() a function which prints its single, long argument into a file

fprt_short() a function which prints its single, short argument into a file

fprt_float() a function which prints its single, floating point argument into a file

You should use scanf() to get the values of the variables from the input (the keyboard) and printf() to print the values to the terminal. Pay attention to using the correct format for each of the data types. If you have a compiler that only knows double, use double in place of float - or use it anyway if you want.

10

Q5: Modify question 5 to use strings input from the keyboard for the input and output file names. The program should prompt for an input filename and an output filename. These names should be stored in arrays with a NULL terminating character and the array names used as arguments to the fopen() function in place of the filename constants (like "a2.c" and "a2out.c") used in question 5.

Also prompt for and input the modes ("r" or "w") using the same string function. Remember that, even though the 'r' and 'w' are single characters, the mode is a string with a NULL at the end.

10

Q6: Write an interactive C program which illustrates the following concepts:

(i) Function with no arguments and no return value.

(ii) Function with arguments and no return value.

(iii) Function with arguments and with return value.

10

Q7: Mention the type of applications which can be developed using C language. Also, list the latest C compilers that are available in the market by giving the details like the name of the compiler, version, vendor’s name, DOS based /WINDOWS based / Others, year of release, etc.

10

Related Links :

MPC 054 Solved Assignment 2021-22

BWEE 006 Solved Assignment 2021-22

MPC 053 Solved Assignment 2021-22

MS 03 Solved Assignment 2021-22

MCS 011 Solved Assignment 2021-22 : All assignments are in PDF format which would be send on email/WhatsApp (9958676204) just after payment.

POST GRADUATE DIPLOMA IN AUDIO PROGRAMME PRODUCTION P.G. Diploma Programmes (PGDCA) ASSIGNMENTS

Dear Learner,

You have to submit one assignment in each course, i.e. MCS 011, MCS 011 and MCS 014. All these are Tutor Marked Assignments (TMAs). Before attempting the assignments, please read the instructions provided in the Programme Guide carefully.

Kindly note, you have to submit these assignments to the Coordinator of your Study Centre within the stipulated time for being eligible to appear in the term-end examination. You must mention your Enrolment Number, Name, Address, Assignment Code and Study Centre Code on the first page of the assignment. You must obtain a receipt from the Study Centre for the assignments submitted and retain it. Keep photocopies of the assignments with you.

After evaluation, the assignments have to be returned to you by the Study Centre. Please insist on this and keep a record with you. The marks obtained by you will be sent by the Study Centre to the Student Evaluation Division at IGNOU, New Delhi.

Guidelines for Doing Assignments

There are five questions in each assignment, all carry equal marks. Attempt all the questions in not more than 500 words (each). You will find it useful to keep the following points in mind:

Planning: Read the assignments carefully. Go through the units on which they are based, make some points regarding each question and then rearrange them in a logical order

Organization and Presentation: Be analytical in your selection of the information for your answer. Give adequate attention to the introduction and the conclusion. Make sure that your answer is logical and coherent; has a proper flow of information.

For IGNOU Solved Assignment PDF & Hand Written

Subscribe YOUTUBE : ASSIGNMENT SOLUTION

WhatsApp Contact : 9958676204

No comments

Powered by Blogger.