Created
February 14, 2018 11:04
-
-
Save damoahdominic/ea8eae329a58f1f99d8602f96178b3ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
while(true){ | |
Console.WriteLine("\nWelcome to my Pharmacy management system\n1. Press ONE(1) to Buy a Drug\n2. Press TWO(2) to View Drug prices\n3. Press 3 to exit\n Your Input: --> "); | |
string input = Console.ReadLine(); | |
int a = Convert.ToInt32(input); | |
switch (a) | |
{ | |
case 1: | |
// call a function to buying drugs | |
buy_drug(); | |
break; | |
case 2: | |
view_drug(); | |
break; | |
case 3: | |
Environment.Exit(0); | |
break; | |
default: | |
break; | |
} | |
Console.ReadLine(); | |
} | |
} | |
private static void view_drug() | |
{ | |
Console.WriteLine("This is where your guys will code the viewing drugs"); | |
} | |
private static void buy_drug() | |
{ | |
Console.WriteLine("This is where your guys will code the buying drugs"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment