can you help me about POS in dev-c++ 4.9.9.2

March 31, 2011 at 00:03:28
Specs: Windows XP
create a modularized program similar to POS that are used in
various convenience stores... assume that the store has
10 different kinds of items... each has 30 pcs with corresponding
unit prices... this program should also monitor the critical amount
/number of items that can be set by the store owner... it should
also consider the 20% discount that is always given to
senior citizens and the 12% VAT opf each item.
at the end of the day, the store owner should be able
to see his/her total sales... (the program should also give
options to the store owners to view the total number of each
items sold and the corresponding total sales amount of each
item. design your program using appropriate format and
error messages... make it as user friendly as possible... )

See More: can you help me about POS in dev-c++ 4.9.9.2

Report •


#1
March 31, 2011 at 01:12:13
So what have you done so far, and what is your question?

If you don't know where to start on this coursework assignment, perhaps you should talk to your tutor.


Report •

#2
March 31, 2011 at 01:39:47
Begin by looking at other checkout programs (POS). Most of your requirements are filled by a database.

Report •

#3
April 2, 2011 at 09:51:30
#include<stdio.h>
#include<conio.h>

int main()
{
int trans, sum, i, e, count=0, sales;



printf("WELCOME to PIT Stop!\n\n Guidline for user =+>\n\n\n Transaction\n\n\n 1 ->Discounted Transaction\n 2 ->Normal Transaction\n 3 ->Bulk Order Transaction\n 4 ->INVENTORY\n 5 ->Record Sale");
printf("\n\n Enter Transaction: ");

scanf("%d", &trans);

switch(trans){
case 1:
for(count=1; count<=13; count++){


int prod;
int quantity;
float price; //unit price of item
float total_sale; //total price of item from
//the original price
float disc_price; //discounted price
float prod_left; //product left


printf("\n\n DISCOUNTED TRANSACTION\n\n1 ->Bottled Water 6 ->Liquor\n2 -> Bottled juice 7 ->Tetra milk\n3 ->Baked Foods 8 ->Tetra Chocolate\n4 ->Foiled Foods 9 ->Other Services\n5 ->Medical Supply 10 ->Tabbaco\n\nProduct Code: ");
scanf("%d", &prod);
printf("Quantity: ");
scanf("%d", &quantity);
printf("Price: ");
scanf("%f", &price);
total_sale = quantity * price;
disc_price = total_sale - (total_sale * .20);
prod_left = 100 - quantity;
printf("\nTotal Product Sold: %d", quantity);
printf("\n\nDiscounted price = %.2f", disc_price);
if(quantity <= 70)
printf("\nProduct Left +> %f", prod_left);
if(quantity >= 70)
printf("\n\n!Product Shortage +> product left %f!", prod_left);
}
break;
case 2:
for(count=1; count<=13; count++){


int prod;
int quantity;
float price; //unit price of item
float total_sale; //total price of item from
//the original price
float disc_price; //discounted price
float prod_left; //product left


printf("\n\n NORMAL TRANSACTION\n\n1 ->Bottled Water 6 -> Liquor\n2 ->Bottled juice 7 ->Tetra milk\n3 ->Baked Foods 8 ->Tetra Chocolate\n4 ->Foiled Foods 9 ->Other Services\n5 ->Medical Supply 10 ->Tabbaco\n\nProduct Code: ");
scanf("%d", &prod);
printf("Quantity: ");
scanf("%d", &quantity);
printf("Price: ");
scanf("%f", &price);
total_sale = quantity * price;

prod_left = 100 - quantity;
printf("\nTotal Product Sold: %d", quantity);
printf("\n\nTotal price = %.2f", total_sale);
if(quantity <= 70)
printf("\nProduct Left +> %f", prod_left);
if(quantity >= 70)
printf("\n\n!Product Shortage +> product left %f!", prod_left);
}
case 3:
for(count=1; count<=13; count++){


int prod;
int quantity, bulk_disc;
float price; //unit price of item
float total_sale; //total price of item from
//the original price
float disc_price; //discounted price
float prod_left; //product left


printf("\n\n BULK ORDER TRANSACTION\n\n1 ->Bottled Water 6 ->Liquor\n2 ->Bottled juice 7 ->Tetra milk\n3 ->Baked Foods 8 ->Tetra Chocolate\n4 ->Foiled Foods 9 ->Other Services\n5 ->Medical Supply 10 ->Tabbaco\n\nProduct Code: ");
scanf("%d", &prod);
printf("Quantity: ");
scanf("%d", &quantity);
printf("Price: ");
scanf("%f", &price);
bulk_disc = quantity * .10;
total_sale = (quantity * price) * bulk_disc;
disc_price = total_sale - (total_sale * .20);
prod_left = 100 - quantity;
printf("\nTotal Product Sold: %d", quantity);
printf("\n\nTotal Sale = %.2f", total_sale);
if(quantity <= 70)
printf("\nProduct Left +> %f", prod_left);
if(quantity >= 70)
printf("\n\n!Product Shortage +> product left %f!", prod_left);
}
break;
case 4:
for(count=1; count<=13; count++){


int prod;
int quantity;
float price; //unit price of item
float total_sale; //total price of item from
//the original price
float disc_price; //discounted price
float prod_left; //product left


printf("\n\n INVENTORY\n\nEnter Product Code: ");
scanf("%d", &prod);
printf("\nQuantity: ");
scanf("%d", &quantity);
printf("Price: ");
scanf("%f", &price);
total_sale = quantity * price;
disc_price = total_sale - (total_sale * .20);
prod_left = 100 - quantity;
printf("\nTotal Product Sold: %d", quantity);
printf("\n\nTotal Sale = %.2f", total_sale);
if(quantity <= 70)
printf("\nProduct Left +> %f", prod_left);
if(quantity >= 70)
printf("\n\n!Product Shortage +> product left %f!", prod_left);
}
break;
case 5:
for(count=1; count<=13; count++){


int prod;
int quantity;
float price; //unit price of item
float total_sale; //total price of item from
//the original price
float disc_price; //discounted price
float prod_left; //product left


printf("\n\n RECORD SALE\n\nEnter Product code: ");
scanf("%d", &prod);
printf("\n\nNumber of items sold: ");
scanf("%d", &quantity);
printf("Price: ");
scanf("%f", &price);

total_sale = quantity * price;
disc_price = total_sale - (total_sale * .20);
prod_left = 100 - quantity;
printf("\nTotal Product Sold: %d", quantity);
printf("\n\nTotal Sale = %.2f", total_sale);
if(quantity <= 70)
printf("\nProduct Left +> %f", prod_left);
printf("\nProduct reduced by %d", quantity);
if(quantity >= 70)
printf("\n\n!Product Shortage +> product left %f!\nAdvise\n\n-to Avail more Products", prod_left);
}

break;
default:
printf("INVALID TRANSACTION");


}

getch();
return(0);
}
can you continue this one? xD


Report •

Related Solutions

#4
April 6, 2011 at 10:50:07
haha! hirap kaya. gamit ko user defined func kaso ayaw naman lumabas pag tinatawag na func.

Report •


Ask Question