subject

Write a program for horizon phones, a provider of cellular phone service. prompt a user for maximum monthly values for talk minutes used, text messages sent, and gigabytes of data used, and then recommend the best plan for the customer’s needs as well as the price of that plan. a customer who needs fewer than 500 minutes of talk and no text or data should accept plan a at $49 per month. a customer who needs fewer than 500 minutes of talk and any text messages should accept plan b at $55 per month. a customer who needs 500 or more minutes of talk and no data should accept either plan c for up to 100 text messages at $61 per month or plan d for 100 text messages or more at $70 per month. a customer who needs any data should accept plan e for up to 2 gigabytes at $79 or plan f for 2 gigabytes or more at $87.

says my plan e is wrong.

mine

import java. util. scanner;
public class cellphoneservice
{
public static void main (string args[])
{
scanner sc=new scanner(system. in); //key board inputting tru scanner class
system. out. println("enter the talk minutes");
int talkmin=sc. nextint();
system. out. println("enter the text mseesage");
int textmsg=sc. nextint();
system. out. println("enter the gigabyte data");
int gbdata=sc. nextint();
if(talkmin< 500 & & textmsg==0 & & gbdata==0)
system. out. println("plan a is recommended for this user at 49$ per month");
else if(talkmin< 500 & & textmsg> 0 & & gbdata==0)
{

system. out. println("plan b is recommended for te user at 55$ permonth");
}
else if(talkmin> =500 & & textmsg< 100 & & gbdata==0)
{

system. out. println("plan c is recommended for te user at 61$ permonth");
}
else if(talkmin> =500 & & textmsg> =100 & & gbdata==0)
{

system. out. println("plan d is recommended for te user at 70$ permonth");
}
else if(talkmin==0 & & textmsg==0 & & gbdata> 0 & & gbdata< 2)
{

system. out. println("plan e is recommended for te user at 79$ permonth");
}
else if(talkmin==0 & & textmsg==0 & & gbdata> 2)
{

system. out. println("plan f is recommended for te user at 87$ permonth");
}
}
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 23.06.2019 11:20
Http is the protocol that governs communications between web servers and web clients (i.e. browsers). part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. some of the codes and their meanings are listed below: 200, ok (fulfilled)403, forbidden404, not found500, server errorgiven an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
Answers: 2
question
Computers and Technology, 24.06.2019 02:00
How are we able to create photographs differently than 100 years ago? explain your answer in relation to your photograph you selected.
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
Develop the program incrementally: a) start by reading and displaying each line of the input file to make sure you are reading the data set correctly. b) use the split string method to extract information from each line into a list. print the list to prove that this step is working correctly. d) convert the exam scores to type int and calculate the student’s average. display those items to prove this step is working correctly. e) create a tuple containing the six items for each student (name, exam scores, exam mean). display the tuples to prove this step is working correctly. (optionally, you may want to have the exam scores in a list so your tuple is (name, scores_list, f) append each tuple to a list. display the list to prove this step is working correctly. g) use the sort list method to re-order the tuples in the list. display the list to prove this step is working correctly. h) use a for statement to display the contents of the list as a table (with appropriate formatting). i) use a for statement to calculate the average of all scores on exam #1, then display the results. note that you could have calculated this average within the first loop, but we are explicitly requiring you to do this calculation by looping though your list of tuples. j) add the logic to calculate the average of all scores on exam #2, then display the results.
Answers: 2
You know the right answer?
Write a program for horizon phones, a provider of cellular phone service. prompt a user for maximum...
Questions
question
Biology, 18.07.2021 07:30
question
History, 18.07.2021 07:40
question
Biology, 18.07.2021 07:40
question
Mathematics, 18.07.2021 07:40
question
English, 18.07.2021 07:40
Questions on the website: 13722363