Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you explain this to me? The solution I created does not run properly. Sprint 12:46 PM @ 49%. s3.us-east-1.amazonaws.com Objectives: The major advantage of

Can you explain this to me? The solution I created does not run properly.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Sprint 12:46 PM @ 49%. s3.us-east-1.amazonaws.com Objectives: The major advantage of using structs is to make the C++ code simpler, easier to read, and easier to work with. After completing this assi t, students will be able to . use structs to create and/or introduce new custom data types implement structs to group fixed numbers of pieces of data of different types implement structs within structs chaining using the dot operators to access nested fields copy an entire structure create an array of a structured data type combine structs and arrays with one another ProgramDescription: Mary has found a collection of books Books.txt) and a list of her favorite authors (Authors.txt) Your goal is to write a program for Mary, that allows her to browse both the book list and her favorite author list. The program should also display books written by her favorite authors in addition to their nationality which she does not know The main function should only contain the Menu function, which must display the available options. The program must only terminate upon the user's command (you can include this as an option). The rest of the functionality should be invoked through functions from within Menu There are two .txt files. Each line in a file corresponds to an entry. You should store all information on a s dedicated to each file Do NOT use global variables. If you do so there will be a deduction of 10 points from your total Books.txt 1, Book title 2. Author name 3. Year of publication in English lan 4. Lan 5. Genre originally written in Authors.txt 1. Name 2. Date of Birth Sprint 12:46 PM @ 49%: s3.us-east-1.amazonaws.com Authors.txt 1. Name 2. Date of Birth 3. Most Notable Book Mary wants to be able to read the file. Create a Book struct that will retain all information that is present in the file. Create an array that will contain such information. From the first menu option, allow Mary to print the list. The underscores in the title and author name should be removed. Similarly, Mary wants to print her favorite author List. Create arn Author struct. Also, create a Date struct which will be an attribute of the Author struct, representing the date of birth. Finally, adda nationality attribute which will not be filled when reading the file. Just like in Task 1, create an authors array of type struct. From the second menu option, print the authors; the date of birth should exclude the day even though it is included in the file(whether the Date struct will contain a "day" attribute is up to you. The underscore in the author's name and most notable work should be Mary wants to find books by her favorite authors in the list. The third option in the menu, should print the author, his nationality (same as language book was originally written in), and the book title. There will only be one book matched for each author When trying to remove the underscores, remember that a string is an and that each character can be manipulated array of c Use Please check the attached Grading Rubric" for the te functions for print and for readin criteria. Submission notes for Task Zip the entire Code: Blocks project containing all the .cpp, h, cbp files and name the zipped file "Assgl cslogin.zip", where the cslogin is your login ID for the computers at the t of Computer Science at ODU Submit the z file using the a Blackboard link Sample output of Tasks: 1 Sprint @ 49% D. 12:46 PM s3.us-east-1.amazonaws.com Sample output of Tasks: 1. Print Books 2. Print Authors Print Matches Terminate Enter Selection: ruki Murakan yodor Dostoevsky harles Bukowski A Wld Sheep Chase 9/1828 1/182 and Punishment The Last Temptat orpe Orve1 /1903 12/1608 Print Books 2. Print Authors Terminate The Brothers e Telstoy Enter Selection Assignment_1_Description.docx (116.672 KB) Authors.txt (297 B) Books.txt (662 B) Sprint 12:47 PM 49%. a s3.us-east-1.amazonaws.com C Haruki Murakami 01/12/1949 A Wild Sheep Chase Leo_Tolstoy 09/09/1828 War_and_Peace Fyodor Dostoevsky 11/11/1821 Crime and Punishment Nikos_Kazantzakis 02/18/1883 The Last_Temptation Charles Bukowski 08/16/1929 Post Office George_Orwell 06/25/1903 1984 John Milton 12/09/1608 Paradise Lost Sprint 12:47 PM @ 49%: a s3.us-east-1.amazonaws.com C The Name of_the Rose Umberto_Eco 1983 Italian MysterY Norwegian Wood Haruki _Murakami 2000 Japanese Fiction The Name of_the Wind Patrick_Rothfuss 2007 English Fantasy The Girl with_the_Dragon_Tattoo Stieg_ Larsson 2005 Swedish Thriller The Brothers Karamazov Fyodor Dostoevsky 1880 Russian Fiction Demonic Males Richard Wrangham 1997 English Non- Fiction War_and Peace Leo_Tolstoy 1899 Russian Historical- Fiction Baudolino Umberto Eco 2000 Italian Historica1- Fiction The Lies_of_Locke_Lamora Scott Lynch 2006 English Fantasy The Last of the Wine Mary_Renault 1956 English Historical-Fictiorn Brave_New_World Aldous_Huxley 1932 English Science Fiction

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

LO2 Compare three types of individual incentives.

Answered: 1 week ago