Advertisement
Guest User

Untitled

a guest
Aug 30th, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.03 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication1
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             do
  13.             {
  14.                 int choice;
  15.                 Console.Clear();
  16.                 Console.WriteLine("1. Add a student");
  17.                 Console.WriteLine("2. List student");
  18.                 Console.WriteLine("3. Classify student");
  19.                 Console.WriteLine("4. Exit");
  20.                 Console.WriteLine("please choose an option");
  21.                 choice = int.Parse(Console.ReadLine());
  22.                 switch (choice)
  23.                 {
  24.                     case 1:
  25.                         break;
  26.                     case 2:
  27.                         break;
  28.                     case 3:
  29.                         break;
  30.                     case 4:
  31.                         break;
  32.                     default:
  33.                         Console.WriteLine("Lแป—i");
  34.                         break;
  35.                 }
  36.             } while (true);
  37.            
  38.  
  39.         }
  40.     }
  41.     public class Student
  42.     {
  43.         static int Count = 0;
  44.         public static int ID
  45.         {
  46.             set;
  47.             get;
  48.         }
  49.         string Name
  50.         {
  51.             set;
  52.             get;
  53.         }
  54.         string Class
  55.         {
  56.             set;
  57.             get;
  58.         }
  59.  
  60.         float Math
  61.         {
  62.             set;
  63.             get;
  64.         }
  65.         float Physic
  66.         {
  67.             set;
  68.             get;
  69.         }
  70.         float Chemistry
  71.         {
  72.             set;
  73.             get;
  74.         }
  75.         void Display()
  76.         {
  77.             Console.WriteLine("ID :" +ID);
  78.             Console.WriteLine("Name :" +Name);
  79.             Console.WriteLine("Class :" +Class);
  80.             Console.WriteLine("Math :" +Math);
  81.             Console.WriteLine("Physic :" +Physic);
  82.             Console.WriteLine("Chemisty :" +Chemisty);
  83.             Console.WriteLine("");
  84.         }
  85.  
  86.     }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement