0% found this document useful (0 votes)
6 views2 pages

01 Assignment

This document outlines the curriculum for a C# programming course, detailing various programming tasks and exercises. It includes topics such as basic programming concepts, control flow, and selection statements, with specific tasks for students to complete. The deadline for the course is set for March 15, 2025.
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)
6 views2 pages

01 Assignment

This document outlines the curriculum for a C# programming course, detailing various programming tasks and exercises. It includes topics such as basic programming concepts, control flow, and selection statements, with specific tasks for students to complete. The deadline for the course is set for March 15, 2025.
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

1

Introduction to C# Programming

Course Name Programming Language 2


Course No Programming Language
Lab No 1,2,3
Chapter C#
Deadline 15/03/2025
01 Basics Program
1. Display a pattern using multiple print statements.
*
***
*****
2. Create variables of different data types and print their values.
3. Write a program that declares and initializes variables of different data
types, including integer, float, double, character, and Boolean.
4. Write a program that takes two integer numbers as input and calculates
their sum , sub, mul and div .
5. Write a program that takes two floating-point numbers as input and
calculates their average
6. Write a program that takes the radius of a circle as input and calculates
its circumference and area.
Where area = Π r2 and circumference = 2 Π r
7. Write a program that takes the temperature in Celsius as input and
converts it to Fahrenheit. Where F = (C * 9 / 5) + 32
8. Write a program that takes the length and width of a rectangle as input
and calculates its perimeter and area.
9. Write a program that takes the marks of three subjects as input and
calculates the average percentage.

βelal A. Hamed C# Programming Languages


2
Introduction to C# Programming

02 Control Flow - Selection


1. Write a program that checks whether a given number is even or odd.
2. Write a program that takes two numbers as input and determines
which is the greater number.
3. Write a program that takes a grade as input and assigns a letter grade
based on the following criteria:
A: 90-100 B: 80-89 C: 70-79 D: 60-69 F: 0-59

4. Write a program that takes a day of the week as input and prints a
corresponding message based on the day (once using if and other
using switch statements).
5. Write a program that checks whether a given number is positive,
negative, or zero.
6. Write a program that takes the age of a person as input and determines
whether they are eligible to vote.
7. Write a program that takes a character as input and determines
whether it is a vowel, consonant, or special character.
8. Write a program that takes a month as input and prints the
corresponding number of days in that month.

βelal A. Hamed C# Programming Languages

You might also like