Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

- You have the option to complete the task either as a group or as an individual. This means that you can work on the

image text in transcribed
image text in transcribed
- You have the option to complete the task either as a group or as an individual. This means that you can work on the assignment with your classmates or complete it on your own, whichever option suits you best. - If you choose to work in a group, you should make sure to collaborate effectively and ensure that everyone is contributing to this task equally. - In this Lab, we are going to plan out and write a class definition that stores information for a book. Let's say we want to store the following information about this book: The book's name The book's author(s) (a book can have more than one author) The book's publisher The book's ISBN number The book's price The book's year of publication 1. What is a suitable name for this class? (Pick a name that best describes it). 2. What attributes should this class have? a. Consider the information that needs to be stored and what attribute types you need to create. 3. What methods do you think would be essential for this class? a. Do we need getters/setters? Consider the attributes needed and what operations this class needs to support. Justify briefly each operation chosen. First, answer the following questions before the design: After answering the questions above, Design a UML diagram alongside a description of each method that reflects your class design. Type this in a Word document and export your answer and design as a PDF. Use good formatting and proper spelling and grammar. Additionally, include your name in the document. Part 2 Instructions In the next part, we will write the class definition in C++ and perform a test on it. Create a new C++ program that has two files: - Book.h - TestBook.cpp - Note that you may also create an additional .cpp file if you like to separate your method definitions from your class definition. Use the UML diagram you created in Program I to define your class in the header file (i.e., "Book.h"). Once your definition is complete, perform a series of tests by creating objects that store information about real books. You may use whatever books you want but be sure that at least some of the chosen books have multiple authors

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

LO3 Define job design and identify common approaches to job design.

Answered: 1 week ago