Code Monkey home page Code Monkey logo

eligibility-for-admission's Introduction

Eligibility-for-Admission

Aim:

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

Algorithnm:

Step1:

Start by creating a new class.

Step2:

Initiate the integer variables to assign the marks of Maths, Physics and Chemistry and a string variable to assign the name of the student; read the input from the user.

Step3:

Calculate the first total that sums all the 3 subject marks; and the second total that sums maths and physics marks.

Step4:

Based on the condition given, check whether the student is eligible for the engineering admission.

Step5:

Display the output for the input read from the user.

Step6:

Stop the execution.

Program:

Program developed by : kishore kumar s

Register number : 212221240023

using System;

namespace Expno01
{
    class Eligibility
    {
        static void Main(string[] args)
        {
            string name;
            int math, phy, chem;
            Console.Write("Enter your name:");
            name = Console.ReadLine();
            Console.Write("Enter Maths Mark:");
            math = Convert.ToInt32(Console.ReadLine());
            Console.Write("Enter Physics Mark:");
            phy = Convert.ToInt32(Console.ReadLine());
            Console.Write("Enter Chemistry Mark:");
            chem = Convert.ToInt32(Console.ReadLine());
            int tot1 = math + phy + chem;
            int tot2 = math + phy;
            if (math >= 65 && phy >= 55 && chem >= 50)
            {
                if (tot1 >= 180 || tot2 >= 140)
                {
                    Console.WriteLine(name + " is eligible for admission to an engineering course.");
                }
                else
                {
                    Console.WriteLine(name + " is not eligible for admission to an engineering course.");
                }
            }
            else
            {
                Console.WriteLine(name + " is not eligible for admission to an engineering course.");
            }
            Console.Read();
        }
    }
}

Output:

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

archanasharikalharinarayanan avatar kishore00007 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.