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 *
Draw a flowchart so that it uses the following methods to calculate the billing amount for a cellphone. do not output the number of minutes during which the service is used.
a. regularBill: This method calculates and returns the billing amount for regular
service.
b. premiumBill: This method calculates and returns the billing amount for premium
service.
String processing methods of String class should be used where necessary!!
Write a program that calculate and displays an employee’s weekly salary. If the hours worked are less or equal to 40, the employee is payed N$65.54 per hour, otherwise the employee receives N$80.20 for every hour worked exceeding 40.
NuMetro has a special on movies for all members of the public but special discounts for students and pensioners. If
pensioners or students buy a movie ticket they receive 10% if they buy a movie and popcorns, they receive 20%
discount. Other customers only receive a discount when they buy a movie ticket and popcorn; there is no discount for
just a movie ticket alone.
Write a program named question5b.cpp that will consist of two functions. The program must prompt the user for type of
customer (‘p’ for pensioner, ‘s’ for student, ‘o’ for other). It must then call the relevant function according to that entry.
The first function must receive the customer type and calculates discount for pensioners and students. The second
function calculates the discount for customers that are not pensioners or students.