Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Other

COS2614 assignment 3 solutions 2025

Rating
-
Sold
6
Pages
6
Uploaded on
23-05-2025
Written in
2024/2025

COS2614 assignment 3 solutions 2025 THIS document contains step by step solutions with two links to download the .zip file from one drive and google drive. if troble getting the zip file or any other help 07-1-3-1-5-5-2-2-0 please feel free

Show more Read less
Institution
Course

Content preview

COS2614 Assignment 3 - Library Management System
If Need help 0793226427 downloading .zip File or with
anything please. Follow the link to access the .zip file
or reach me for easier access
https://drive.google.com/file/d/1XMn9BWb6V2swF_ia4
eyXYaacz9crkYA_/view?usp=drive_link
Google drive
Or
One drive
COS2614_Assignment3_LibrarySystem.zip



This document provides a summary and steps of the COS2614 Assignment 3 Qt-based
Library Management
System project.
Features Implemented:
- Object-oriented class design with inheritance and polymorphism
- Template-based generic storage container
- GUI using Qt Widgets (QMainWindow, QListWidget, QLineEdits, QPushButtons)
- Functionality to add Books and Magazines
- Search feature by title
- File structure prepared for file persistence (QFile and QTextStream)
- Custom utility library created for reusability


Setup Instructions:
1. Open the project in Qt Creator.
2. Build the project using C++17 or later.

, 3. Run the application to interact with the system.


User Interface Overview:
- Input fields allow you to enter title, author, ID, genre (for books), and issue number (for
magazines).
- Buttons to add Book or Magazine, and to search for existing items.
- List widget to show search results and item list.
This project is designed to be modular, maintainable, and demonstrates a clear
application of core
concepts in C++ and Qt.
#ifndef LIBRARYITEM_H #define LIBRARYITEM_H #include <QString> class
LibraryItem { protected: QString title; QString author; int id; public:
LibraryItem(const QString& title, const QString& author, int id); virtual
~LibraryItem() {} QString getTitle() const; QString getAuthor() const; int
getId() const; void setTitle(const QString& title); void setAuthor(const
QString& author); void setId(int id); virtual QString displayInfo() const =
0; }; #endif




🔹 2. Book.h and Book.cpp

Book.h
cpp
CopyEdit
#ifndef BOOK_H #define BOOK_H #include "LibraryItem.h" class Book : public
LibraryItem { private: QString genre; public: Book(const QString& title,
const QString& author, int id, const QString& genre); QString getGenre()
const; void setGenre(const QString& genre); QString displayInfo() const
override; }; #endif


Book.cpp
cpp
CopyEdit
#include "Book.h" Book::Book(const QString& title, const QString& author, int
id, const QString& genre) : LibraryItem(title, author, id), genre(genre) {}
QString Book::getGenre() const { return genre; } void Book::setGenre(const
QString& genre) { this->genre = genre; } QString Book::displayInfo() const {
return QString("Book: %1 by %2 [ID: %3, Genre: %4]")
.arg(title).arg(author).arg(id).arg(genre); }

Written for

Institution
Course

Document information

Uploaded on
May 23, 2025
Number of pages
6
Written in
2024/2025
Type
OTHER
Person
Unknown

Subjects

$9.02
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TsireT Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
59
Member since
1 year
Number of followers
1
Documents
36
Last sold
2 months ago
intell

4.8

8 reviews

5
6
4
2
3
0
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions