Assume you have a variable sales of type Money where the latter is a structured type with two int fields, dollars and cents. Write a statement that reads two integers from standard input, a dollar amount followed by a cents amount, and store these values in the appropriate fields in sales.
struct Money
{
int dollars, cents;
};
int x, y;
cin>>x>>y;
sales. dollars = x;
sales. cents = y;
+1
Answers (2)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Assume you have a variable sales of type Money where the latter is a structured type with two int fields, dollars and cents. Write a ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » Assume you have a variable sales of type Money where the latter is a structured type with two int fields, dollars and cents.