Question: Write a Java program to calculate your cell phone bill given the number of minutes used. Customers pay a basic of $19.99 a month. The

 Write a Java program to calculate your cell phone bill given

Write a Java program to calculate your cell phone bill given the number of minutes used. Customers pay a basic of $19.99 a month. The basic includes 200 peak minutes and 500 evening minutes. The charge for going over the peak is S0.30/minute and the evening minutes is S0.15/minute. Your program should input the peak minutes and evening minutes used from the command-line arguments. A sample run of the program is as follow: Command Prompt D: MyJava> java PhoneBil1 300 600 Monthly bill = $64.99 D: MyJava> java PhoneBil1 100 300 Monthly bill = $19.99

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!