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

Assignment 3

The document outlines an assignment for the C Programming I course at East West Institute of Technology for the academic year 2024-25. It includes five questions focusing on C programming concepts such as if-else constructs, switch statements, type conversion, and type casting, along with requirements for flowcharts and program demonstrations. The assignment is due on January 28, 2024, and is graded out of a total of 30 marks.

Uploaded by

kuna.padmaja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Assignment 3

The document outlines an assignment for the C Programming I course at East West Institute of Technology for the academic year 2024-25. It includes five questions focusing on C programming concepts such as if-else constructs, switch statements, type conversion, and type casting, along with requirements for flowcharts and program demonstrations. The assignment is due on January 28, 2024, and is graded out of a total of 30 marks.

Uploaded by

kuna.padmaja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

EAST WEST INSTITUTE OF TECHNOOGY

(An Autonomous Institute under VTU)


Assignment– III
Dept. of ISE/AD AcademicYear:2024–25/ODD
Course Code:
Course Title:CProgramming I with Linux Sem: I,
APCS105
Sec:‘IS1,IS2,AD,ME ’
Module: 3 Date: 22/01/2025 Date of submission: 28th Jan 2024
Name of the Course Instructor:K.Padmaja Max Marks: 10
Instructions:Write your answers neatly and legibly.Answer to the point.

Q.No.
Assignment Questions Marks* RBT CO
1 Develop a C program to demonstrate the use of the if-else 6 3 3
construct by applying its syntax and creating a flowchart. Use the
construct to check whether a given integer is positive,negative,or
zero, and display an appropriate message for each condition.

2 Write a C program to display the name of the day based on the day 6 3 3
number (1 for Monday, 2 for Tuesday, ..., 7 for Sunday) using the
switch statement. Include a flowchart to visually represent the
decision-making process. Ensure the program handles invalid day
numbers gracefully by displaying an appropriate message.

3 Explain the functionality of the switch statement and demonstrate 6 2 3


its syntax with an example.

4 Analyze and compare the differences between the if-else construct 6 3 3


and the switch statement, highlighting their appropriate use cases in
decision-making scenarios.

5 a.​ Explain the concepts of type conversion and type 6 3 3


casting in C with examples to illustrate their differences.
b.​Write a C program that meets the following requirements:
i.​Read a variable p of type float.
ii.​Display the size of p in bytes.
iii.​Use type conversion to display the integral part of p.

*This is the actual marks for the question that appears in yourInternalAssessment/SEE.This will
prepare you for your SEE.

Course Instructor​ HOD

You might also like