Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create 3 vectors to contain the values for the names, scores, IDs, respectively. The vectorfor the names should be of string type, while the other

Create 3 vectors to contain the values for the names, scores, IDs, respectively. The vectorfor the names should be of string type, while the other two should be integer type. Read from the scores.txt file in order to store all the necessary values on the vectors.(Hint: use pushback for each of them) After the user presses command v, display a table with each of the values for the names,scores, and IDs. When displaying the values on the table, use a column width of 15 for the name, and acolumn width of 7 for the rest of the columns (Hint: use setw()) Left justify the column for the day, and Right justify the rest of the columns. When the user presses command a, add each of the values for the new score. Then, saveeach of those values in their respective vectors. After the user presses command x, the program ends

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

What are the advantages and disadvantages of meetings?

Answered: 1 week ago

Question

Answered: 1 week ago

Answered: 1 week ago