Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

please do in c++ Traditional Expressions Auction House sells high-end artwork for clients using a silent-bid system. Write a program that uses a class called

image text in transcribedplease do in c++

Traditional Expressions Auction House sells high-end artwork for clients using a silent-bid system. Write a program that uses a class called artwork to create objects that will store the following information: Description A 4-digit code assigned to an artwork. Each code will only be used once when it is assigned to a particular piece of art A 4-digit code assigned to an owner-client. An owner may have more than one artwork available for auction at any given time The name of the artist who created the artwork The name of the artwork The minimum amount of money the owner will accept as a bid for the auction The highest bid made so far. Data Member Artwork ID Owner ID Artist Title Minimum Bid Current High Bid Bidder ID A 4-digit code assigned to bidders. This data member will hold the ID number of the bidder who has the current highest bid The class should have two constructors One constructor requires the artwork id and owner id to be stored to the object. Artist and title should be initialized to empty strings. Minimum bid, current high bid, and bidder id should be initialized to 0 The second constructor requires all members except for current high bid and bidder id to be sent to the object and stored. Current high bid and bidder id should be initialized to 0 . . The class should have standard assessors and mutators for artist, title, and minimum bid Once artwork id and owner id are set via the constructor, they should not be changed The class should have a member function called makeBid(...) that sends a bid to the object . makeBid should accept two parameters: a bid and a bidder id If the bid is equal to or higher than the minimum bid and the bid is higher than the current high bid, store the bid to current high bid and the bidder's id to bidder id If the bid is accepted, the member function should return true. If the bid is not higher than the current high bid, the function should return false . The class should have a member function called show(...) that neatly displays all data within the object Label each field appropriately

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students explore these related Databases questions