bahrom7893
  • bahrom7893
@hkim
Computer Science
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
hello
bahrom7893
  • bahrom7893
1 Attachment
bahrom7893
  • bahrom7893
1 Attachment

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

bahrom7893
  • bahrom7893
That's my code, and finally, convo with prof: I asked you a couple of questions yesterday, but I still don't understand the asignment. So what I understand is, that: 1) A certain sales order has a bid price, number of lots, and an account number, users must be able to create a new order. 2) A buyer has to be able a new bid price and the number of lots, on an existing order 3) If the new bid price is higher than the existing bid price, then the order must be executed, and the existing order must be updated. 4) If the order has been executed, we can't execute it anymore, and for that we use executable function which would compare the entered account #, bid price, and # of lots to the existing bid price and the # of lots in that account. His response: 1) sounds right. 2) no, once placed, sales orders cannot be altered 3) yes, assuming that the order has not already been executed 4) no, the executable member function will not depend upon the account number or number of lots - it only depends on the offer price passed to the function, the bid price stored inside the object, and whether or not the order has been executed (that last piece of data must also be stored inside the object).
bahrom7893
  • bahrom7893
And then I sent him that code, and got this: (1) Your salesOrder class has no data members. This can't be right. (2) You have vectors of integers locally declared in the salesOrder constructor - this is WRONG. You need to have a vector of salesOrder objects in the main function. Also input is not useful in the constructor. (3) In the main function, you are trying to call the constructor in an incorrect manner. We will go over constructors on Monday

Looking for something else?

Not the answer you are looking for? Search for more explanations.