Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

bahrom7893 Group Title

@hkim

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. hkim Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    hello

    • 2 years ago
  2. bahrom7893 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    • 2 years ago
    1 Attachment
  3. bahrom7893 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    • 2 years ago
    1 Attachment
  4. bahrom7893 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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).

    • 2 years ago
  5. bahrom7893 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.