/* Program Internet Service. I, Mike Pitcher, 001143522 and Dan Peddle, 001151820, certify that this material is our original work. No other person's work has been used without due acknowledgement.*/#include <stdio.h>#include <stdlib.h>float calcCost(char type, int hours);int main(){ int account_number, hours, numcustomers, flag=1; float cost, avgcharge=0; char account_type; printf ("welcome to ISP company's online payment program\n\n"); while (flag) { printf ("Please Enter your Account Number\n"); scanf ("%d", &account_number); if (account_number != 999) { printf("What Type of account do you have?\n(E)conomy, (B)usiness or (U)nlimited\n"); scanf("%c", &account_type); scanf("%c", &account_type); printf("Enter the number of hours used this month\n"); scanf("%d", &hours); cost = calcCost(account_type, hours); avgcharge+=cost; ++numcustomers; printf("Customer number: %d\tService Code: %c\tMonthly Charge: $%4.2f\n", account_number, account_type, cost); } else flag = 0; } printf("\nNumber of customers processed: %d\n", numcustomers); printf("Average cost: $%4.2f\n", avgcharge/numcustomers); system ("PAUSE"); return 0;}float calcCost(char type, int hours){ if (type == 'B') return 40 + (0.2 * hours); else if (type == 'E') return 10 + (0.1 * hours); else return 30;}