Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ please include source code and screenshot, thanks! if you don't have screenshot please don't answer the question I need make sure the code is

C++ please include source code and screenshot, thanks!

if you don't have screenshot please don't answer the question I need make sure the code is right with screenshot!

Search and the Single Vector Type

A local hardware store rents tools and outdoor equipment. Design a class called rentalItem that stores the data about an item. The following information should be tracked: item id, a short description, cost per day of rental, availability, and renter id (the renter id will only be used if the item is checked out). Include appropriate constructors, mutators, and accessors. Overload the ==, operators to compare the itemid of one record to another.

Write a program that reads inventory items from a file into a vector. Once you have designed your class, implement a vector that will contain current rentals.

Implement a menu system that implements options to check out an item, return an item, and print a complete list of items including their current checked-in/checked-out status. The printed list should be displayed in order of id number.

the output should look likeimage text in transcribed

101 Trencher 150.00 105 Tiller 45.00 108 Drill 35.00 103 Excavator 225.00 102 Cement-Mixer 50.00 104 Lawn-Vacuum 60.00 107 Circular-saw 55.00 106 Weed-Trimmer 40.00 101 Trencher 150.00 105 Tiller 45.00 108 Drill 35.00 103 Excavator 225.00 102 Cement-Mixer 50.00 104 Lawn-Vacuum 60.00 107 Circular-saw 55.00 106 Weed-Trimmer 40.00

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 And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions