Question

C++ program.A shoe company where there are departments, employee,manager and database manager. The company has three...

C++ program.A shoe company where there are departments, employee,manager and database manager. The company has three sizes of shoes ;small,medium and large and there are three colors of shoes;yellow,brown and white associated with different sizes.The company sells the shoes online and so it keeps a track of how many different size of shoe with different colors are available and it changes as per the specific item sold.Also,it keeps the data of how many shoes are sold of each size of each color and price of each size of shoe is also stored in database,color doesn't affect the price.These things are read from external file and modified accordingly.

The employee should be able to mark any valid quantity for a given size and color sold ,changing inventory and the number of shoes sold.The database manager should be able to add shoes to inventory of any size and color when new stock arrives,thus updating the inventory.The manager should be able to see and change contact information of any employee,working in any of the three departments.

This is like a database system of a shoe company,like whats in stock and by how many and changes occur when something is sold or new stock is added.Customers can be anyone so directly giving an option to buy ,then giving options of size and color will do.

There is a text file with default values of different shoe sizes of different colors.For eg : Blue medium shoe =7 ,black large shoe = 10.There is a buying option ,so anyone can buy first give option of size and then color and as per the buying,the value should be decremented in the file.When database manager adds items,again option of size and color which should be added and as per it ,increment it's value in the inventory(file).The worker can change any item anytime ,so its value should be updated.Here,first size is selected and then color and then ask for modified value and as per input it should be updated.There is different option on the main page about adding people,which takes a person personal info and salary to add it in the company and the manager can see all people's data when he wants.

Main Page should have Add people,Choose people which further divides in employee,manager and database and as per the choosing,they should do the above specific tasks .The last option on the main page is of customer buy ,this gives options of buying to customers (size and color ) and then prints price and says thanks for buying and decreases the particular value from the text file(inventory)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The basic thinking here is .

1.customer enter shoe store.

2.meets employees.and ask for shoes of suitable color and gender and size.

3.Employee checks customer and asks for the appropriate shoe from CManager.

4.Manager checks with Database manager if the shoe is in the stock.If yes then indicates it to the Manager.

5.DatabaseManager gives the shoe and waits for Managers approval in order to update the Manager waits for employees approval in order to calculate sales and other related operations.

6.Employee confirms the sale to Manager.Manager add total sales and indicates DatabaseManager to update inventory.

7.DatabaseManager has a view of all the shoes in the stock.

Same logic is designed in classes below.

CDepartment:Gents, Ladies,Kids,

CEmployee:one function sellitem(),confirmsale(),

sendsoldshoeinfotomanager()

getshoe(){check gender,then size and color }

CManager: updatessalesrecord(),

totalSales(),itemsavalibilitycheck(),sendshoeinfotoDBmanager().soldconfirmrecord()

CDatabaseManager:

updateinventiryaftereverysale();

inventorycapacity (),inventorystatus(),

listinventory(){

Shoe sizes(large, medium,small),

shoecolor(yellow, brown,white);

shoegender.

This function will list the shoes on all three crieteria.

}

Determining the variable required for all classes:

int sale,int shoecount,int shoesize.String shoegender,String shoecolor,int totalsale,

Now the only thing required here is to put the variable in appropriate classes and call the member function of respective classes.

Hope it's helpful.

Regards

Add a comment
Know the answer?
Add Answer to:
C++ program.A shoe company where there are departments, employee,manager and database manager. The company has three...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • MAKE IT DIFFERENT WAYS TO RUN IT: Design an application for each of the following problems...

    MAKE IT DIFFERENT WAYS TO RUN IT: Design an application for each of the following problems writing the pseudocode for each; include a UML diagram if appropriate. Be sure to follow the CSI 117 Style Criteria for naming conventions, class diagrams, pseudocode, keywords, and operators. 1. Wood Trim, Inc. wants a program that will allow its sales clerks to enter the length (in feet) of the trim ordered by a customer and the price of one foot of trim. Design...

  • The Nubuck Shoe Company produces its famous shoe, the Divine Loafer that sells for $50 per...

    The Nubuck Shoe Company produces its famous shoe, the Divine Loafer that sells for $50 per pair. Operating income for Nubuck Shoe Company would like to increase its profitability over the next year by at least 25%. To do so, the company 2017 is as follows: is considering the following options: (Click the icon to view the income statement.) (Click the icon to view the options.) Read the requirement. Evaluate each of the alternatives considered by Nubuck Shoes. (Use parentheses...

  • You will write a class called Shoe.java Shoe.java should have Three instance variables String brand (cannot...

    You will write a class called Shoe.java Shoe.java should have Three instance variables String brand (cannot be blank) double size (from 5 to 12) int color (a number from 1 to 5 representing one of 5 colors) This code is to control the amount of colors. the colors represented are as follows 1. red 2. green 3. blue 4. black 5. grey One constructor, one get method per instance variable, one set method per instance variable. You will need a...

  • Please, please help with C program. This is a longer program, so take your time. But...

    Please, please help with C program. This is a longer program, so take your time. But please make sure it meets all the requirements and runs. Here is the assignment: I appreciate any help given. Cannot use goto or system(3) function unless directed to. In this exercise you are to create a database of dogs in a file, using open, close(), read, write(), and Iseek(). Do NOT use the standard library fopen() ... calls! Be sure to follow the directions!...

  • JAVA ONLY. For this assignment you will create an employee application, containing contact information, salary, and...

    JAVA ONLY. For this assignment you will create an employee application, containing contact information, salary, and position. You will also define the type of company. Is it an engineering firm, a supermarket, or a call center? Once the application has been completed, I should be able to perform a query for any piece of information associated with each employee.   For instance, if I search for employees who make over $50,000, all of the employees whose salaries are greater than $50,000 should...

  • This is extra information about the shopping database given to answer this question: For many query...

    This is extra information about the shopping database given to answer this question: For many query questions we refer to the following database schema for a website that keeps track of what people like to buy or actually buy in different on-line supermarkets. (Think of something like a cross-store loyalty card system.) customer(cID, cName, street, city) Customers with unique cID and other attributes store(sID, sName, street, city) Stores with a unique ID and other attributes. Stores with the same name...

  • database and sql problme THE QUESTIONS 3, 4,5 and 6 REFER TO THE RELATIONAL TABLES LISTED...

    database and sql problme THE QUESTIONS 3, 4,5 and 6 REFER TO THE RELATIONAL TABLES LISTED BELOW CREATE TABLE Department ( DECIMAL(5) VARCHAR(30) CHAR(5) DATE NOT NULL NOT NULL NOT NULL * Department number /*Department name * Department manager number */ /Manager start date DNumber DName Manager MSDate CONSTRAINT Department_PK PRIMARY KEY(DNumber) CONSTRAINT Department_CK UNIQUE(DName) CREATE TABLE DeptLocation DECIMAL(5) VARCHAR(50) NOT NULL NOT NULL DNumber * Department number */ * Department location */ Address CONSTRAINT DeptLocation_PK PRIMARY KEY(DNumber, Address) CONSTRAINT...

  • I have written my code for an employee management system that stores Employee class objects into...

    I have written my code for an employee management system that stores Employee class objects into a vector, I am getting no errors until I try and compile, I am getting the error: C2679 binary '==': no operator found which takes a right-hand operand of type 'const std::string' (or there is no acceptable conversion). But I am not sure why any help would be great, Thank you! 1 2 3 4 5 6 7 8 9 10 11 12 13...

  • You are the brand manager for a company that has just invented and patented a special...

    You are the brand manager for a company that has just invented and patented a special material that can be sprayed on to the heels and soles of virtually any pair of shoes that has a leather sole and heel and makes it "good as new." The product comes with detailed instructions on how it works and how it should be applied. The company even sells a special solvent that will remove the spray on material if the customer so...

  • C++ Simple Employee Tracking System

    This assignment involves creating a program to track employee information.  Keep the following information on an employee:1.     Employee ID (string, digits only, 6 characters)2.     Last name (string)3.     First Name (string)4.     Birth date (string as MM/DD/YYYY)5.     Gender (M or F, single character)6.     Start date (string as MM/DD/YYYY)7.     Salary per year (double)Thus you must create a class that has all of this, and get/set methods for each of these fields.  Note: The fields that are designated as string should use the string...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT