Need help with making the graph like it is in the correct_output.txt here is a snippet of
No answer yet for this question.
Ask a Tutor
Question:
Need help with making the graph like it is in the correct_output.txt
here is a snippet of my code // Prints a scaled bar relevant to the maximum value in the samples array void printBar(int val, int max) { int i; int barlength = GRAPH_WIDTH * val / max; cout << "| "; for (i = 0; i < barlength; ++i) { cout << "*"; } cout << " "; printInt(val, 0); // Print the sample value right next to the bar cout << " |" << endl; // Adjusted the formatting }
Related Book For
Accounting Principles
ISBN: 978-1119048503
7th Canadian Edition Volume 1
Authors: Jerry J. Weygandt, Donald E. Kieso, Paul D. Kimmel, Barbara Trenholm, Valerie Warren, Lori Novak
Posted Date: