Friday, February 28, 2014

Simple Billing System Program in C

#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <time.h>
#include <windows.h>
struct Billing
{
char g[50],m,e;
int q;
float r,d;
float amount;
float tax;}s;
int c;
static char mo, pa, g[50];
static int qq;
int distim();
int datess();
int timess();
int copy();
void office();
void customer();
void help();
void about();
void search();
void showall();
void add();
void remov();
void edit();
void ex();
main()
{
system("color 0a");
char x;
while(1)
{
system("cls");
distime();
printf("\t\t###############################################\n\t\t##\tLA Grandee Departmental Store\t     ##\t\t\n\t\t##\t-----------------------------\t     ##\n\t\t##\tSrijana Chowk, Pokhara, Nepal\t     ##\n\t\t##\t\t\t\t\t     ##\n\t\t##\t     Ph no: 061-123456\t\t     ##\n\t\t##\t\t\t\t\t     ##\n\t\t###############################################");
printf("\n\n\n\t ");
printf("\t1.OFFICE USE\t\t\t2.CUSTOMER USE\n\n\t\t3.HELP\t\t\t\t4.ABOUT\n\n\t\t\t\t5.EXIT\n\n");
printf("\tCHOOSE THE ABOVE OPTION TO OBTAIN A TASK:-\t");
x=getche();
x=toupper(x);

system("cls");
switch(x)
{
case '1':
printf("\n\t\tYou have selected for OFFICE USE:-");
office();
break;
case '2':
printf("\n\t\tYou have Seleced for CUSTOMER USE\n\n\n\t");
customer();
break;
case '3':
printf("\n\t\t\tHELP:");
help();
break;
case '4':
printf("\n\t\t\tABOUT US:-\n\n   ");
about();
break;
case '5':
ex();
break;
case 'S':
system("systeminfo");
printf("\n\t\t\tPress any key to continue");
break;
case 'B':
system("bill.txt");
printf("\n\n\n\n\t\t\tPress Any key to continue");
break;
case 'C':
printf("\n\n\n\t\t\tCOLOR changed Applied");
system("color 1a");
break;
default:
system("cls");
printf("\aIncorrect Input");
printf("\nAny key to continue");
}
binaya:
getch();
}
{
printf("\n\t\t            Date : ");
system("date /t");
printf("\t\t            Time : ");
system("time /t");
printf("\n");

No comments:

Post a Comment