An online video streaming service has three different subscription packages for its customers: Package Lite: For $5 per month 5 hours of access are provided. Additional hours are $3.00 per hour. Package Regular: For $15 per month 30 hours of access are provided. Additional hours are $2.00 per hour. Package Unlimited: For $30 per month unlimited access is provided. Write a program that calculates a customer’s monthly bill. It should ask the user to enter the name of the package the customer has purchased (Lite, Regular, or Unlimited) and the number of hours that were used. It should then display the total charges.

In addition, calculate and display the amount of money Lite package customers would save if they purchased the regular or unlimited package, and the amount of money Regular customers would save if they purchased the unlimited package. If there would be no savings, no message should be printed

did you get this program in netbeans if yes can you share it?

To write a program that calculates a customer's monthly bill and determines the potential savings, you can follow these steps:

Step 1: Prompt the user to enter the name of the package and the number of hours used.

Step 2: Based on the package chosen, calculate the total charges.

Step 3: If the package is Lite, calculate the potential savings if the customer had chosen Regular or Unlimited.

Step 4: If the package is Regular, calculate the potential savings if the customer had chosen Unlimited.

Step 5: Display the total charges and, if applicable, the potential savings.

Here's an example implementation in Python:

```python
# Step 1: Prompt user for package and hours
package = input("Enter the package (Lite, Regular, or Unlimited): ")
hours_used = int(input("Enter the number of hours used: "))

# Step 2: Calculate total charges based on the chosen package
if package == "Lite":
base_cost = 5
additional_cost = 3 * max(hours_used - 5, 0)
elif package == "Regular":
base_cost = 15
additional_cost = 2 * max(hours_used - 30, 0)
elif package == "Unlimited":
base_cost = 30
additional_cost = 0
else:
print("Invalid package choice!")
exit() # Exit the program

total_charges = base_cost + additional_cost

# Step 3: Calculate potential savings for Lite customers
lite_savings_regular = total_charges - (15 + 2 * max(hours_used - 30, 0))
lite_savings_unlimited = total_charges - 30

# Step 4: Calculate potential savings for Regular customers
regular_savings_unlimited = total_charges - 30

# Step 5: Display charges and savings
print("Total charges: $", total_charges)

if package == "Lite":
if lite_savings_regular > 0:
print("Potential savings if switched to Regular: $", lite_savings_regular)
if lite_savings_unlimited > 0:
print("Potential savings if switched to Unlimited: $", lite_savings_unlimited)

if package == "Regular" and regular_savings_unlimited > 0:
print("Potential savings if switched to Unlimited: $", regular_savings_unlimited)
```

This program prompts the user for the package and hours used, calculates the total charges, and then calculates and displays any potential savings based on the chosen package. The potential savings are displayed only if they are greater than zero.