ClassAverage

Download Category:

ClassAverage.zip - (643.16 KB)
[
ClassAverage/ClassAverage.sln
ClassAverage/ClassAverage.suo
ClassAverage/ClassAverage.vcxproj
ClassAverage/ClassAverage.vcxproj.filters
ClassAverage/ClassAverage.vcxproj.user
ClassAverage/Debug/
ClassAverage/Debug/cl.command.1.tlog
ClassAverage/Debug/CL.read.1.tlog
ClassAverage/Debug/CL.write.1.tlog
ClassAverage/Debug/ClassAverage.exe
ClassAverage/Debug/ClassAverage.exe.embed.manifest
ClassAverage/Debug/ClassAverage.exe.embed.manifest.res
ClassAverage/Debug/ClassAverage.exe.intermediate.manifest
ClassAverage/Debug/ClassAverage.ilk
ClassAverage/Debug/ClassAverage.lastbuildstate
ClassAverage/Debug/ClassAverage.log
ClassAverage/Debug/ClassAverage.pdb
ClassAverage/Debug/ClassAverage.vcxprojResolveAssemblyReference.cache
ClassAverage/Debug/ClassAverage.write.1.tlog
ClassAverage/Debug/ClassAverage_manifest.rc
ClassAverage/Debug/lastname_firstname_lab5.obj
ClassAverage/Debug/link.9716.read.1.tlog
ClassAverage/Debug/link.9716.write.1.tlog
ClassAverage/Debug/link.9716-cvtres.read.1.tlog
ClassAverage/Debug/link.9716-cvtres.write.1.tlog
ClassAverage/Debug/link.command.1.tlog
ClassAverage/Debug/link.read.1.tlog
ClassAverage/Debug/link.write.1.tlog
ClassAverage/Debug/link-cvtres.read.1.tlog
ClassAverage/Debug/link-cvtres.write.1.tlog
ClassAverage/Debug/mt.command.1.tlog
ClassAverage/Debug/mt.read.1.tlog
ClassAverage/Debug/mt.write.1.tlog
ClassAverage/Debug/rc.command.1.tlog
ClassAverage/Debug/rc.read.1.tlog
ClassAverage/Debug/rc.write.1.tlog
ClassAverage/Debug/vc100.idb
ClassAverage/Debug/vc100.pdb
ClassAverage/Lab5.txt
ClassAverage/lastname_firstname_lab5.cpp
ClassAverage/output.txt
ClassAverage/Question.txt
ClassAverage/Screenshot_1.jpg
]

You can work on this lab with a partner, but there is an extra requirement if you decide to go that route.The following requirements apply to everyone:Write a program that reads a text file. The user will input the file name containing a list of students with their test scores on three tests. For example:Ana 75 82 91John 80 93 100Mary 91 77 92The program calculates and prints out for each student: their name, the lowest, the highest and the average score. Round the average to the nearest tenth. Create a well-formatted table to display the data on the screen. Print the header only once.+——————————————————| Name Average Lowest Highest+——————————————————[ the output data goes here ]At the end, the program should print the class average.Implement the following functions:// This function calculates and returns the average of the three scores passed as parameters.double calcAverage (int first, int second, int third);// This function determines and returns the highest of the three scores passed as parameters.int findHighest (int first, int second, int third);// This function determines and returns the lowest of the three scores passed as parameters.int findLowest (int first, int second, int third);Download Lab5.txt to test your program.Include a header comment at the beginning of your code with a brief description of your program, course, lab number, author and date. Additionally, add comments to your source code describing variables and calculations.Include function prototypes.Make sure the program compiles and runs correctly.Rename your source file using the following convention:lastname_firstname_lab5.cppIf you are working with a partner:Also print the data that you print on the screen to an output file.

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.