Coder Social home page Coder Social logo

eligibility-for-admission's Introduction

EX-NO-1 Eligibility-for-Admission

Aim:

To write C# program to find the eligibility for admission to an engineering course.

Algorithnm:

Step 1:

Create a new Class named admission.

Step 2:

Create variable of respective data types to store marks & name.

Step 3:

Calculate the total and store it.

Step 4:

The Conditions for admission are:

 * Marks in maths >= 65 & Marks in physics >=55 & Marks in chemistry >=50
 * Total marks in all three subjects >= 180 or total in maths and physics >= 140

Step 5:

Using Nested if check whether the person is eligible or not for admission based on above conditions.

Step 6:

Print the status for admission.

Step 7:

End of the Program.

Program:

Developed by: Mohan Raj
Reg No: 212221230065
using System;
namespace Students
{
    class program
    {
        static void Main(string[] args)
        {
            string name;
            Console.WriteLine("Enter the student name:");
            name = Console.ReadLine();
            int m, p, c, tot1, tot2;
            Console.Write("Enter math mark:");
            m = Convert.ToInt32(Console.ReadLine());
            Console.Write("Enter physics mark:");
            p = Convert.ToInt32(Console.ReadLine());
            Console.Write("Enter chemistry mark:");
            c = Convert.ToInt32(Console.ReadLine());
            tot1 = m + p + c;
            tot2 = m + p;

            if (m >= 65 && p >= 55 && c >= 50)
            {
                if (tot1 >= 108 || tot2 >= 140)
                {
                    Console.WriteLine(name + " is eligible for engineering admission");
                }
                else
                {
                    Console.WriteLine(name + " is NOT eligible for engineering admission");
                }
            }
            else
            {
                Console.WriteLine(name + "is NOT eligible for engineering admission");
            }

        }
    }


}

Output:

r1 )

Result:

Thus, a C# program to check the eligibility of a student on engineering admission has been executed successfully.

eligibility-for-admission's People

Contributors

mohanraj2004 avatar archanasharikalharinarayanan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.