Questions
int main() {    footBallPlayerType bigGiants[MAX];    int numberOfPlayers;    int choice;    string name;   ...

int main()
{
   footBallPlayerType bigGiants[MAX];
   int numberOfPlayers;
   int choice;
   string name;
   int playerNum;
   int numOfTouchDowns;
   int numOfcatches;
   int numOfPassingYards;
   int numOfReceivingYards;
   int numOfRushingYards;
   int ret;
   int num = 0;
   ifstream inFile;
   ofstream outFile;
   ret = openFile(inFile);
   if (ret)
       getData(inFile, bigGiants, numberOfPlayers);
   else
       return 1;
   /// replace with the proper call to getData
   do
   {
       showMenu();
       cin >> choice;
       cout << endl;
       switch (choice)
       {
       case 1:
           cout << "Enter player's name: ";
           cin >> name;
           cout << endl;
           playerNum = searchData(bigGiants, num, name);
           printPlayerData(bigGiants, num, playerNum);
           break;
       case 2:
           printData(bigGiants, num);
           break;
       case 3:
           cout << "Enter player name: ";
           cin >> name;
           cout << endl;
           playerNum = searchData(bigGiants, num, name);
           cout << "Enter number of touch downs to be added: ";
           cin >> numOfTouchDowns;
           cout << endl;
           /// replace with call to update TouchDowns from group 1
           break;
       case 4:
           cout << "Enter player name: ";
           cin >> name;
           cout << endl;
           playerNum = searchData(bigGiants, num, name);
           cout << "Enter number of catches to be added: ";
           cin >> numOfcatches;
           cout << endl;
           break;
       case 5:
           cout << "Enter player name: ";
           cin >> name;
           cout << endl;
           playerNum = searchData(bigGiants, num, name);
           cout << "Enter number of passing yards to be added: ";
           cin >> numOfPassingYards;
           cout << endl;
           /// replace with call to updatePassingYards from group 3
           break;
       case 6:
           cout << "Enter player name: ";
           cin >> name;
           cout << endl;
           playerNum = searchData(bigGiants, num, name);
           cout << "Enter number of receiving yards to be added: ";
           cin >> numOfReceivingYards;
           cout << endl;
           /// replace with call to update Receiving Yards from group 4
           break;
       case 7:
           cout << "Enter player name: ";
           cin >> name;
           cout << endl;
           playerNum = searchData(bigGiants, num, name);
           cout << "Enter number of rushing yards to be added: ";
           cin >> numOfRushingYards;
           cout << endl;
           /// replace with call to update Rushing Yards from group 5
           break;
       case 99:
           break;
       default:
           cout << "Invalid selection." << endl;
       }
   } while (choice != 99);
   char response;
   cout << "Would you like to save data: (y,Y/n,N) ";
   cin >> response;
   cout << endl;
   if (response == 'y' || response == 'Y')
       saveData(outFile, bigGiants, num);
   inFile.close();
   outFile.close();
   return 0;
}
/// If file cannot be opened, a 1 is returned.
/// Parameter: ifstream
int openFile(ifstream& in) {
   string filename;
   cout << "Please enter football data file name: ";
   cin >> filename;
   in.open(filename.c_str());
   if (!in)
   {
       cout << filename << " input file does not exist. Program terminates!" << endl;
       return 1;
   }
   return 0;
}
/// Function requests file name from the user and opens file.
/// Post condition: If no error encountered, file is opened.
/// If file cannot be opened, a 0 is returned.
/// Parameter: ofstream
int openOutFile(ofstream& out) {
   string filename;
   cout << "Please enter the name of the output file: ";
   cin >> filename;
   out.open(filename.c_str());
   if (!out)
   {
       return 0;
   }
   return 1;
}
void showMenu()
{
   cout << "Select one of the following options:" << endl;
   cout << "1: To print a player's data" << endl;
   cout << "2: To print the entire data" << endl;
   cout << "3: To update a player's touch downs" << endl;
   cout << "4: To update a player's number of catches" << endl;
   cout << "5: To update a player's passing yards" << endl;
   cout << "6: To update a player's receiving yards" << endl;
   cout << "7: To update a player's rushing yards" << endl;
   cout << "99: To quit the program" << endl;
}
/// Reads data into the structure array
/// Precondition: ifstream is open, howMany initialized to 0
/// Postcondition: the structure array contains data from the input file
/// the howMany parameter contains the number of rows read
/// Parameters: ifstream, structure array, int file read counter
void getData(ifstream& inf, footBallPlayerType list[], int& howMany)
{
   howMany = 0;
   while (inf)
   {
       inf >> list[howMany].name >> list[howMany].position >> list[howMany].touchDowns >> list[howMany].catches >> list[howMany].passingYards >> list[howMany].receivingYards >> list[howMany].rushingYards;
       howMany++;
   }
}

/// Prints statistics for a selected player
/// Precondition: structure array contains data, length contains number of
void printPlayerData(footBallPlayerType list[], int length, int playerNum)
{
   if (0 <= playerNum && playerNum < length)
       cout << "Name: " << list[playerNum].name
       << " Position: " << list[playerNum].position << endl
       << "Touch Downs: " << list[playerNum].touchDowns
       << "; Number of Catches: " << list[playerNum].catches << endl
       << "Passing Yards: " << list[playerNum].passingYards
       << "; Receiving Yards: " << list[playerNum].receivingYards
       << "; Rushing Yards: " << list[playerNum].rushingYards << endl << endl;
   else
       cout << "Invalid player number." << endl << endl;
}
void printData(footBallPlayerType list[], int length)
{
   cout << left << setw(15) << "Name"
       << setw(14) << "Position"
       << setw(12) << "Touch Downs"
       << setw(9) << "Catches"
       << setw(12) << "Pass Yards"
       << setw(10) << "Rec Yards"
       << setw(12) << "Rush Yards" << endl;
   for (int i = 0; i < length; i++)
       cout << left << setw(15) << list[i].name
       << setw(14) << list[i].position
       << right << setw(6) << list[i].touchDowns
       << setw(9) << list[i].catches
       << setw(12) << list[i].passingYards
       << setw(10) << list[i].receivingYards
       << setw(12) << list[i].rushingYards << endl;
   cout << endl << endl;
}
/// Saves updated data to file name entered by user
/// Precondition: structure array contains data, length of array is filled
/// Postcondition: If requested file is opened, updated data is written to the
/// Parameters: ofstream, structure array, int length of array
void saveData(ofstream& outF, footBallPlayerType list[], int length)
{
   int ret;
   ret = openOutFile(outF);
   if (!ret) {
       cout << "Output file did not open...data will not be output to a file. " << endl;
       return;
   }
   for (int i = 0; i < length; i++)
       outF << list[i].name
       << " " << list[i].position
       << " " << list[i].touchDowns
       << " " << list[i].catches
       << " " << list[i].passingYards
       << " " << list[i].receivingYards
       << " " << list[i].rushingYards << endl;
}
/// Finds a football player by name
int searchData(footBallPlayerType list[], int length, string n)
{
   for (int i = 0; i < length; i++)
       if (list[i].name == n)
           return i;
   return -1;
}

I need help with my errors

The header file below

#include <iostream>#include <fstream>#include <string>#include <iomanip>using namespace std;struct footBallPlayerType{ string name; string position; int touchDowns; int catches; int passingYards; int receivingYards; int rushingYards;};const int MAX = 30;int openFile(ifstream&);int openOutFile(ofstream& out);void showMenu();void getData(ifstream& inf, footBallPlayerType list[], int& length);void printPlayerData(footBallPlayerType list[], int length, int playerNum);void printData(footBallPlayerType list[], int length);void saveData(ofstream&

In: Computer Science

With the majority of health-care costs spent for the treatment of chronic diseases (High BP, Dibetes...

With the majority of health-care costs spent for the treatment of chronic diseases (High BP, Dibetes & HIV) and the reason for most emergency room visits being non-emergencies, the time is ripe for telemedicine in South Africa. More so with Covid-19 pandemic, patients are reluctunt to visit a hospital for non-emergencies. Patients are using their phones, tablets, and keyboards instead of making an office visit or trip to the emergency room. Technology makes it possible for doctors to consult with patients through Skype or FaceTime on smartphones, access medical tests via electronic medical records, and send a prescription to a patient’s local pharmacy—all from miles away. The telemedicine industry is still in its infancy, earning only $868 million in annual revenue in 2017, but it is predicted to increase to an almost $56 billion industry by 2023. It is expected to exhibit a CAGR of 17% from 2018 to 2023 (forecast period). Technology isn’t the only reason for this industry’s growth such as adoption of electronic health records (EHR) by hospitals is one of the primary drivers of the market. The legislation suport by Governements that are encouraging electronic medical records is also adding fuel to this fire. In order to ensure health care services are still being provided during the national period of shut down and during the Covid- 19 pandemic and to achieve the objectives of “The Allied Health Professions Act” (63) was amended on 25 March 2020 by President Cyril Ramaphosa that allows to practice telehealth and/or telemedicne for medical professionals.

Based on the scenario given above, critically discuss pros and cons of offering medical services with help of telemedicine. Critically discuss the marketing decisions that may be used in the selected product life cycle of telemedicine? Critically evaluate the role of mobile technology and artificial intelligence (AI) in the evolution of this industry and predict future trajectory? Justify your response.

In: Operations Management

Draft a spreadsheet showing financial history and projected performance for Nordstrom. The rows should include revenue,...

Draft a spreadsheet showing financial history and projected performance for Nordstrom. The rows should include revenue, expenses, calculated profit, and calculated profit margin. The columns should represent years: two years of history, plus three years of your reasonable future projections. Include a few sentences of key assumptions and conclusions. The spreadsheet must have accurate calculations and look professional on screen and when printed (including a heading and meaningful number formatting).

Income Statement

All numbers in thousands

Revenue 2/2/2019 2/3/2018 1/28/2017 1/30/2016
Total Revenue 15,860,000 15,478,000 14,757,000 14,437,000
Cost of Revenue 10,155,000 9,890,000 9,440,000 9,333,000
Gross Profit 5,705,000 5,588,000 5,317,000 5,104,000
Operating Expenses
Research Development - - - -
Selling General and Administrative 4,796,000 4,662,000 4,315,000 3,957,000
Non Recurring - - - -
Others - - - -
Total Operating Expenses 14,951,000 14,552,000 13,755,000 13,290,000
Operating Income or Loss 909,000 926,000 1,002,000 1,147,000
Income from Continuing Operations
Total Other Income/Expenses Net -176,000 -136,000 -318,000 -171,000
Earnings Before Interest and Taxes 909,000 926,000 1,002,000 1,147,000
Interest Expense -119,000 -141,000 -122,000 -112,000
Income Before Tax 733,000 790,000 684,000 976,000
Income Tax Expense 169,000 353,000 330,000 376,000
Minority Interest - - - -
Net Income From Continuing Ops 564,000 437,000 354,000 600,000
Non-recurring Events
Discontinued Operations - - - -
Extraordinary Items - - - -
Effect Of Accounting Changes - - - -
Other Items - - - -
Net Income
Net Income 564,000 437,000 354,000 600,000
Preferred Stock And Other Adjustments - - - -
Net Income Applicable To Common Shares 564,000 437,000 354,000 600,000

In: Finance

Assuming all else is equal, which of the following loans is most likely to have the...

Assuming all else is equal, which of the following loans is most likely to have the lowest total interest cost?

Secured non-amortizing loan

Secured amortizing loan

Unsecured amortizing loan

Unsecured non-amortizing loan

In: Accounting

Discussion Question: Do you agree with California public policy against non compete agreements? As a current...

Discussion Question: Do you agree with California public policy against non compete agreements? As a current of future business owner, under what scenarios would you find it to be advantageous to have an enforceable non compete agreement?

In: Economics

go online and find and depict new non-profit organizations since 2010. do you think the recent...

go online and find and depict new non-profit organizations since 2010. do you think the recent rapid growth of new non-profits entering the industry is a good or bad thing or both? explain your answer.

In: Economics

A survey of 500 non-fatal accidents showed that 141 involved uninsured drivers. A. Construct a 99%...

A survey of 500 non-fatal accidents showed that 141 involved uninsured drivers. A. Construct a 99% confidence interval for the proportion of non-fatal accidents that involved uninsured drivers. Round to the nearest thousandth.

B. Interpret the confidence interval.

In: Statistics and Probability

As part of a course project, a statistics student surveyed random samples of 50 student athletes...

As part of a course project, a statistics student surveyed random samples of 50 student athletes and 50 student non-athletes at his university, with the goal of comparing the heights of the two groups. His summary statistics are displayed in the provided table.

n

s

Athletes

50

68.96

4.25

Non-athletes

50

67.28

3.46

a). Which data analysis method is more appropriate in this situation: paired data difference in means or difference in means with two separate groups? Explain briefly.

b). Construct a 99% confidence interval for the difference in mean heights between student athletes and non-athletes at this university. Use two decimal places in your margin of error.

c). Test, at the 5% level, if student athletes at this university are significantly taller, on average, than student non-athletes. Include all of the details.

In: Statistics and Probability

How do financial accounting and management accounting differ? A. Financial accounting focuses on providing financial information...

How do financial accounting and management accounting differ?

A. Financial accounting focuses on providing financial information to users inside and outside the business whereas management accounting focuses on providing financial and non financial information to users inside the business

B. Financial accounting focuses on providing non financial information to users outside the business whereas management accounting focuses on providing financial information to users inside the business

C. Financial accounting focuses on providing non financial information to users inside the business whereas management accounting focuses on providing nonfinancial information to users inside and outside of the business

D. Financial accounting focuses on providing financial and non financial information to users inside the business whereas management accounting focuses on providing financial information to users outside the business

In: Accounting

An internal study by the Technology Services department at Lahey Electronics revealed company employees receive an...

An internal study by the Technology Services department at Lahey Electronics revealed company employees receive an average of 3.5 non-work-related e-mails per hour. Assume the arrival of these e-mails is approximated by the Poisson distribution.

A. What is the probability Linda Lahey, company president, received exactly 4 non-work-related e-mails between 4 P.M. and 5 P.M. yesterday? (Round your probability to 4 decimal places.)

B. What is the probability she received 6 or more non-work-related e-mails during the same period? (Round your probability to 4 decimal places.)

C. What is the probability she received four or less non-work-related e-mails during the period? (Round your probability to 4 decimal places.)

In: Statistics and Probability