Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need Help With Class Work In C++ Directions: Using TEXT data files and structure

ID: 3568126 • Letter: N

Question

Need Help With Class Work In C++

Directions:

Using TEXT data files and structures

Part 1:

Create a text file by entering user input from the keyboard. The data for the file is attached.

Each line contains the last and first name of a person, the letter S or N and two integer numbers.

Part 2: - (a separate program)

Read the text from the data file into a structure and print it out.

In the listing (print out), print the first name first and then the last name followed by the other data in the same record.

Here is the data for the file:

Smith John                     N           3            2
Jobs Steven                   S            9            3
Capone Al                      N             3            2
Jackson Michael            S            8            1
Humphrey H                   S           8            2
Rinehard Jim                 N            3            1
Eastman Ken                 N             1           1
Winston Salem              S            8            3
Smythe Susan               S             9            1
Kendricks Al                  S             9            2
Allison Dennis               S            8             3
Greenblatt Richard        S             10           1
Davis Bob                      S             10           3
Woods Bill                      S             10         2
Borax M T                       S             9           2
Henry John                     N             1            2
Stevanson E                   N              1           3
Williams Ken                  N              2           1
Smith Martha                 N             2            2
Koch Joe                        N              2           3
Packard H P                   N             3             3
Rinehart Jane               N              3             2
Swenson Cecil               N              4              1
Cory Troy                       N              4              2
Byes Nikoline                N              4               3
Byes Jennifer                 N              5               3
Harris John                    N             5                2
Harris Judy                    N              5               1
Hartman FG                   N             6               1
Souse D T                      N             6               2
Johnson Magic              N               6                3
Lampton George            N             7               1  
Thomas Linda                N              7               2
Haywood Mark               N              7               3
Swift Tom                       N              8                1
Dobbs Dr.                       N                8              2
Golden Vinnie                 N              8                  3
Hacker E                         N               5                3
Russell Steve                  N              5                1
Champion Sparky           S                3                1
Innerments Tex               S              8                2

NOTE: Data Columns in text file should be aligned straight, they just didnt paste correctly.

Explanation / Answer

100% Fresh answer, guaranteed to get you best grades possible. Just check it out: http://programmingtutor3.tk/

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote