Question: Create a client program ( ma in ) called lab 1 . cpp . Create a dynamic 1 D array of strings called members. Create

Create a client program (ma in) called lab1.cpp.
Create a dynamic 1D array of strings called "members". Create a dynamic 2D array of integers called "ratings". The rows of the "ratings" array is associated with the members and the columns will associated with the book ratings (which can be values -5,-3,-1,0,1,3,5).
Open and read from the "ratings.txt" file (only once!) and populate the members and ratings with all the member and book ratings information read from file. The user must specify the file path for the data file; however, for testing, you can add these files (books.txt and ratings.txt) to your lab1/ project. Download the project files here: p1- files.zip (you will only be using "ratings.txt" for this lab!)
Populate the "members" array with the member names and the "ratings" array with that members' ratings.
Since the first two lines of the "ratings.txt" file include:
Brandon Moose
5500000030001005305003350
!'
 Create a client program (ma in) called lab1.cpp. Create a dynamic

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!