MCS-011 Problem Solving and Programming Solved Assignment 2018-2019
Course Code : MCS-011 Course Title : Problem Solving and Programming
Assignment Number : MCA(2)/011/Assignment/2018-19
Maximum Marks : 100
Weightage : 25%
Last Date of Submission : 15th October, 2018 (for July, 2018 batch)
15th April, 2019(for January, 2019 batch)
Question 1 : Write an algorithm, draw a flow chart and write its corresponding C program to convert a decimal number to its equivalent hexadecimal number. (10 Marks) Answer-
An algorithm is a finite set of steps defining the solution of a particular problem. An algorithm is expressed in pseudo code – something resembling C language or Pascal, but with some statements in English rather than within the programming language
A sequential solution of any program that written in human language, called algorithm.
Algorithm is first step of the solution process, after the analysis of problem, programmers write the algorithm of that problem.
Initialize Len to zero and Y to Num
While Y is not zero
Save Remainder by Y Mod 16 in array HEXD at index Len
Initialize Y to Y divided 16
for(Initialize I to Len-1 ; Condition I Greater than -1 ; Decrement I )
Download all latest IGNOU Assignment free of cost of MCA, BCA, MBA, BA, B.COM. Here at ignousolvedassignments.com we aim to give proper and right format assignment. Although we dont take responsibility if any damage caused by using our Free Assignments.