Hi
I have exam after 12 hours, please help me to writing those programs……
And thank you
Write a c++ program to output the histogram of a sequence of 10 positive integers. this program first asks the user to enter 10 integers. then write the histogram of this sequence on the screen . the histogram uses columns of *s to represent the integers. The height of a column equals the corresponding integer. Under the histogram,output the sequence.for instance, if the user enters a sequence 2 5 7 1 3 4 6 2 9 5 ,the output should look like the following :
* * * * * * * * * * * * * * * * * * * * * * * * *
- *
- *
2 5 7 1 3 4 6 2 9 5
- *
Write a c++ program that evaluates a polynomial up to degree7. a polynomial is represented by an array of its coefficients.For instance, a polynomial
is represented by an array {2,-3,0,0,1,2,0,-7};
a polynomial
the evaluation should be done by the following algorithm:
suppose x = a, and
calculated by the following steps:
the value v7 is P(a). you should use a loop to do this calculation.