Write a program that implements a small university The unive

Write a program that implements a small university. The university has these components: Faculty, course and student. Program must be written in C#.

Solution

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace University

{

    class University

    {

        static void Main(string[] args)

        {

         

                  int number, i, roll;

                                Console.Write(\"Enter the number of student records you wish to enter\ \");

                                  number = int.Parse(Console.ReadLine());

                                                string name,faculty,course;

      

          

            

           for (i=1; i<=number; i++)

        {

            Console.WriteLine(\"Enter Roll Number :\");

            roll = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine(\"Enter Student Name :\");

            name = Console.ReadLine();

         

          

          

                                Console.WriteLine(\"Enter the faculty name :\");

                faculty = Console.ReadLine();

                Console.WriteLine(\"Enter the course name :\");

            course = Console.ReadLine();

                Console.WriteLine(\"Record entry success\");

                Console.WriteLine(\"Entered student name is {0} belonging to Course {1} in Faculty {2}\",name, course,faculty);

         }

           

            Console.ReadLine();

        }

    }

}

Write a program that implements a small university. The university has these components: Faculty, course and student. Program must be written in C#.Solutionusin
Write a program that implements a small university. The university has these components: Faculty, course and student. Program must be written in C#.Solutionusin

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site