Question

This assignment requires the development of C++ software that supports order processing, account ...

This assignment requires the development of C++ software that supports order processing, account management, and inventory control activities of an imaginary food service. Assume that customers of this food service will use a separate Web-based app (not included in this assignment) to browse product catalogs and then create shopping lists stored in specially formatted text files (see input definitions below). Each shopping list may include:

  • Food item names and quantity.
  • Coupon information that includes the name of the food and discount amount.

To process these shopping lists, customers must first create an account with your service. Each account is identified by a unique customer id and maintains an amount of money that may only be used for food purchases (i.e., a debit account). Customers enter a dollar amount when the account is created. Once they have an account, then they may select one of the following actions provided by your service program.

  • Retrieve a shopping list file and save it to a virtual cart (only one virtual cart per customer).
  • Retrieve a saved cart.
  • Add or remove items from a saved shopping cart
  • Create shopping cart reports (output text file with list of saved cart items for a specific customer).
  • Process the current cart (checkout). Saved carts must be deleted after checkout.

Also, customers must be able to perform the following basic functions on their account.

  • Add money to their food service account.
  • Display account information.

The inventory for this food service must be controlled by a food service manager. Your application must provide the following functions for the service manager.

  • Addition of food item quantity to the inventory of the food service (i.e., re-stocking).
  • Prices changes for food items. (Note: Official prices are stored in the inventory – not shopping carts).
  • Creation of inventory control reports (for the entire inventory or selected items).

Therefore, the main function of your application, must prompt the user for the following actions using a simple console window.

  1. Login or create an account. (Service manager account must already be in your system.)
  2. If service manager,
    1. Add quantity to inventory.
    2. Update inventory prices.
    3. Display inventory report.
  3. If customer,
    1. Display account information.
    2. Add money to account.
    3. Retrieve a shopping list file.
    4. Retrieve a saved cart.
    5. Update cart contents.
    6. Display cart report.
    7. Process the cart (checkout)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answes Given that nne include ciostom> #inctu de Lfstocom > # include しcst dlib > # incude Siting> incru de time . b > # .nctvoid batch Reuests ve cto s < account > lead Accounts (Σ Cnum Choices \ Request , 3lvCE, PRocEss 3, int menu cholcc C nenuchobreak Casc PROCESS Cout LL coould You like to: L enal Cout lc2.) Rt a stogie «tem add netens LK endiCtn > Choice 2 Void oventoy Cotsol () CaSe AL Case RESTO Ck Case ADDIEM. bocak cefault<xit (3), İf S.locam toov t exat C3) vectoo L acco vectoǒ < statna > Command

Add a comment
Know the answer?
Add Answer to:
This assignment requires the development of C++ software that supports order processing, account ...
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
  • Explain what the code is doing line from line explanations please or summarize lines with an explanation def displayCart(): #displays the cart function """displayCart function - dis...

    Explain what the code is doing line from line explanations please or summarize lines with an explanation def displayCart(): #displays the cart function """displayCart function - displays the items in the cart ---------------------------------------------------------------------""" import os os.system('clear') print("\n\nCart Contents:") print("Your selected items:", cart) def catMenu(): #function that displays the category menu """catMenu function - displays the categories user picks from ---------------------------------------------------------------------""" import os os.system('clear') print(""" 1 - Books 2 - Electronics 3 - Clothing d - display cart contents x -...

  • Needs Help with Java programming language For this assignment, you need to write a simulation program...

    Needs Help with Java programming language For this assignment, you need to write a simulation program to determine the average waiting time at a grocery store checkout while varying the number of customers and the number of checkout lanes. Classes needed: SortedLinked List: Implement a generic sorted singly-linked list which contains all of the elements included in the unsorted linked list developed in class, but modifies it in the following way: • delete the addfirst, addlast, and add(index) methods and...

  • C++ Design a class bankAccount that defines a bank account as an ADT and implements the...

    C++ Design a class bankAccount that defines a bank account as an ADT and implements the basic properties of a bank account. The program will be an interactive, menu-driven program. a. Each object of the class bankAccount will hold the following information about an account: account holder’s name account number balance interest rate The data members MUST be private. Create an array of the bankAccount class that can hold up to 20 class objects. b. Include the member functions to...

  • Solve the code below: CODE: """ Code for handling sessions in our web application """ from bottle import request, response import uuid import json import model import dbsche...

    Solve the code below: CODE: """ Code for handling sessions in our web application """ from bottle import request, response import uuid import json import model import dbschema COOKIE_NAME = 'session' def get_or_create_session(db): """Get the current sessionid either from a cookie in the current request or by creating a new session if none are present. If a new session is created, a cookie is set in the response. Returns the session key (string) """ def add_to_cart(db, itemid, quantity): """Add an...

  • This assignment must be completed on your own with your team mates. Don't give your code...

    This assignment must be completed on your own with your team mates. Don't give your code to others or use other students' code. This is considered academic m will result 0 marks) Write a java program that mange JUC Bank accounts services. The program should have the following: The total number of accounts (n) will be specified by the user at the beginning of the program. Depending upon the entered number, create three Arrays as following o o o Array...

  • I need help with this assignment, can someone HELP ? This is the assignment: Online shopping...

    I need help with this assignment, can someone HELP ? This is the assignment: Online shopping cart (continued) (C++) This program extends the earlier "Online shopping cart" program. (Consider first saving your earlier program). (1) Extend the ItemToPurchase class per the following specifications: Parameterized constructor to assign item name, item description, item price, and item quantity (default values of 0). (1 pt) Public member functions SetDescription() mutator & GetDescription() accessor (2 pts) PrintItemCost() - Outputs the item name followed by...

  • must be written in c# using windows application Scenario: Samediff bank has a 25-year old banking...

    must be written in c# using windows application Scenario: Samediff bank has a 25-year old banking account system. It was created using procedural programming. Samediff bank needs to improve the security and maintainability of the system using an object-oriented programming (OOP) approach. Their bank manager has decided to hire you to develop, implement, and test a new OOP application using efficient data structures and programming techniques.Samediff banks manager is excited to consider updating their account system. An expert has advised...

  • You are a database consultant with Ace Software, Inc., and have been assigned to develop a...

    You are a database consultant with Ace Software, Inc., and have been assigned to develop a database for the Mom and Pop Johnson video store in town. Mom and Pop have been keeping their records of videos and DVDs purchased from distributors and rented to customers in stacks of invoices and piles of rental forms for years. They have finally decided to automate their record keeping with a relational database. You sit down with Mom and Pop to discuss their...

  • I need help writting a Javascript function that does the following its for a HTML/CSS Shopping...

    I need help writting a Javascript function that does the following its for a HTML/CSS Shopping Cart Page CODE This page contains a list of the selected products that includes an image, name, price, quantity, and cost) Because the process is implemented not as real, three products along with its image and price are displayed on the page. The product ID of each product is stored in a hidden textbox. The default amount of each product is 1 and the...

  • Java Inventory Management Code Question

    Inventory ManagementObjectives:Use inheritance to create base and child classesUtilize multiple classes in the same programPerform standard input validationImplement a solution that uses polymorphismProblem:A small electronics company has hired you to write an application to manage their inventory. The company requested a role-based access control (RBAC) to increase the security around using the new application. The company also requested that the application menu must be flexible enough to allow adding new menu items to the menu with minimal changes. This includes...

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