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% 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 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 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 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 it here. Then, briefly explain how the author(s) used statistical methods to report the results.
In: Statistics and Probability
In: Accounting
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
In: Operations Management
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