Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a function in C++ that loads in data from .txt file names that are inputted by the user. The data file(s) will contain a

Create a function in C++ that loads in data from .txt file names that are inputted by the user. The data file(s) will contain a list of experiment(s) which are all formatted the same way(experiment name, scientist name, trial numbers along with there pass/fail status, and finally the experiment name again). Below is an example of how the PDF will be formatted:

Little Albert Experiment

John B. Watson

01 Failed

02 Passed

03 Passed

04 Failed

05 Passed

06 Passed

07 Passed

Little Albert Experiment

The Asch Conformity Study

Solomon Asch

01 Failed

02 Passed

03 Passed

04 Failed

05 Passed

06 Passed

07 Failed

08 Failed

09 Failed

10 Passed

The Asch Conformity Study

Stanford Prison Experiment

Philip G. Zimbardo

01 Passed

Stanford Prison Experiment

Ensure to store the total number of experiments (3 in this particular file), total unique scientists (3 in this particular file), and the total number of trials (18 in this particular file) to later use for later program requirements. Do not use pointers, global variables or classes to store data.

Example Input/Output (User input is in bold):

Welcome, Please Enter File:

Search Experiments.txt

Loading experiments.txt...

How would you like to proceed?

Display total of unique scientists

Total of Unique experiments: 3

How would you like to proceed?

Display total number of trials

Total trials: 18

How would you like to proceed?

Display total experiments

Total Experiments: 3

How would you like to proceed?

exit

Thank you for using Experiment Finder

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

Recommended Textbook for

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions

Question

What is a depositary receipt?

Answered: 1 week ago