-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbilling.cpp
45 lines (43 loc) · 1.07 KB
/
billing.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "billing.hpp"
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
using namespace std;
void bil_header()
{
cout << "\n\t\t\t---------------------------------------------------------";
cout << "\n\t\t\t|\t\t\t\t\t\t\t|";
cout << "\n\t\t\t|\t\t\tBill Generation\t\t\t|";
cout << "\n\t\t\t|\t\t\t\t\t\t\t|";
cout << "\n\t\t\t---------------------------------------------------------";
}
void billing()
{
int choice;
do
{
system("cls");
bil_header();
cout << "\n\n\t\t\t\t1. Generate new";
cout << "\n\t\t\t\t2. View Bills";
cout << "\n\t\t\t\t3. Return to employee page";
cout << "\n\t\t\t\t4. Exit";
cout << "\n\n\t\t\t\tYour Choice:";
cin >> choice;
switch (choice)
{
case 1:
cout << "case 1";
break;
case 2:
cout << "case 2";
break;
case 3:
break;
case 4:
exit(0);
default:
cout << "wrong choice!!";
}
} while (choice != 3);
}