Computing cable bills using F(x)'s
Placing all the input and output in a separate function would improve the structure of program.
Computing the bill follows the exact same logic for both types of connection; they are just using a different price list. You could use a data structure to represent the price list, and pass it to the billing function as a parameter.