subject

Design solution: The program will have a master book list of all books which is provided in the template file. Some of the books will be available and some are not. A customer would only able to checkout available books. Each of the item in the list contains a title of a book and its availability. You will need to implement a string manipulation logic to find out available books to checkout. The program will have a menu for actions available to the customer. A customer will be able to choose the following options from the menu: 1. display all books: Display all the books in the master book list with its availability information 2. add books to the cart (only available books can be added to the cart): Customer will only be able to add a book that title is in the list and its available. Once added, the status of the books needs to make unavailable. Display the master list after addition. 3. delete a book from cart: Customer will enter the name of the book and the program will look for the book in the checkout list to be deleted from. Once deleted, the master book list needs to be updated so that the deleted book from the list becomes available again. Display the master list after deletion. 4. check out books: Display the list of the books that are being selected by the user. 5. exit/terminate the program. Notes: The customer cart should be implemented as a separate list. Any addition/deletion of items should be done in this list. Books should not be added or deleted from the master book list. The program needs to be case sensitive. Customer can enter the name that can have all small letter but the program should still be able to find the book if in the master list. You need to write a pseudocode for the planning of the program and needs to be submitted inside the template file. Welcome to library checkout system Available options: 1: See menu 2: Add book 3: Delete a book from cart 4: Checkout 5: Exit Enter option: 1 List of books Title Availability Girl With No Name Available Despicable Me Unavailable Journey To The Moon Available The Calculating Stars Unvailable Available options: 1: See menu 2: Add book 3: Delete a book from cart 4: Checkout 5: Exit Enter option: 2 Enter book title to add to cart: Girl with no name Book added: Girl With No Name Current List of books Title Availability Girl With No Name Unavailable Despicable Me Unavailable Journey To The Moon Available The Calculating Stars Unvailable Available options: 1: See menu 2: Add book 3: Delete a book from cart 4: Checkout 5: Exit Enter option: 2 Enter book title to add to cart: Journey to the moon Book added: Journey To The Moon Current List of books Title Availability Girl With No Name Unavailable Despicable Me Unavailable Journey To The Moon Unavailable The Calculating Stars Unvailable Available options: 1: See menu 2: Add book 3: Delete a book from cart 4: Checkout 5: Exit Enter option: 3 Enter book title to delete: Girl with no name Girl With No Name deleted from cart Current List of books *** Title Availability Girl With No Name Available Despicable Me Unavailable Journey To The Moon Unavailable The Calculating Stars Unavailable *** Available options: 1: See menu 2: Add book 3: Delete a book from cart 4: Checkout 5: Exit Enter option: 4 Please return the books within 90 days Your book cart: Journey To The Moon Available options: 1: See menu 2: Add book 3: Delete a book from cart 4: Checkout 5: Exit Enter option: 5 Thanks for using library checkout system

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 20:00, jwagner2277
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data.
Answers: 1
image
Computers and Technology, 22.06.2019 22:00, lgary9462
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass. cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array. c . run this program and observe the results.
Answers: 1
image
Computers and Technology, 23.06.2019 00:30, hannahrasco4051
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
image
Computers and Technology, 23.06.2019 04:20, milkshakegrande101
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy. a. a fire occurs on the premises, and the building isbadly damaged. b. a burglar steals some money and securities from anunlocked safe. c. a business computer is damaged by vandals whobreak into the shop after business hours. d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm. til
Answers: 2
You know the right answer?
Design solution: The program will have a master book list of all books which is provided in the temp...

Questions in other subjects:

Konu
Mathematics, 14.05.2021 02:40
Konu
Mathematics, 14.05.2021 02:40
Questions on the website: 13722361