Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- do
- {
- int choice;
- Console.Clear();
- Console.WriteLine("1. Add a student");
- Console.WriteLine("2. List student");
- Console.WriteLine("3. Classify student");
- Console.WriteLine("4. Exit");
- Console.WriteLine("please choose an option");
- choice = int.Parse(Console.ReadLine());
- switch (choice)
- {
- case 1:
- break;
- case 2:
- break;
- case 3:
- break;
- case 4:
- break;
- default:
- Console.WriteLine("Lแปi");
- break;
- }
- } while (true);
- }
- }
- public class Student
- {
- static int Count = 0;
- public static int ID
- {
- set;
- get;
- }
- string Name
- {
- set;
- get;
- }
- string Class
- {
- set;
- get;
- }
- float Math
- {
- set;
- get;
- }
- float Physic
- {
- set;
- get;
- }
- float Chemistry
- {
- set;
- get;
- }
- void Display()
- {
- Console.WriteLine("ID :" +ID);
- Console.WriteLine("Name :" +Name);
- Console.WriteLine("Class :" +Class);
- Console.WriteLine("Math :" +Math);
- Console.WriteLine("Physic :" +Physic);
- Console.WriteLine("Chemisty :" +Chemisty);
- Console.WriteLine("");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement