Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
Given the following code fragment, which of the following correctly obtains user input and assigns it to numOfBedrooms?
Given the following code fragment, which of the following correctly obtains user input and assigns it to numOfBedrooms?
struct houseType {string style;int numOfBedrooms;double price;};
int main() {houseType myPad;}
1. cin >> myPad.numOfBedrooms;
2. cin >> myPad;
3. none of the above