Question: Description: This program is part 2 of the Average-Bar Chart program. You should be building on last week's AvgBar.cpp Instead of reading the numbers directly
Description: This program is part 2 of the Average-Bar Chart program. You should be building on last week's AvgBar.cpp Instead of reading the numbers directly from the user, read them from a file. Prompt the user for the filename. When printing the score, print it 3 characters wide, right-justified For the bar chart, change the number printed after each to that many "'s to create a bar chart. For example, "80: should now be" 80:********* You'll have to be clever with setw, sethill, left, right, and printing a space to make this happen You MAY NOT use any loops or if statements to accomplish the bar chart The average should be formatted to only print a single digit after the decimal point Sample Run #1 (bold, underlined text is what the user types): File? scores.txt 80: "* 60: 95: 100: Avg - 83.8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
