The student information is seperated by a comma and is in the following format : Name,Surname,Email,Age,StudentNumber Notice how the first line in the file contains a heading. This line should be ignored by your code when processing the file. You may not modify the Data.txt file. Write the code for the function named splitSingleStudent ( string[],string ). splitSingleStudent receives an array and a signle line from the file as parameter. The function then splits the line received from the file and loads the array parameter with the correct values. The array parameter should be loaded as follows : Index 1: Name Index 2 : Surname Index 3 : Email Index 4: Age In the main function open the file named Data.txt and read from the file the information for the first student only into the array named stdentDetAr. Make use of the function splitSingleStudent ( string[],string).

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter6: Managing Multiple Worksheets And Workbooks
Section: Chapter Questions
Problem 21RA
icon
Related questions
Question
Question 2
You have been provided with a QTCreator
project called Project13 _ Student. Open the
project in QTCreator and make the necessary
changes to the main.cpp file. You have been
provided with file named Data.txt. Data.txt
contains information about students. Each line
contains the information for one student.
Data.bt - Notepad
File Edit Format View Help
Name, Surname, Email,Age,StudentNumber
Tobias, Chambers,Tobia.CHAMB5651@mail2web.com,18,321068734
Santiago,Ortiz,Santiago.ORT7636@yahoo.com, 23,2560830790
Bristol, Ayers, Bristol.AYE5400@mail2web.com,29,0676653730
Annie, Kane, Annie. KAN3627@hushmail.com,19,0444202990
Rosemary, Bryant,Rosem.BRY8313@gmail.com, 20,785505493
Transcribed Image Text:Question 2 You have been provided with a QTCreator project called Project13 _ Student. Open the project in QTCreator and make the necessary changes to the main.cpp file. You have been provided with file named Data.txt. Data.txt contains information about students. Each line contains the information for one student. Data.bt - Notepad File Edit Format View Help Name, Surname, Email,Age,StudentNumber Tobias, Chambers,Tobia.CHAMB5651@mail2web.com,18,321068734 Santiago,Ortiz,Santiago.ORT7636@yahoo.com, 23,2560830790 Bristol, Ayers, Bristol.AYE5400@mail2web.com,29,0676653730 Annie, Kane, Annie. KAN3627@hushmail.com,19,0444202990 Rosemary, Bryant,Rosem.BRY8313@gmail.com, 20,785505493
The student information is seperated by a
comma and is in the following format :
Name,Surname,Email,Age,StudentNumber
Notice how the first line in the file contains a
heading. This line should be ignored by your
code when processing the file.
You may not modify the Data.txt file.
Write the code for the function named
splitSingleStudent ( string[],string ) .
splitSingleStudent receives an array and a
signle line from the file as parameter.
The function then splits the line received from
the file and loads the array parameter with
the correct values. The array parameter
should be loaded as follows :
Index 1: Name Index 2 : Surname Index 3 :
Email Index 4 : Age
In the main function open the file named
Data.txt and read from the file the information
for the first student only into the array named
stdentDetAr.
Make use of the function splitSingleStudent (
string(],string) .
Transcribed Image Text:The student information is seperated by a comma and is in the following format : Name,Surname,Email,Age,StudentNumber Notice how the first line in the file contains a heading. This line should be ignored by your code when processing the file. You may not modify the Data.txt file. Write the code for the function named splitSingleStudent ( string[],string ) . splitSingleStudent receives an array and a signle line from the file as parameter. The function then splits the line received from the file and loads the array parameter with the correct values. The array parameter should be loaded as follows : Index 1: Name Index 2 : Surname Index 3 : Email Index 4 : Age In the main function open the file named Data.txt and read from the file the information for the first student only into the array named stdentDetAr. Make use of the function splitSingleStudent ( string(],string) .
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
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
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L