Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Assume that the class and main method are already included. Assume that any need

ID: 3670892 • Letter: A

Question

Assume that the class and main method are already included. Assume that any needed import statements are already included. Assume that you have a Scanner object named input already created. Declare any new variables you want to use. 10. Suppose you are setting up a pricing scheme for a smartphone data plan. The standard rate i $0.03 per MB of data transfer per month. However, to encourage your customers to transfer lots of (and hence make yourself filthy rich), you offer the following discounts: Note that if a customer transfers a total of 3501 MB in a given month for example, he/she should be charged at the standard rate for the first 1000 MB. He/she should be charged at a 10% discount off the standard rate for the next 2500 MB. And he/she should be charged at a 20% discount off the standard rate for the last 1 MB. Assume you have variables named dataAmt and totalCharge to store the data transfer in MB and the total monthly charge (after any discounts have been applied) in dollars, respectively. Assume that dataAmt already has a value, but totalCharge does not. a. Write a multibranch if conditional that assigns totalCharge the proper value based on the value of dataAmt

Explanation / Answer

Please find the required function below :

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote