Menu

[Solved]Ada Agusta F 1000 19569 28 Issac Asimov M 1825 63948 58 Humphry Bogart M 2000 48482 56 Alb Q37299567

Hello, I need help completing a problem for my intro computer science class. It includes a .dat file that I am having trouble

Ada     Agusta    F 10.0019569 28

Issac   Asimov    M 18.25 63948 58

Humphry Bogart    M 20.00 48482 56

Albert Einstein M 11.10 47474 67

Emmylou Harris    F 33.50 72647 38

James   Kirk      M 18.8582828 46

Ted     Kopple    M 22.2537376 48

David   Letterman M 15.50 19338 47

Stevis Nicks     F 18.85 23459 38

Monty   Python    M 33.35 80939 44

Roger   Rabbit    M 15.00 91343 24

Sally   Ride      F 25.5091123 30

Rod     Serling   M 55.50 9393956

Luke    Skywalker M 19.95 12343 35

Kit     Ross      F11.00 20000 21

Mike    Smith     M 23.3510000 30

And here are instructions on what to do with it: Assume this input file contains an unknown number of lines/employees. Each lCreate a struct called employee. In the main, create 2 arrays of the struct employee type called mAr and fAr. m1Ar will have

Make a function called printEmployee. One employee (not the whole array) wil be passed to this function as a parameter and di

Hello, I need help completing a problem for my intro computer science class. It includes a .dat file that I am having trouble understanding how to use. I am also having trouble understanding struct. Any clear help would be appreciated, thank you! Here is text from a .dat file that I need to use to do the problem: And here are instructions on what to do with it: Assume this input file contains an unknown number of lines/employees. Each line contains the information about an employee – first name, last name, gender, hourly rate, employee id and age. Assume the number of lines/employees never exceeds 100. Ada Agusta F 10.00 19569 28 Issac Asimov M 18.25 63948 58 Create a struct called employee. In the main, create 2 arrays of the struct employee type called mAr and fAr. m1Ar will have all the male employees and fAr will have all the female employees. Use const for the size (100) of each array Make a function called printEmployee. One employee (not the whole array) wil be passed to this function as a parameter and display all the information about that employee on the screen in the following format. There should be only one parameter. Sample Run Ada Agusta F 19569 28 10.00 Call printEmployee with the first employee in the female array in the main. Run your program and make sure you will see the correct information on the screen. Expected output Ada 28 Agusta 10.00 19569 Call printEmployee with the first employee in the male array in the main. Run your program and make sure you will see the correct information on the screen Show transcribed image text Hello, I need help completing a problem for my intro computer science class. It includes a .dat file that I am having trouble understanding how to use. I am also having trouble understanding struct. Any clear help would be appreciated, thank you! Here is text from a .dat file that I need to use to do the problem:
And here are instructions on what to do with it: Assume this input file contains an unknown number of lines/employees. Each line contains the information about an employee – first name, last name, gender, hourly rate, employee id and age. Assume the number of lines/employees never exceeds 100. Ada Agusta F 10.00 19569 28 Issac Asimov M 18.25 63948 58
Create a struct called employee. In the main, create 2 arrays of the struct employee type called mAr and fAr. m1Ar will have all the male employees and fAr will have all the female employees. Use const for the size (100) of each array
Make a function called printEmployee. One employee (not the whole array) wil be passed to this function as a parameter and display all the information about that employee on the screen in the following format. There should be only one parameter. Sample Run Ada Agusta F 19569 28 10.00 Call printEmployee with the first employee in the female array in the main. Run your program and make sure you will see the correct information on the screen. Expected output Ada 28 Agusta 10.00 19569 Call printEmployee with the first employee in the male array in the main. Run your program and make sure you will see the correct information on the screen

Expert Answer


Answer to Ada Agusta F 10.00 19569 28 Issac Asimov M 18.25 63948 58 Humphry Bogart M 20.00 48482 56 Albert Einstein M 11.10 47474 … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *