IST Wireless has asked you to create a program to help calculate a receipt for cell phone minutes used on a cell phone plan. Write a Java program that will take in the number of minutes used as user input.
Then, the program should perform the following calculations:
- Calculate the cost of minutes based on a rate of $0.15 per minute
- Calculate the grand total cost of the plan, based on the cost of minutes and a base plan cost of $20.00.
Finally, the program must print a receipt containing the base plan cost, cost for minutes used, and grand total cost of the plan. Printed dollar amounts must be formatted to two decimal places.
The example run below shows how the program would run. Note, user input is denoted in orange.
Enter the number of minutes used:
**IST Wireless – Receipt**
Base Plan Cost: $20.00
Cost for Minutes Used: $1.50 ($0.15 per minute * 10 minutes)
Grand Total: $21.50
Note: For input/output, you must use the JOptionPane class. For this lab only, you may assume the user will only enter in valid information. For example, you do not need to account for a negative number of minutes used.
Hint: Remember Integer.parseInt from the lecture notes when gathering input and String.format for outputting dollar amounts!
Your code must compile using the jGrasp IDE. If your code does not compile using jGrasp (for any reason), a grade of 0 will be earned. No exceptions!
Upload your completed .java file. Make sure you upload the .java file and not the .class file
"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you A results."