In: Computer Science
Create a struct for the following groups of data: (a) Product Data with the following members • ID • Name • Price • Quantity (b) Customer Data with the following members • ID • Name • Address • E-mail (c) Sales Data with the following members • Customer ID • Product IDs • Sale amount • Choose the types that you think will work best for the above descriptions. • Names should have a maximum size of 50. • Physical addresses should have a maximum size of 100. • E-mail addresses should have a maximum size of 40. • Save your file as prob1.h.
Given:- Create structures for the following group of data?
- following are the all structure is present in a simple way if you have
any question or suggestion comment it below.
a) product data with the following members...
b) Customer Data with the following members...
c)Sales Data with the following members...
struct ProductData
{
int ID;
char Name[50];
float Price;
int Quantity;
};
struct CustomerData
{
int ID;
char name[50],Address[100];
string Email;
};
struct SalesData
{
long ID,ProductID;
long salseamount;
char name[50],Address[100];
string Email[40];
};
a) product data with the following members...
struct ProductData
{
int ID;
char Name[50];
float Price;
int Quantity;
};
b) Customer Data with the following members...
struct CustomerData
{
int ID;
char name[50],Address[100];
string Email;
};
c)Sales Data with the following members...
struct SalesData
{
long ID,ProductID;
long salseamount;
char name[50],Address[100];
string Email[40];
};