I am new to C++, and i am really lost in this chapter of fiends and overloading, have no idea how to program this, can anyone provide make the code for this so i can see how it is done so i can do it for the rest of the exercises???
Complete the following tasks:
a. Design a class to hold a JobBid. Each JobBid contains a bid number and a quoted price. Each JobBid also contains overloaded extraction and insertion operators.
b. Include an overloaded operator<() function. A JobBid is considered lower than another JobBid when the quoted price is lower.
c. Write a main() function that declares an array of four JobBid objects. Find and display the lowest JobBid. Save the file as JobBid. cpp.
You will need to overload the << and >> as top level functions so it would be best to have methods inside JobBid that return copies of the data you are going to use for the comparison. Then you don;t need to use friend functions which are just a shortcut and are generally bad OOP practice.