0% found this document useful (0 votes)
55 views1 page

Csc1003 - Programming Fundamentals Lab: School of Computer Science and Engineering FALL SEM 2018-2019

The document provides instructions for an assessment due on August 7th 2018 for a Programming Fundamentals Lab course. It lists 5 programming problems involving decision branching using conditional operators and switch cases - finding the minimum of two numbers, maximum of three numbers, grade calculation based on percentage ranges, checking if a number is odd or even, and printing the day of the week name.
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)
55 views1 page

Csc1003 - Programming Fundamentals Lab: School of Computer Science and Engineering FALL SEM 2018-2019

The document provides instructions for an assessment due on August 7th 2018 for a Programming Fundamentals Lab course. It lists 5 programming problems involving decision branching using conditional operators and switch cases - finding the minimum of two numbers, maximum of three numbers, grade calculation based on percentage ranges, checking if a number is odd or even, and printing the day of the week name.
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/ 1

SCHOOL OF COMPUTER SCIENCE AND ENGINEERING

B.SC – COMPUTER SCIENCE


FALL SEM 2018-2019
CSC1003 – PROGRAMMING FUNDAMENTALS LAB
ASSESMENT 2- DEAD LINE 07-08-2018

DECISION BRANCHING PROGRAMS

1. Write a C program to find the minimum between two numbers using conditional
operator.
2. Write a C program to find the maximum between three numbers.
3. Write a C program to input marks of five subjects’ physics, chemistry, biology,
maths, and computer science. Calculate the percentage and grade according to the
following.
Percentage >= 90%: Grade A
Percentage >= 80%: Grade B
Percentage >= 70%: Grade C
Percentage >= 60%: Grade D
Percentage >= 40%: Grade E
Percentage < 40%: Grade F
4. Write a C program to check whether number is odd or even using switch case.
5. Write a C program to print day of week name using switch case.

You might also like