[go: up one dir, main page]

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

PROGRAMS On CONDITIONAL STATEMENTS

The document outlines a series of programming tasks focused on conditional statements. These tasks include grade determination based on percentage, leap year checking, day name display based on number input, city and monument mapping, three-digit number validation, smallest number identification, vowel checking, triangle type classification, discount calculation based on marked price, and attendance percentage evaluation for exam eligibility. Each task is designed to reinforce understanding of conditional logic in programming.

Uploaded by

sasipreetham2201
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)
7 views1 page

PROGRAMS On CONDITIONAL STATEMENTS

The document outlines a series of programming tasks focused on conditional statements. These tasks include grade determination based on percentage, leap year checking, day name display based on number input, city and monument mapping, three-digit number validation, smallest number identification, vowel checking, triangle type classification, discount calculation based on marked price, and attendance percentage evaluation for exam eligibility. Each task is designed to reinforce understanding of conditional logic in programming.

Uploaded by

sasipreetham2201
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

PROGRAMS on CONDITIONAL STATEMENTS

1. Write a program to accept percentage from the user and display the grade according to the following
criteria.

Marks Grade
>90 A
>80 and <=90 B
>=60 and <=80 C
Below 60 D
2. Write a program to check whether an year is leap year or not.
3. Write a program to accept a number from 1 to 7 and display the name of the day like 1 for Monday, 2
for Tuesday and so on.
4. Write a program to Accept any city from the user and display monument of that city.
City Monument
Hyderabad Charminar
Agra Taj Mahal
Delhi Red Fort
Jaipur Jaipur Fort
Mumbai Gateway of India
5. Write a program to check whether the given number is three digit number or not.
6. Write a program to find the smallest number out of two numbers accepted from user.
7. Write a program to check the given character is vowel or not.
8. Write a program to Accept three sides of a Triangle and check whether it is an Equilateral, Isosceles or
Scalene Triangle.
Note:
a. An Equilateral triangle is a triangle in which all three sides are equal.
b. An Isosceles triangle is a triangle that has three unequal sides.
c. A Scalene triangle is a triangle with (at least) two equal sides.
9. Write a program to Accept the marked price from the user and calculate the Net Amount as (Marked
Price – Discount) to pay according to following criteria.
Marked Price Discount
>10000 20%
>700 and <= 10000 15%
<=7000 10%

10. Write a program to Accept the following from user and calculate the percentage of class attended.
a. Total number of working days
b. Total number of days for absent
After calculating percentage show that, if the percentage is less than 75, than the student will not
be able to allow to write the exams.

You might also like