Q:

The following program reads data from the standard input into a Sales_item object and writes that Sales_item back onto the standard output

0

the following program reads data from the standard input into a Sales_item object and writes that Sales_item back onto the standard output.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include <iostream>
#include "Sales_item.h"
int main()
{
Sales_item book;
// read ISBN, number of copies sold, and sales price
std::cin >> book;
// write ISBN, number of copies sold, total revenue, and average price
std::cout << book << std::endl;
return 0;
}

 

Output:

0-201-70353-X 4 24.99
0-201-70353-X 4 99.96 24.99

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now