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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:20, kiarakagni
What is a point-in-time measurement of system performance?
Answers: 3
image
Computers and Technology, 23.06.2019 09:30, Princessirisperez0
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e. g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
image
Computers and Technology, 23.06.2019 13:10, BrianKeokot4534
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
image
Computers and Technology, 23.06.2019 23:30, jamalchris9353
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
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 in other subjects:

Konu
Biology, 17.03.2020 02:26
Konu
Mathematics, 17.03.2020 02:26