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

APLab 3

Uploaded by

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

APLab 3

Uploaded by

AhsanRais
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Lab 3: Introduction to C# Console

Application (control statements)


Subject: Advanced Programming
Instructor Ahsan Raees
Student Name
Registration No.
Class

Objective:
The objective of this lab is to provide students with a foundational understanding of the C# control
statements programming language and Console application .This lab aims to build a strong fundamental
knowledge base essential for writing efficient C# programs.

Task 1:
Develop a c# console application to find out whether a given year is a leap year or not.

Solution:
Provide Solution here

Task 2:
Develop a c# console application to read roll no, name and marks of three subjects and calculate the
total, percentage and division.

Solution:
Provide Solution here

Task 3:
Develop a c# console application to determine the eligibility for admission to a professional course
based on the following criteria:

Marks in Maths >=65

Marks in Phy >=55

Marks in Chem>=50

Total in all three subject >=180

or

Total in Math and Subjects >=140


Solution:
Provide Solution here

Task 4:
Develop a c# console application to make such a pattern like a pyramid with an asterisk.

* *

* * *

* * * *

Solution:
Provide Solution here

Task 5:
Develop a c# console application to determine whether a given number is prime or not.

Solution:
Provide Solution here

You might also like