subject

Write a program that calculates the cost of a phone call. the user enters a positive integer that indicates the length of the call. the first two minutes of a phone call cost a flat $1.50. minutes 3 to 10 cost 50 cents each. each minute after 10 costs 25 cents each. for example: how many minutes is the call? 13 a 13 minute call costs 6.25 my code so far: import java. util. scanner; public class third { public static void main (string[]args) { scanner num = new scanner (system. in); system. out. println("enter number of minutes"); int x = num. nextint(); i have gotten this far but im not sure what the rest is and how i would create the code for adding minutes. i know it has to do with final but not sure where to start.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:40
What are the three parts to physical security standards for various types of army equipment and the risk level
Answers: 2
question
Computers and Technology, 24.06.2019 09:10
  to change the number of rows and columns displayed by the excel object a. select the object and drag a size handle on the active object. b. deselect the object and drag a size handle of the object. c. deselect the object and drag a row or column divider of the object. d. select the object and drag a row or column divider on the active object.
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
In simple terms, how would you define a protocol?
Answers: 2
You know the right answer?
Write a program that calculates the cost of a phone call. the user enters a positive integer that in...
Questions
question
English, 20.10.2019 03:00
question
Mathematics, 20.10.2019 03:00
Questions on the website: 13722362