Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Shopping cart project in c++

01/12/2021 Client: muhammad11 Deadline: 2 Day

CS 144 Programming Problem 4

Amazon Books

Design and implement a C++ program to buy books on Amazon. The program should be menu based with the following options:

1. Enter Customer name

2. Add a book to a customer’s shopping cart

3. Display the Customer’s shopping cart

4. Search

5. List all books

6. Checkout

Requirements:

This problem is an extension of the Programming Project 3. You are to reuse the Book class you developed for that assignment. You will create a new Shopping program that contains the main, or modify your main program from Programming Project 3. You should read all the Books into an array which will serve as our “inventory” list when the program starts. You can then manipulate the books that are stored in the list.

Search should allow the user it input a keyword such as a name, title, or format. The program should display all books from the list that contain that keyword.

List all books should print the entire list, in a manner similar to what you did in Programming Project 3.

You are to develop a new Customer class following the UML below. That class should contain the customer’s name (and mailing address if you so desire), an array to hold the list of books in the shopping cart, and a count of the number of books items in the shopping cart. This Customer class should have functions to:

· enter the customer’s name from the keyboard

· add a book to the shopping cart list of books, and

· display the list of books in the shopping cart with a total price.

Each of these is discussed further below. You’ll use a Customer class object in your main program in support of the first three menu items.

Entering a Customer’s name is fairly trivial. Your Customer class function should just display a prompt and read a string value from the user.

Adding a book to the student’s list requires two functions, one top-level function and one Customer class member function. The member function should simply copy its book argument into the next available spot in the shopping cart and update the count. The top-level function should ask the user to enter the title, find the book in “inventory” list and call the Customer member function to add this book to her/his shopping cart.

Displaying the shopping cart should print the customer’s name, all their books and the total price in a neatly written report.

Step 1—Setting up your Main program
Create a main Shopping program that will allow the customer to buy books on Amazon. The program should allow the user to select from the menu listed above. We will use a list of books as our “inventory”. The program should read the information from data file (Books.txt) for each book and place it into the list of books in the main before displaying the menu. After each user selection, the program should complete the task, then display the menu again.

Step 2—Working with the book list
Menu items 4 and 5 should be able to be completed at this point since they simply display the entire list of books or search the list for what the user enters. Make sure you use functions to complete each task separately and call the functions in the logic for the menu selection. Menu item 6 can be started by exiting the program for now.

Step 3—Getting the customer able to create an account
Customer

-name:String

-shoppingCart:Book [ ]

-numItemsOrdered:int

-total( ):double

+Customer( )

+~Customer( )

+enterName( ):void

+display( ):void

+addToShoppingCart(item:Book):void

Write the Customer class from the UML as shown. You may add additional shipping information if you so desire. You may add get and set functions as needed. Modify the Shopping program so that the user can create a customer account. Modify menu item 6 so that checkout can now display a receipt with just the customer’s name (since the cart is empty) to test out the Customer class. You should pause the program after you display the receipt before you exit the program.

Step 4—Filling up your shopping Cart
Write the functions to add to the cart in both the Customer class and the Shopping program (see above descriptions). A user will enter the title of the book exactly as it is displayed to select the correct item to add to the cart. Edit the Customer class display method so that it displays the contents of the shopping cart after the customer’s name. The total member function is a private function, called by the display function, which returns the total price of the books in the shopping cart. Thoroughly test your program by searching for and adding multiple books to your cart and checking out. The final displayed receipt should list the customer’s name, the list of items purchased, and the total.

Extras for Experts:

Add a menu item to remove a book from a shopping cart.

Submission Guidelines:

All source code must include comments, be properly indented and use descriptive variable names where appropriate. Submit a zipped file of the project folder to the Programming Project 4 drop box in D2L. It should include Book.h, Book.cpp, Customer.h, Customer.cpp, and Shopping.cpp files. I will be looking at the code and running the program. Your grade will depend on how it compiles and runs, if the desired output is produced, comments, and programming style.

Ethical Programming Guidelines

· This is an individual assignment; the work you turn in must be yours and yours alone.

· You are free to share conceptual ideas (BUT NOT CODE) with fellow students without any computing device present.

· You are free to use any example code provided by the instructor.

· You can consult SIs and the instructor for assistance with your code, but you must have your algorithm written before you will get help.

· You may NOT share code with another student.

· You may NOT “team” code.

· You may NOT coach code another student.

· You may NOT solicit help from the Internet (forums, crowd-source your project).

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Top Grade Tutor
Accounting & Finance Mentor
Fatimah Syeda
Exam Attempter
Peter O.
Finance Homework Help
Writer Writer Name Offer Chat
Top Grade Tutor

ONLINE

Top Grade Tutor

I am a professional and experienced writer and I have written research reports, proposals, essays, thesis and dissertations on a variety of topics.

$20 Chat With Writer
Accounting & Finance Mentor

ONLINE

Accounting & Finance Mentor

I will provide you with the well organized and well research papers from different primary and secondary sources will write the content that will support your points.

$27 Chat With Writer
Fatimah Syeda

ONLINE

Fatimah Syeda

I can assist you in plagiarism free writing as I have already done several related projects of writing. I have a master qualification with 5 years’ experience in; Essay Writing, Case Study Writing, Report Writing.

$31 Chat With Writer
Exam Attempter

ONLINE

Exam Attempter

I am an elite class writer with more than 6 years of experience as an academic writer. I will provide you the 100 percent original and plagiarism-free content.

$19 Chat With Writer
Peter O.

ONLINE

Peter O.

I am an experienced researcher here with master education. After reading your posting, I feel, you need an expert research writer to complete your project.Thank You

$36 Chat With Writer
Finance Homework Help

ONLINE

Finance Homework Help

I find your project quite stimulating and related to my profession. I can surely contribute you with your project.

$26 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Power factor sign convention - Identify a case in the news that you feel displays unethical police behaviors. In a 3-page written research informative paper, answer the following questions in detail with support from research and examples. - Wshfc home advantage guidelines - Nectar in a sieve lesson plans - Tumbling turner sisters discussion questions - Classification of non verbal communication - Which worldview families use faith and reason - How the concept of health has changed overtime - Due Friday by 2 pm - It is my pleasure to attend the event - Marketing written report - Deliverable 5 - Living Will - Merger and acquisition notes for mba - MGT312T Week. 2 Apply Self-Assessment Reflection - Riverbed modeler academic edition 17.5 license - Te106 timer instructions manual - Stage 1 pdhpe lesson plans - Reasons for using effective vocal delivery in a professional context - Burner management system requirements - Social Determinants of Health Discussion - Furuno fcv 1150 transducer - Eugene onegin russian text - School Nurse D3 - Leccion 1 contextos activities spanish 2 - Informative Speech Self-Evaluation - Name the basic constructs of an ensemble model. What are the advantages and disadvantages of ensemble models? - 3m case study questions and answers - Essentials of human anatomy and physiology 12th edition pearson - Http www missionstatements com fortune_500_mission_statements html - 2 coments each one 150 words (CITATION AND REFERENCE) - Pico questions related to emergency nursing - What i see in lincoln's eyes - Wife of bath shmoop - NUR 3 - What is meant by crimes are statutory offenses - Public Policy and Response to Social Change - Eve prang plews cause of death - Limiting reagent questions and answers - Venture capital proposal template - Monsanto controversy - Acids and Bases Lab - 168 as a product of primes - Biomes in sri lanka - Write equations of parallel and perpendicular lines calculator - Http www apa org pubs databases psycinfo index aspx - My exam timetable usyd - Lord of the flies chapter 3 quiz - Latvian song and dance festival 2013 - Are fish fingers halal - Inside a stone keep castle - Human Development - Ser y estar powerpoint - Absolutely Zero PLAGIARISM - Knowledge skills abilities and other characteristics ksaos - Bronchoscopy with removal of mucus plug cpt - Business Intelligence(Discu) - Stasimon greek theatre definition - Borat kidnaps anderson real - The prince by niccolo machiavelli questions and answers - Week 2 homework - Royce's top 10 principles for modern software management - The rocky mountain district sales manager of rath publishing inc - I chop some parsley billy collins analysis - Structural steel quality control checklist - 72 raynes park road hampton - MGT301 motivation - Chocolate diamond rings at jc penneys - Sexual Orientation - Data science methodology for emails - Ink chromatography lab answer key - Why did montag go to see faber in fahrenheit 451 - Roberta kathleen parks lafayette ca - Advanced higher modern studies - Mountain view realty excel assignment answers - Cash flow provided by operating activities - Bosch ve pump operation - Hyperglycemia prefix and suffix - Swimming teacher job description - Philosophy Essay - Apa logistic regression table template - Knights in the feudal system - Worksheet 6.12 imperfect tense answer key - Battle of milvian bridge primary source - Brisbane city council forms - Paleogenomics, Neanderthals, and Denisovans - Strength of distribution channel - Sample letter to bonding company - Exploratory Analysis with What-If Tool - Aldershot and district tennis league - Rite aid pharmacy mission statement - 4 week cycle menu - Agecroft cemetery & crematorium - Does texting affect writing - Cover letter for criminal justice graduate - Deliverable 1 - Professional Ethics and Liability Protections - Question 1 Nurse - N492 Assignment Mod 4: - Http webspace ship edu cgboer perscontents html - Lesson plan on prefix and suffix - Beachcomber hot tub filter