Reference no: EM131214200
Program
Write a C++ program that will:
Ask the user for the name of an input file. Read in this name and open that text file for input.
Ask the user which of two options they want to do:
Read in student data
Count lines and characters
Read in the user's response, and perform the specified operation.
Specifically, if the user chooses the student data option,
For each student record,
read in the student name (a string),
read in the number of scores for that student (an int)
read in all of the scores for that student, adding them into
a total as they are found (doubles).
Calculate the average score for that student (double).
Write out the student name, the number of scores, and the
average score for that student.
Repeat until no more student records are found.
If the user chooses the lines and characters option,
Read in each line of the file
If a line contains some text (is non-empty), then count that line and
find the number of characters that the line contains.
Continue until no more lines of text are found in the file.
Write out the total number of lines that contained text and the
Average number of characters that were found per line.
What types of investment projects would you expect
: FINC20018 / FINC20006: Assessment Task 2: Individual or Group Assignment. Please respond in writing to the following questions: What types of investment projects would you expect to find in a minerals company
|
Describe what is meant by transitive dependency
: Describe what is meant by transitive dependency, and describe how this type of dependency relates to 3NF. Provide an example to illustrate your answer.
|
Assignment for statistics class
: One of your classmates is working on an assignment for her statistics class. She created an online survey to collect student opinions about the college class schedule. She only has time before her engineering class to distribute the link to the su..
|
Which type of interview is most appropriate to use
: Which of the following is a multicultural issue for any of the psychological instruments customarily used in the United States? Larry is a single, 40-year-old male who runs his own business. Lately, he feels tired all the time, lacks motivation..
|
Write cpp program that will ask user for name of input file
: Write a C++ program that will Ask the user for the name of an input file. Read in this name and open that text file for input. Ask the user which of two options they want to do: Read in student data and Count lines and characters.
|
Members of the population
: You successfully completed statistics, and the Math Department Chair recruited you to be a tutor. It's day one on the job, and your first pupil is correcting her mistakes on a recent statistics exam. She incorrectly listed the reasons that researc..
|
National highway traffic safety administration
: Traffic Safety: Here is a passage from a study published by the National Highway Traffic Safety Administration in 2007.
|
Human world of actual men and women
: Suppose that the researchers' scaled up dolls suddenly found themselves in the human world of actual men and women. Convert Ken's chest, waist, and hips measurements to z-scores. Which of those measures appears to be the most different from Ken's r..
|
Find the slip and the number of poles of the motor
: A 12 pole, 3 phase alternator is coupled to an engine running at 500r.p.m.- Find the slip and the number of poles of the motor.
|