We will build a set of console-based programs that helps

 

We will build a set of console-based programs that helps a grocery store keep track of its special customers and its product inventory. The inventory level for a product, like a bottle of soda, increases when a supplier delivers them. The level decreases when a customer purchases one or more of the product. We allow for customers to return some items for a refund. Occasionally, a product is recalled so we have to return some units back to the supplier for a reimbursement.

Main program #1 allows us to add (or delete) products in our Application. We will create this program in class. We will use the program to create the Product file (ProdInv.dat) for the project.

Main program #2 allow us to (create and) update our list of special Customers. Customers are given an ID number, so it easier to keep track of them. They are given a credit limit and start with no debt. Customer #0 is a “dummy” representing customers that are not in our frequent shopper program, so remain anonymous. The dummy has a $0 credit limit. You will use your program to create a file (Customer.dat) storing the following customer information:

IdNameDebtCredit Limit0Dummy$0.00$0.001Dan Daley$0.00$200.002Lex Luthor$0.00$100.003Lana Lane$0.00$300.004Peter Parker$0.00$50.005Ben Bradley$0.00$50.00

Main program #3 is used to keep track of the activities for a single day. The program reads in the current product and customer information  from the files. Then it will reflect the current activities:

1) The program lists those items whose inventory is within 10% of its reorder point.

2) 20 bars of soap are delivered and the supplier is paid.

3) Lex Luthor buys 1/2 lb. of salami and a bottle of soda, if available.

4) 30 bottles of soda are delivered and the supplier is paid.

4) Peter Parker buys all of the milk that is in stock.

5) Ben Bradley returns 2 bars of soap that he bought earlier.

6) All of the remaining bread is thrown away.

The key data from each of these activities will be appended to a formatted text file (Activities.dat) that can be reviewed in the future. ProdInv.dat is updated to reflect these activities.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

In this writing assignment, you will analyze asymmetric and symmetric

In this writing assignment, you will analyze asymmetric and symmetric encryption.  Evaluate the differences between the two of them and which one that you would determine is the most secure.  The writing assignment requires a minimum of two written pages to evaluate the history.  You must use a minimum of

Question A: How is mental health provided in the United

   Question A:  How is mental health provided in the United States? Discuss how current services could be improved.   Question B: Discuss the major factors contributing to the high costs of healthcare and why they are important.   REPLY TO MY CLASSMATE’S DISCUSSION TO THE ABOVE QUESTIONS AND EXPLAIN

Parents and other adults are critical in helping children of

Parents and other adults are critical in helping children of all ages deal with the stress from a pandemic.  Your task is to look at the list of suggestions.  I want you to choose one of the suggestions and answer these questions: 1. How would you accomplish this task? Be

Assignment Content Choose 1 of the following topics related to

  Assignment Content Choose 1 of the following topics related to the Great Recession: The housing price bubble, collapse, foreclosures, bailout of underwater mortgages Subprime mortgages and derivatives, bailout of FNMA, Freddie Mac and AIG The banking industry crisis, bailout of commercial and investment banks Write a 350- to 700-word analysis

Book Review:

 Book Review: A minimum 4-page review essay of one book from the list of Suggested Books below (or if a student has a book they wish to select), this Essay will provide a critique of a scholarly monograph which grapples with a particular subject related to business, globalization, commodities, consumption,

People of Chinese Heritage. People of Guatemalan Heritage.

Description Population Presentation(POWER POINT) People of Chinese Heritage. People of Guatemalan Heritage. You need to choose by the end of this week 2 from the list of cultural and sociocultural groups that are going to be discuss during this course and prepare a PowerPoint presentation that is due at the

Discuss the interim or final results of the financial statement

  Discuss the interim or final results of the financial statement analysis paper that you’re working on. Be sure to indicate the company you selected and discuss at least one of the ratios you analyzed. What was the result, and what does it tell us about the financial health of

Opportunity cost

 All essays must be typed in size 12 Times New Roman font, double-spaced, and with one-inch margins. Be sure to include an introduction and conclusion. Also, all references should be listed on a separate page. Each essay is expected to be around 5 pages in length.Essay 1Main idea: What is

Is it evil to exercise price gauging

You are to watch an ABC news clip about price gauging. This video focusing on price gouging after Hurricane Katrina, a Mississippi law against price gouging is in stark contrast with prominent economists arguing that price gouging is good. After natural disasters, some businesses raise prices. Some people buy several

Voice Thread Presentation and Peer Review Submission Section PLEASE USE

Voice Thread Presentation and Peer Review Submission Section  PLEASE USE THE RUBRIC (ATTACHED) AS GUIDE TO COMPLETE THE ASSIGNMENT.  Once you complete the Matrix assignment,  (ATTACHED) you will be presenting your information using Voice Thread.  For this assignment, you will: ·  You will present a 8-10 slide power point and

In this discussion board, first watch the below video and

  In this discussion board, first watch the below video and then read the case on  Patagonia Video (11:32) – click on the words ‘Patagonia Video’ to get to the video. Works best in Google Chrome. After watching the video, answer the 2 questions that are on p. 158 (5th edition) or

After examining various financial statements that are prepared for use

 After examining various financial statements that are prepared for use by internal and external stakeholders.  Why are externally presented reports required to be prepared according to generally accepted accounting principles while internally presented managerial accounting reports are not? How can a misstatement in one financial statement, whether intentional or not,

Think about community policing strategies by explaining the history of

 Think about community policing strategies by explaining the history of the concept, current trends, and future?  For the future of community policing, how has technology made it easier or better?   Why is stress management important to an officer’s health and safety?  What stress reduction strategies can help reduce stress for

TOPIC: HYPERLIPIDEMIA 1. Demographic Information of The Patient ( NAME,

TOPIC: HYPERLIPIDEMIA 1. Demographic Information of The Patient ( NAME, GENDER, AGE, RACE) 2. Chief Complaint: 3. History Of Present Illness: Onset/Location/Duration/Character/Alleviating-Aggravating factors/Temporal pattern/Severity. Additional symptoms and previous treatment if known. 4.Past Medical History 5.“Family Medical history:  6.“Surgical Medical history:  7.Review of systems and Physical Examination : HHENT, NEURO, CARDIO

What Leaders Really Do? Please start by reading Leading at

  What Leaders Really Do? Please start by reading Leading at a Higher Level, Chapter 3 Start with Why: Chapters 3-5. Part I: Answer the following questions:  What is the difference between a Leader and a Manager? How can a Culture of Leadership be developed within an organization? When are