Menu

[Solved] C Programming Assignment Copy Paste Another Answer Link Txt File Http Muploadeditcom Bbtc Q37194608

C++ Programming Assignment

Do not just copy and paste another answer tohere!!

Link to .txt file:

http://m.uploadedit.com/bbtc/1555911973664.txt

Assignment

The New York Times newspaper has published “best seller” listssince 1942. Book sales are tracked nationwide, leading to a list ofthose books which have recently sold the most copies.

You will design, implement and test a program which allows theuser to search a subset of the books which have appeared in the NewYork Times best seller lists. For simplicity, the data set willonly contain those books which have reached #1 on either of twolists (fiction and nonfiction) since 1942.

The file named bestsellers.txt contains the data set. Each lineof the file contains the information for a separate book, whichincludes: title, author, publisher, date it first reached #1 on oneof the best seller lists, and category (fiction or nonfiction).There is a tab character between fields.

The program will input the data set and construct a list ofbooks. If the list of books cannot be constructed, the program willdisplay an appropriate error message and halt.

After constructing the list of books, the program will display amenu of options and allow the user to search for books which meetcertain criteria. The menu options are:

1. Display all books in a year range: Prompt the user for twoyears (a starting year and an ending year), then display all bookswhich reached the #1 spot between those two years (inclusive). Forexample, if the user entered “1970” and “1973”, display all bookswhich reached #1 in 1970, 1971, 1972 or 1973.

2. Search for an author: Prompt the user for a string, thendisplay all books whose author’s name contains that string(regardless of case). For example, if the user enters “ST”, displayall books whose author’s name contains (or matches) the string“ST”, “St”, “sT” or “st”.

3. Search for a title: Prompt the user for a string, thendisplay all books whose title contains that string (regardless ofcase). For example, if the user enters “secret”, three books arefound: “The Secret of Santa Vittoria” by Robert Crichton, “TheSecret Pilgrim” by John le Carré, and “Harry Potter and the Chamberof Secrets”.

Assignment Notes

1. Your program will consist of at least 3 functions: a separatefunction to process each of the 3 menu options listed above.

2. You may use arrays or vectors to store the data.

3. Be sure to display the books in a reasonable and readablemanner.

4. If no books are found for a particular search, your programwill display an appropriate message (rather than simply displayingnothing).

5. Your program will continue to execute until the user selects“Q” (or “q”) as the menu option.

6. Be sure to prompt the user for the inputs in the specifiedorder. Also, your program cannot prompt the user for any otherinputs.

7. Your program will handle erroneous user inputs. If there areany problems with a particular user input, your program willdisplay the menu and allow the user to select another option.

Expert Answer


Answer to C++ Programming Assignment Do not just copy and paste another answer to here!! Link to .txt file: http://m.uploadedit.co… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *