Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For Lab 1 , complete the file reading of ratings.txt and populate the array of members and ratings. See P 1 : Recommendations for more
For Lab complete the file reading of ratings.txt and populate the array of members and ratings. See P: Recommendations for more details.
Create a client program main called labcpp
Create a dynamic D array of strings called "members". Create a dynamic D 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
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 bookstxt and ratings.txt to your lab project. Download the project files here: pfiles.zip Download pfiles.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:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started