Questions
Language: c++ works in visual basic Info: theresa,allen,5-5-1989 marie,freeman,1-10-1985 benjamin,snyder,22-2-1999 peter,morrison,10-09-2001 karen,ruiz,04-11-1975 nancy,ryan,1-6-1941 lori,patterson,1-5-2005 louise,greene,10-12-2007 diane,day,6-4-1998...

Language: c++

works in visual basic

Info:

theresa,allen,5-5-1989
marie,freeman,1-10-1985
benjamin,snyder,22-2-1999
peter,morrison,10-09-2001
karen,ruiz,04-11-1975
nancy,ryan,1-6-1941
lori,patterson,1-5-2005
louise,greene,10-12-2007
diane,day,6-4-1998
lillian,stewart,1-12-2002

Write a program that reads data from the csv file, prog4.txt and stores the data in an array. The program should read the data and verify that the first letter of the first and last name are capitalized and the date is in the correct format. The CSV file contains values separated by commas, the first element is the first name, the second element is the last name, and the last element is the date of birth in a European format (dd-mm-yyyy)  Each row of the csv file contains the following elements • First name (all lower case) • Last name (all lower case) • Date of birth (dd-mm-yyyy) Requirements: 1. String Arrays a. Define a userData array that you can store each rows’ data into b. Use the ifstream object to read file data into the array c. Define a rowData array to store the separate elements of each row into (this will allow you to easily apply string manipulations to each element of the array) d. Use any additional variables as you see fit to accomplish the tasks outlined below. 2. Use a menu‐driven program with the following selections: 1. Read and show file data as is 2. Show file data cleansed 3. Exit the program 3. Define the following 3 functions a. int displayMenu(); Outputs the menu selections Inputs the users selection Validates that the user has entered a valid selection b. void showFileDate (string); Outputs the data in a tabular form directly from the file as is. This method takes an argument of file name. c. void showFileDateCleansed (string); Outputs the data in a tabular form with the first letter capitalized for the first and last name columns, also in this option the programmer must create an additional column labeled USA-Date (see the output file below), this column must use the EU-Date column, and convert the date from dd-mm-yyyy to the USA standard of mm-dd-yyyy. Ensure that if a day and or a month is less than 10, a leading zero is accounted for and added. For example if a data is 1-12-2016, the conversion should be 01-12-2016. If a date is 22-9- 2011, the conversion should be 22-09-2011 etc. This method takes an argument of file name.

In: Computer Science

Titration experiment: Determination of the acid content of vinegar. 25.00 mL of vinegar with a 5%...

Titration experiment: Determination of the acid content of vinegar.

25.00 mL of vinegar with a 5% concentration of acetic acid is combined with distilled water to prepare a dilute vinegar solution of 250.00 mL.

The burette is filled with a standardised NaOH solution with a molarity of 0.09979 M.

25.00 mL of diluted vinegar is pipetted into a conical flask, and phelphthalein indicator is added to it.

The volume of NaOH that needed to be added in order for the acetic acid to be neutralized is 21.57 mL.

The reaction equation for the titration is CH3COOH + NaOH--> CH3COONa + H2O.

Using the above data, calculate the following for this experiment (show detailed calculations):

a) From the titration results, calculate the number of moles of NaOH required to neutralize the acetic acid in the 25mL of diluted vinegar.

b) Calculate the number of moles of acetic acid in the 25mL of diluted vinegar used in the titration.

c) Find the molarity of acetic acid in the diluted vinegar.

d) Calculate the dilution factor used in preparing the diluted vinegar from the original vinegar.

e) Calculate the molarity of acetic acid in the original vinegar.

f) Express the concentration fo acetic acid in the vinegar in:

    i) g/L

    ii) g/100 mL

g) What therefore is the weight by volume percentage (w/v %) of acetic acid in the vingear.

h) Explain why it was important to determine the mass of KHP by difference.

In: Chemistry

The author of Financial Management mentions seven issues that have to be kept track of during...

The author of Financial Management mentions seven issues that have to be kept track of during a comprehensive cash flow estimation process. Explain the role of each, when estimating cash flow.

In: Finance

• The author of Financial Management mentions seven issues that have to be kept track of...

• The author of Financial Management mentions seven issues that have to be kept track of during a comprehensive cash flow estimation process. Explain the role of each, when estimating cash flow.

In: Finance

Explain Freud's theory of psychosexual development and Erikson's theory of psychosocial development as it relates to...

Explain Freud's theory of psychosexual development and Erikson's theory of psychosocial development as it relates to the middle school child. How do they differ from Piaget theory?

Search entries or author

In: Nursing

Find an article, clinical study, or journal report that employs statistics in reporting results, and upload...

Find an article, clinical study, or journal report that employs statistics in reporting results, and upload it here. Then, briefly explain how the author(s) used statistical methods to report the results.

In: Statistics and Probability

The author states the "Audit Methodologies and Software Have a Range of Shortcomings." Discuss this and...

The author states the "Audit Methodologies and Software Have a Range of Shortcomings." Discuss this and give an example of when you have had to deal with a software shortcoming and how you overcame the issue.

In: Accounting

The author writes: “Still, as long as interest on deposits is capped by the government, Chinese...

The author writes: “Still, as long as interest on deposits is capped by the government, Chinese savings will continue to be invested in riskier and higher-yielding products, adding to distortions in the financial system.” Why? Explain

In: Economics

a reasearcher is interested in the cause of neonatal jaundice . To study this condition, he...

a reasearcher is interested in the cause of neonatal jaundice . To study this condition, he selects one hundred children who were diagnosed with neonatal jaundice. He also selects another one hundred children born during the same time period at the same hospital who did not have a diagnosis of neonatal jandnice. He then reviewed the obstetrical and delivery records of their mothera to determine if there were any prenatal or perinatal exposures to risk factors.

what study design was used in this study?

cross-sectional
prospective cohort
case-control
randomized controlled trial

In: Operations Management

Create a Java project called Lab3B and a class named Lab3B. Create a second new class...

  1. Create a Java project called Lab3B and a class named Lab3B.
  2. Create a second new class named Book.
  3. In the Book class:
    1. Add the following private instance variables:
      1. title (String)
      2. author (String)
      3. rating (int)
    2. Add a constructor that receives 3 parameters (one for each instance variable) and sets each instance variable equal to the corresponding variable.
    3. Add a second constructor that receives only 2 String parameters, inTitle and inAuthor. This constructor should only assign input parameter values to title and author. rating won’t be given a value here.
    4. Add a public String method named getTitle (no parameter) that returns title.
    5. Add a void method named setRating with an int parameter (inRating). It will set rating equal to inRating.
    6. Add a public String method toString (no parameters). It should create and return a String variable with all the book’s instance data (like you did in the Employee class.)
  4. Back in the main Lab3B class.
    1. Declare and instantiate a Book object named book1 sending the following parameters to the constructor ("A Tale of Two Cities", "Charles Dickens", 4)
    2. Declare and instantiate a Book object named book2 sending the following parameters to the constructor ("Foundation", "Isaac Asimov")
    3. Call setRating for book2 sending 5 as a parameter.
    4. Call getTitle for book1 and print the returned value.
    5. Use our toString shortcut to print all of book1’s information.
    6. Print a blank line.
    7. Use the same coding to print all of book2’s info.

Your output should be:

A Tale of Two Cities

Title: A Tale of Two Cities

Author: Charles Dickens

Rating: 4

Title: Foundation

Author: Isaac Asimov

Rating: 5

In: Computer Science