Computers and Technology

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.

answer
Answers: 1

Similar questions

Do you know the correct answer?
Write a program that calculates the cost of a phone call. the user enters a positive integer that in...

Questions in other subjects:

Konu
Mathematics, 13.04.2021 23:30