How to submit your solution Figures Please upload the class's implementation cpp file to Blackboard. Since the assignment consists of one file, there is no need to compress it. Please do not submit your compiled code or LINKS to online editors. Testing write to standard output. The operator<< (ostream& ... should be defined) +--- ---- ------------- + | Screen Size | Weight | Brand | Resolution Struct Television: | 55 | 64 | 85 | 83 | 22 I 50 | 70 | 15 | 27.7 | 26.7 | 22.9 | 20.2 | 8.7 | 23.9 | 29.9 I 5.8 | TCL | LG | Samsung I TCL | LG | Sony | TCL | Sony | 1224 X 600 | 480 X 480 | 720 X 720 | 1280 X 1280 | | 2160 X 2160 | | 1366 X 768 | 1280 X 1280 | | 1366 X 768 | The struct's definition is missing the definitions of the following operators, please read the documentation before each operator. Your program is expected to write the contents to a binary file, read the contents from a binary file, format and print information to standard output as shown in Figure 1. Note: v Please do not modify the provided main() Hints: * Develop the fstream insertion and extraction operators incrementally and in parallel. Write one statement to write one member to file and then read it. Once working, add write/read of the second member * Lab 20 concepts are extremely helpful for this assignment. Remember when writing strings, we must write the number of characters first then the actual string. When reading, read the number of characters, resize the string variable, then read the actual string characters: Testing write to file. The operator<< (ofstreams ... should be defined) Done writing to Television.bin Grading: Remember that the code must compile and run. Testing read from file. The operator>> (ifstreama ... should be defined) +------- Points +-------------+ Item | Screen Size | Weight | Brand | Resolution I operator « 33 --------+ 33 operator > operator « | 55 | 64 | 85 | 83 | 22 | 50 | 70 | 15 | 27.7 | 26.7 | 22.9 | 20.2 | 8.7 | 23.9 | 29.9 | 5.8 | TCL | LG | Samsung | TCL | LG | Sony | TCL | Sony | 1224 X 600 | 480 X 480 | 720 X 720 | 1280 X 1280 | | 2160 X 2160 | | 1366 X 768 | 1280 X 1280 | | 1366 X 768 34 100 Figure 1: program output

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
How to submit your solution
Figures
Please upload the class's implementation cpp file to Blackboard. Since the assignment consists of one file, there is no need
to compress it. Please do not submit your compiled code or LINKS to online editors.
Testing write to standard output. The operator<< (ostream& ... should be defined)
+-
| Screen Size | Weight
| Brand
| Resolution
Struct Television:
+-
| 55
| 64
| 85
| 83
| 22
| 50
| 70
| 15
| 27.7
| 26.7
| 22.9
| 20.2
| 8.7
| 23.9
| 29.9
| 5.8
| TCL
| LG
| Samsung
| TCL
| LG
| Sony
| TCL
| Sony
| 1224 X 600
| 480 X 480
| 720 X 720
| 1280 X 1280 |
| 2160 X 2160 |
| 1366 X768
| 1280 X 1280 |
| 1366 X 768
The struct's definition is missing the definitions of the following operators, please read the documentation before each
operator. Your program is expected to write the contents to a binary file, read the contents from a binary file, format and
print information to standard output as shown in Figure 1.
Note:
V Please do not modify the provided main()
Hints:
* Develop the fstream insertion and extraction operators incrementally and in parallel. Write one statement to
write one member to file and then read it. Once working, add write/read of the second member .
Lab 20 concepts are extremely helpful for this assignment. Remember when writing strings, we must write the
number of characters first then the actual string. When reading, read the number of characters, resize the string
variable, then read the actual string characters:
Testing write to file. The operator<< (ofstream& ... should be defined)
Done writing to Television.bin
Grading:
Remember that the code must compile and run.
Testing read from file. The operator>> (ifstream& ... should be defined)
+----
Item
Points
| Screen Size | Weight
| Brand
| Resolution
operator «
operator >
33
+---
33
| 55
| 64
| 85
| 83
| 22
| 50
| 70
| 15
| 27.7
| 26.7
| 22.9
| 20.2
i 8.7
| 23.9
| 29.9
| 5.8
| TCL
| LG
| Samsung
| TCL
| LG
| Sony
| TCL
| Sony
| 1224 X 600
| 480 X 480
| 720 X 720
| 1280 X 1280 |
| 2160 X 2160 |
| 1366 X 768
| 1280 X 1280 |
| 1366 X 768
operator «
34
100
+-
Figure 1: program output
Transcribed Image Text:How to submit your solution Figures Please upload the class's implementation cpp file to Blackboard. Since the assignment consists of one file, there is no need to compress it. Please do not submit your compiled code or LINKS to online editors. Testing write to standard output. The operator<< (ostream& ... should be defined) +- | Screen Size | Weight | Brand | Resolution Struct Television: +- | 55 | 64 | 85 | 83 | 22 | 50 | 70 | 15 | 27.7 | 26.7 | 22.9 | 20.2 | 8.7 | 23.9 | 29.9 | 5.8 | TCL | LG | Samsung | TCL | LG | Sony | TCL | Sony | 1224 X 600 | 480 X 480 | 720 X 720 | 1280 X 1280 | | 2160 X 2160 | | 1366 X768 | 1280 X 1280 | | 1366 X 768 The struct's definition is missing the definitions of the following operators, please read the documentation before each operator. Your program is expected to write the contents to a binary file, read the contents from a binary file, format and print information to standard output as shown in Figure 1. Note: V Please do not modify the provided main() Hints: * Develop the fstream insertion and extraction operators incrementally and in parallel. Write one statement to write one member to file and then read it. Once working, add write/read of the second member . Lab 20 concepts are extremely helpful for this assignment. Remember when writing strings, we must write the number of characters first then the actual string. When reading, read the number of characters, resize the string variable, then read the actual string characters: Testing write to file. The operator<< (ofstream& ... should be defined) Done writing to Television.bin Grading: Remember that the code must compile and run. Testing read from file. The operator>> (ifstream& ... should be defined) +---- Item Points | Screen Size | Weight | Brand | Resolution operator « operator > 33 +--- 33 | 55 | 64 | 85 | 83 | 22 | 50 | 70 | 15 | 27.7 | 26.7 | 22.9 | 20.2 i 8.7 | 23.9 | 29.9 | 5.8 | TCL | LG | Samsung | TCL | LG | Sony | TCL | Sony | 1224 X 600 | 480 X 480 | 720 X 720 | 1280 X 1280 | | 2160 X 2160 | | 1366 X 768 | 1280 X 1280 | | 1366 X 768 operator « 34 100 +- Figure 1: program output
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Math class and its different methods
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education