Write a C++ program that read numbers from an integer array and graph the information in the form of bar chat. Sample output is given below. Element Value Histogram 0 19 ******************* 1 3 *** 2 15 *************** 3 7 ******* 4 11 *********** 5 9 ********* 6 13 ************* 7 5 ***** 8 17 ***************** 9 1 *
An electricity board charges the following rates to domestic users to discourage large consumption of energy :For the first 100 units : 50 P per unit and Beyond 300 units : 60 P per unit, 100-300 units:55 pIf the total cost is more than Rs.250.00 then an additional surcharge of 15% is added on thedifference. Define a class Electricity in which the function Bill computes the cost
Write a program that accepts 10 values from the user at the keyboard and stores them in an array .Pass the array and it's size to a function that determines and displays the smallest and largest of the 10 values.
Write a method that receives elapsed time in seconds as a parameter.The method should then display the elapsed time in hours , minutes and seconds.For example , If the elapsed time is 9630 seconds , then the method should display 2:40:30 . Write a main() method that will prompt a user for elapsed time of an event in seconds, And use received value to demonstrate that the method works correctly.