Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the sample data file: name,email,rate Breanna Dunn,bdunn@hotmail.edu, $22.54 Emi Valdez,emi.valdez@google.coom,$52.91 Yuli Adams,yuli_a@yahoo.com,$36.26 Faith Osborn,fosborn@google.com, $48.14 And the following declarations: string name[10]; string email{10]; double

Given the sample data file:

name,email,rate Breanna Dunn,bdunn@hotmail.edu, $22.54 Emi Valdez,emi.valdez@google.coom,$52.91 Yuli Adams,yuli_a@yahoo.com,$36.26 Faith Osborn,fosborn@google.com, $48.14

And the following declarations:

string name[10]; string email{10]; double rate[10]; ifstream Fin:

Assuming the file has been read into "Fin" and the header has been removed. Write the code that should go in the while block in order to input the data into the Array variables' name, email, and rate :

while-loop{

}

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

Students also viewed these Databases questions