Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please code in Java using if else statements and casting. Wireless Data Billing AT&P Wireless, sells wireless data to its customers. AT&P has developed a

Please code in Java using if else statements and casting.

Wireless Data Billing AT&P Wireless, sells wireless data to its customers. AT&P has developed a marketing plan to incent customers to purchase or upgrade their services at a time to try to increase sales.

They have created three different subscription packages for its customers.

Package 1: For $60 per month 1GB of shared data internet access are provided. If the customer passes this limit, overage charges will be applied $20 per additional 1GB

Package 2: For $75 per month 3GB of shared data internet access are provided. If the customer passes this limit, overage charges will be applied $15 per additional 1GB

Package 3: For $90 per month 5GB of shared data internet access are provided. If the customer passes this limit, overage charges will be applied $10 per additional 1GB

Note: Customer will be charged for a full GB of additional data, regardless of how much they go over the amount in their package.

For example, customer on Package 1 who used 1.01GB will be charged for an additional 1 GB Customer will be charged for a full GB of additional data, regardless of how much they go over the amount in their package.

For example, customer on Package 2 who used 3.01GB will be charged for an additional 1 GB Customer will be charged for a full GB of additional data, regardless of how much they go over the amount in their package.

For example, customer on Package 3 who used 5.01GB will be charged for an additional 1 GB

Write a program that accepts information from the user and calculates a customers monthly bill. It should store the number of the package the customer has purchased (1, 2, 3) and the value of GB that were used. (assume the sales tax rate is 6.5%).

Your program should prompt the user to enter the following information:

Customer name

Customer Plan

Data used during the month

The program then outputs the following information:

Customers name

Price Base Plan

Overcharge data in GB

Overcharged Amount

Total Monthly Charges

Sales tax

Total amount due

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions