0% found this document useful (0 votes)
58 views

3110003AssignmentComputer Science & EngineeringAssignment-01

This document outlines 5 assignments for a Programming for Problem Solving course, each focusing on different concepts of the C programming language. The assignments cover topics such as data types, operators, control structures, functions, arrays, pointers, structures, file handling and more. Students are asked to write programs, draw flowcharts, explain concepts, and demonstrate their understanding of programming fundamentals through a series of questions.

Uploaded by

REENIE
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

3110003AssignmentComputer Science & EngineeringAssignment-01

This document outlines 5 assignments for a Programming for Problem Solving course, each focusing on different concepts of the C programming language. The assignments cover topics such as data types, operators, control structures, functions, arrays, pointers, structures, file handling and more. Students are asked to write programs, draw flowcharts, explain concepts, and demonstrate their understanding of programming fundamentals through a series of questions.

Uploaded by

REENIE
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

GUJARAT TECHNOLOGICAL UNIVERSITY

Affiliated
S. N. PATEL INSTITUTE OF TECHNOLOGY & RESEARCH
CENTRE, UMRAKH

Subject Name : PROGRAMMING FOR PROBLEM SOLVING


Subject Code : 3110003
Branch : COMPUTER SCIENCE AND ENGINEERING
Semester : 2ND

ASSIGNMENT 1 [CO 1]

Q.1. What is Software and Hardware? Explain different types of Software.


Q.2. Explain different symbols used in flowchart.
Q.3. Draw a flowchart to find the largest of the given three numbers – A ,B and C.
Q.4. Write an algorithm to find area of a triangle.

ASSIGNMENT 2 [CO 2]

Q.1. Discuss about various operators used in C language.


Q.2. Explain basic data types of C language.
Write a C-program that reads two numbers from key board and gives their addition, subtraction,
Q.3.
multiplication, division and modulo.

Write a C- program to calculate simple interest (i = (p*r*n)/100 )


i = Simple interest
Q.4.
p = Principal amount
r = Rate of interest
n = Number of years
ASSIGNMENT 3 [CO 3]

Q.1. Write a C-program to find the largest of the three nos. using nested-if-else statement.
Q.2. Write difference between Entry-Controlled Loop and Exit-Controlled Loop.
Q.3. Explain about switch statement with example.
Q.4. Write a program to evaluate the series 1^2+2^2+3^2+……+n^2

Write a C-program to print following patterns


1
Q.5. 12
123
1234
12345

ASSIGNMENT 4 [CO 4]

What is function? Explain the function definition, function prototype and function call with
Q.1.
example.
Q.2. List out the categories of functions of C. Explain any one category with example.
Q.3. Write a C-program using function to swap 2 numbers.
Q.4. Write a C-program to find factorial of a given number using recursion.

ASSIGNMENT 5 [CO 5]

What is array? Discuss declaration and initialization of one-dimensional and two-dimensional


Q.1.
arrays with example.
Q.2. What is a pointer? How is a pointer initialized? Describe pointer to array with example.
Q.3. What is string? Explain various string-handling functions available in C-language.
What is structure? How to access the elements of structure? Write difference between Structure
Q.4.
and Union.
Q.5. Write C program to copy content of one file into new text file.

You might also like