using System;
using System.Collections.Generic;
using System.Text;
namespace Hotel_System
{
class Guest
{
public string Gname; //Guest name
public string ID;
public string nationality;
}
class Room
{
public int RoomNum; //store RoomNum of guest's hotel room no.
public string guestID; //store guest ID who stay in room object.
public float Price; //store pricing of the room.
public int ppl; //store amount of ppl in room.
public int status; // status of room
}
class Hotel
{
public string Hotelname; //store and display Hotel's name
public string MgrName; //store and display Manager's name
public string Address; //store and display Address
}
class Program
{
static void Main()
{
Console.Title = "Hotel System";
char choice;
do {
Console.Clear();
Console.WriteLine("Hotel Deluxe");
Console.WriteLine("------------------");
Console.WriteLine(" ");
choice = DisplayMenu();
choice = char.ToUpper(choice);
switch (choice)
{ case 'A': break ;
case 'B': break;
case 'C': break;
case 'D': break;
case 'E': break;
case 'F': break;
case 'G': Quit(); break;
default: Console.WriteLine("Sorry,Invaild choice!");
break;
}
} while (choice != 'G');
static char DisplayMenu()
{
Console.WriteLine("(A): Display Guest Information");
Console.WriteLine("(B): Update Guest Information");
Console.WriteLine("(C): BookRoom / CheckOut ");
Console.WriteLine("(D): Check Room Status ");
Console.WriteLine("(E): Hotel Details");
Console.WriteLine("(F): Sort Guest Name");
Console.WriteLine("(G): Quit");
Console.Write("Enter choice: ");
char choice = char.Parse(Console.ReadLine());
return choice;
}
}
Sunday, November 30, 2008
Subscribe to:
Posts (Atom)