Pages

Showing posts with label Calculater calculate School /Coolege persentage%. Show all posts
Showing posts with label Calculater calculate School /Coolege persentage%. Show all posts

Write A program that take input university courses and crdth hour and calculate Fee Chalan....

INPUT:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FEE_STRUCTURE
{
    class Program
    {
        static void Main(string[] args)
        {
            double crdhr, crdhr1, crdhr2, crdhr3, crdhr4, crdhr5, crdhr6;
            string sub1, sub2, sub3, sub4, sub5, sub6;
            Console.WriteLine("enter first subject name");
            sub1 = Console.ReadLine();
            Console.WriteLine("enter second subject name");
            sub2 = Console.ReadLine();
            Console.WriteLine("enter third subject name");
            sub3 = Console.ReadLine();
            Console.WriteLine("enter fourth subject name");
            sub4 = Console.ReadLine();
            Console.WriteLine("enter fifth subject name");
            sub5 = Console.ReadLine();
            Console.WriteLine("enter sixth subject name");
            sub6 = Console.ReadLine();
            Console.WriteLine("Select crdhr for {0}",sub1);
            crdhr1 = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Select crdhr for s{0}", sub2);
            crdhr2 = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Select crdhr for {0}", sub3);
            crdhr3 = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Select crdhr for {0}", sub4);
            crdhr4 = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Select crdhr for {0}", sub5);
            crdhr5 = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Select crdhr for {0}", sub6);
            crdhr6 = Convert.ToInt32(Console.ReadLine());
            crdhr = crdhr1 + crdhr2 + crdhr3 + crdhr4 + crdhr5 + crdhr6;
            Char op;
            double res;
            Console.WriteLine("For civilian press 1 and for naval press 2");
            op = Convert.ToChar(Console.ReadLine());

            if (op == '1')
            {
                res = crdhr * 6000;

                Console.WriteLine("For civilian student semester fee is {0}", res);
            }

            else

                if (op == '2')
                {
                    res = (crdhr * 6000) / 2;

                    Console.WriteLine("For navel student semester fee is {0}", res);
                }

        }

    }
}

OUTPT:



Make a c# program that calculate 1st Year/2nd Year/Intermediate Combine % Persentage by taking all subjects num as input

INPUT:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mARKS_CALCUlTOR
{
    class Program
    {
        static void Main(string[] args)
        {
            double phyI, chemI, mathI, islI, engI, urdI, obtnum, persentage, avgmarks, obtnumI, persentageI, avgmarksI, phyII, chemII, mathII, islII, engII, urdII, obtnumII, persentageII, avgmarksII;
            Console.WriteLine("Please inter your intermediate marks");
            char op;
            Console.WriteLine("if you want to calculate your 1st year marks press 1 or \nif you want to calculate your 2ndyear marks please press 2 or \nif you want to calculate your 1st year and 2nd year combine marks press 3");
            op = Convert.ToChar(Console.ReadLine());
           
                if (op == '1')
                {
                    Console.WriteLine("Please enter your 1st year marks");
                Console.WriteLine("Please enter your physicsI marks");
                phyI = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please inter your chemistryI marks");
                chemI = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("please enter your mathematicsI marks");
                mathI = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your islamiatI marks");
                islI = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your englishI marks");
                engI = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your urduI marks");
                urdI = Convert.ToInt32(Console.ReadLine());
                obtnumI = phyI + chemI + mathI + islI + engI + urdI;
                persentageI = (obtnumI * 100) / 550;
                avgmarksI = obtnumI / 6;
                Console.WriteLine("you obtained {0} marks and your persentage is {1} and your average marks are {2}", obtnumI, persentageI, avgmarksI);
            }

            else

           
                if (op == '2')
                {
               
                Console.WriteLine("Please enter your 2nd year marks");
                Console.WriteLine("Please enter your physicsII marks");
                phyII = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please inter your chemistryII marks");
                chemII = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("please enter your mathematicsII marks");
                mathII = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your islamiatII marks");
                islII = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your englishII marks");
                engII = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your urduII marks");
                urdII = Convert.ToInt32(Console.ReadLine());
                obtnumII = phyII + chemII + mathII + islII + engII + urdII;
                persentageII = (obtnumII * 100) / 550;
                avgmarksII = obtnumII / 6;
                Console.WriteLine("you obtained {0} marks and your persentage is {1} and your average marks are {2}", obtnumII, persentageII, avgmarksII);
            }

            else

           
                if (op == '3')
                {
               
                Console.WriteLine("Please inter your 1st year and 2nd year marks");
                Console.WriteLine("Please enter your physicsI marks");
                phyI = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please inter your chemistryI marks");
                chemI = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("please enter your mathematicsI marks");
                mathI = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your islamiatI marks");
                islI = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your englishI marks");
                engI = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your urduI marks");
                urdI = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your physicsII marks");
                phyII = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please inter your chemistryII marks");
                chemII = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("please enter your mathematicsII marks");
                mathII = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your islamiatII marks");
                islII = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your englishII marks");
                engII = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Please enter your urduII marks");
                urdII = Convert.ToInt32(Console.ReadLine());
                obtnum = phyII + chemII + mathII + islII + engII + urdII + phyI + chemI + mathI + islI + engI + urdI;
                persentage = (obtnum * 100) / 1100;
                avgmarks = obtnum / 12;
                Console.WriteLine("you obtained {0} marks and your persentage is {1} and your average marks are {2}", obtnum, persentage, avgmarks);
            }


        }
     }
  }

OUTPUT: