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, 21.06.2019 15:40
Most networking media send data using in which data is represented by only two discrete states: 0s and 1s. a. digital signals b. contiguous signals c. ramp signals d. exponential signals
Answers: 1
question
Computers and Technology, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
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
Mathematics, 05.11.2020 04:00
question
Geography, 05.11.2020 04:00
question
Mathematics, 05.11.2020 04:00
question
Mathematics, 05.11.2020 04:00
question
Mathematics, 05.11.2020 04:00
question
Mathematics, 05.11.2020 04:00