Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help 5:40 PM s3.us-east-1.amazonaws.com Sprint Obicctive The main objcctine of this assignment is checking stodents ability to implement membershp functions. After completing this assigmment,

Please help image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
5:40 PM s3.us-east-1.amazonaws.com Sprint Obicctive The main objcctine of this assignment is checking stodents ability to implement membershp functions. After completing this assigmment, students will be able to: eimplement member functions . convert a member function into a standalone function . convert a standalone function into a member function e call member functions use ateuets for function overloading . Problemdesrietien in this assignment, we will revisit Astignment #1 Mary has now created a small commercial library and has managed to collect sales data She wants to be able to print the books based on sales, and the list of authors based on their date of birth. This assignment needs the structs Book, Authoe, Date, and Library Processing inventery: She wants to display the books by popularity, thus the program must print the books based on sales, from highest to lowest. You will need to save the output into a text file named OrderedBooks.et. Utsilize the Book stract to implement the desired functionality Similarly, Mary is intested in displaying the authors by age, printing the oldest authors fist An output filed OrderedAuthors.xr should be created. Appropriate operations must be implemented inside the Author struct, and properly use the Data stract to compare author ages. Finally, utilize the Library struact to store the lists of authoes and books, and contain the functionality that the librarian requires You must use both member functions and non-member functions. One of the Book or Author sorting mechanisms must be implemented via member function (you can choose which) and the other with a non-member function You must use constructors to initialize all data variables in struets with default values at the beginning of the program. Use of global variables will incur a deduction of 10 points from your total points Sample Output Date of Birth Notable Work hn Milton yodor Dostoevsky eo Tolstoy kos Kazantzakis eorge Orvell 12/1608 11/1821 Paradise Lost Crime and Punishment /1883 The Last Temptation Sprint 5:40 PM 99600 s3.us-east-1.amazonaws.com 2 of 3 Date of Birth Notable Work hn Milton yodor Dostoevsky eo Tolstoy kos Kazantzakis eonge Onvell harles PBukowski aruki Murakami 12/1688 11/1821 /1828 /1883 Paradise Lost Crime and Punishment The Last Temptation Post office 8/1929 1/1949 A Wild Sheep Chase Print Books 2. Print Authors 3 Print Matches 4 Tersinate Enter Selection ationality yodor Dstoevsky Leo Tolstoy Enter Selection '11 Sprint 5:40 PM s3.us-east-1.amazonaws.com C 3 of 3 ationality The Brother Leo Tolstoy Print Books Tereinate Enter Selection Please check the attached "Grading Rubric" for the grading criteria. Submit the entire project folder which includes all files froem your project, especially the pp, h and chp fileis) . Zip the project folder and name it as "Assg4 eslogin", where the eslogin is your login ID for the computers at the Department of Computer Science at ODU. To zip the folder, Right click om it and select "send to" and then click "compressed (zipped) folder Submit the zipped file to the respective Blackboard link. Sprint ? 5:40 PM 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 Orwel1 06/25/1903 1984 John Milton 12/09/1608 Paradise Lost .11 Sprint 5:41 PM a s3.us-east-1.amazonaws.com C The Name of the Rose Umberto Eco 1983 Italian Mystery 12000 Norwegian Wood Haruki _Murakami 2000 Japanese Fiction 6000 The Name of_the Wind Patrick_Rothfuss 2007 English Fantasy 4920 The Girl with_the_Dragon_Tattoo Stieg_ Larsson 2005 Swedish Thriller The Brothers Karamazov Fyodor Dostoevsky 1880 Russian Fiction 6948 Demonic Males Richard Wrangham 1997 English Non- Fiction 1209 War_and Peace Leo_Tolstoy 1899 Russian Historical- Fiction 5890 Baudolino Umberto Eco 2000 Italian Historica1- Fiction 2134 The Lies_of_Locke_Lamora Scott Lynch 2006 English Fantasy 6676 The Last of the Wine Mary Renault 1956 English Historical-Fictiorn Brave_New_World Aldous_Huxley 1932 English Science- Fiction 4677 7049 579

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

Step: 3

blur-text-image

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions

Question

explain what is meant by experiential learning

Answered: 1 week ago

Question

identify the main ways in which you learn

Answered: 1 week ago