Grocery Point of sale system...
-advises only, thanks!
So here it is:
1. The system should have an ability to store up to 100 records.
2. Provide the following POS Application:
a. Scan Buyer's Items-i'm not really sure about this one..is this where i'l input the barcodes of the //items to be bought?
b. Additional items-To add items, search first for the buyer ID, and then show all the Barcode, //Product name and Quantity of all products bought. Ask also how many quantities will be added.
c. Cancel items-To cancel items, search first for the buyer ID, and then show all the Barcode, //Product name and Quantity of all products bought. Ask also how many quantities will be cancelled.
d. Search record-searching a buyer via Buyer ID.
e. Delete record
f. List of products available-List of barcode, name, category and individual prices of products
g. Show products based on Product category-Can't understand this one.
I'm starting on it now....this is what i have so far:(i already have a basic problem)
#include <iostream.h>
#include <time.h>
#include <conio.h>
#include <cstring.h>
int id,adn;
string fn, ln,mn,ad,ch;
void main()
{
// current date/time based on current system
time_t now = time(0);
// convert now to string form
char* dt = ctime(&now);
cout << "Date and time: " << dt << endl;
cout<< "\t\tWelcome to the Black order Grocery system\n";
cout<< "\nPlease enter the following data:";
cout<< "\nBuyer's ID:B";
cin>>id;
cout<< "\nFirst Name:";
cin>>fn;
cout<< "Middle Name:";
cin>>mn;
cout<< "Last name:";
cin>>ln;
cout<< "Address:";
cin>>adn;cin>>ad;
clrscr();
cout<< "[1]Scan Buyer's Items";
cout<< "\n[2]Additional Items";
cout<< "\n[3]Cancel Items";
cout<< "\n[4]Searching for Buyer's Record";
cout<< "\n[5]Deleting Buyer's Record";
cout<< "\n[6]Show all Products available in the Grocery Store";
cout<< "\n[7]Show Products based on Product Category";
cout<< "\n[8]Exit";
cout<< "\nOption:";
cin>>ch;
clrscr();
}
-when i add a space or if i put my second name it immediately goes to last name
-It's not much but as i mentioned i just started doing it right now...so there will be updates //later...Please I need your expert advises, i want to perfect this project!
RonKevin 0 Newbie Poster
Recommended Answers
Jump to Post-when i add a space or if i put my second name it immediately goes to last name
Provide sample input, expected output, actual output. You may need to use a different input method, say getline() instead of >>.
Jump to PostUse a loop condition that calls for an authentication of input function and returns negative if its not authentic input.
int authenticationReturn = 1; while( authenticationReturn == 1) { // take user input authenticationReturn = authenticate ( user input ) }
authenticate ()
will return …
Jump to PostYour loop terminates when either of two conditions occurs: the user indicates there are no more items to scan in or the number of items has reached the maximum (100).
Within the loop, the user enters the barcode and quantity, the number of items is updated, and if the limit …
Jump to PostTry working out the steps you'd need, in plain english, so that you have an algorithm to work with. Once you have that algorithm, you can work out how to code it up, including how to store the input.
You know you need a loop of some sort. You know …
All 13 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Lerner 582 Nearly a Posting Maven
RonKevin 0 Newbie Poster
RonKevin 0 Newbie Poster
RonKevin 0 Newbie Poster
np complete 8 Newbie Poster
RonKevin 0 Newbie Poster
Bob 15 using namespace Bob Team Colleague
RonKevin 0 Newbie Poster
RonKevin 0 Newbie Poster
Bob 15 using namespace Bob Team Colleague
RonKevin 0 Newbie Poster
RonKevin 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.