You are tasked with writing a C++ program that simulates a simple library system. The program should allow users to check out and return books, display available books, and keep track of late returns. Here are the specific program details: The program should start with an initial list of at least 10 books in the library, each with a unique identifier, title, and availability status. Allow the user to check out a book by entering the book's identifier. • If the book is available, mark it as checked out and display a due date (assume a 14-day checkout period). If the book is already checked out, inform the user. Allow the user to return a book by entering the book's identifier. * If the book is returned on time, update the availability status. . • If the book is returned late, display a message indicating a late return and calculate the late fee (assume a fee of $0.50 per day). • Provide an option to display the current list of available books in the library. Please write a C++ program following the specified requirements and make sure to include comments for clarity and self-documentation.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question
Don't give me AI generated answer or plagiarised answer.
You are tasked with writing a C++ program that simulates a simple library system. The
program should allow users to check out and return books, display available books,
and keep track of late returns. Here are the specific program details:
The program should start with an initial list of at least 10 books in the library, each with
a unique identifier, title, and availability status.
* Allow the user to check out a book by entering the book's identifier.
• If the book is available, mark it as checked out and display a due date (assume a
14-day checkout period).
* If the book is already checked out, inform the user.
Allow the user to return a book by entering the book's identifier.
If the book is returned on time, update the availability status.
* If the book is returned late, display a message indicating a late return and
calculate the late fee (assume a fee of $0.50 per day).
Provide an option to display the current list of available books in the library.
Please write a C++ program following the specified requirements and make sure to
include comments for clarity and self-documentation.
Transcribed Image Text:You are tasked with writing a C++ program that simulates a simple library system. The program should allow users to check out and return books, display available books, and keep track of late returns. Here are the specific program details: The program should start with an initial list of at least 10 books in the library, each with a unique identifier, title, and availability status. * Allow the user to check out a book by entering the book's identifier. • If the book is available, mark it as checked out and display a due date (assume a 14-day checkout period). * If the book is already checked out, inform the user. Allow the user to return a book by entering the book's identifier. If the book is returned on time, update the availability status. * If the book is returned late, display a message indicating a late return and calculate the late fee (assume a fee of $0.50 per day). Provide an option to display the current list of available books in the library. Please write a C++ program following the specified requirements and make sure to include comments for clarity and self-documentation.
Expert Solution
steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,