summaryrefslogtreecommitdiff
path: root/2p41-1p20.cpp
diff options
context:
space:
mode:
Diffstat (limited to '2p41-1p20.cpp')
-rw-r--r--2p41-1p20.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/2p41-1p20.cpp b/2p41-1p20.cpp
new file mode 100644
index 0000000..8cbd0b1
--- /dev/null
+++ b/2p41-1p20.cpp
@@ -0,0 +1,25 @@
+#include <iostream>
+#include "sales_item.hpp"
+
+/*
+ *
+ * 2.41 - 1.20
+ *
+ *
+ */
+
+struct SalesData {
+ std::string BookNo;
+ unsigned int UnitsSold = 0;
+ double Revenue = 0.0;
+};
+
+int main () {
+
+ SalesData book1;
+ while(std::cin >> book1.BookNo >> book1.UnitsSold >> book1.Revenue) {
+ std::cout << book1.BookNo << " " << book1.UnitsSold << " " << book1.Revenue << std::endl;
+ }
+
+ return 0;
+}