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 01:00
Which option marks all modification made within a document? review comment track changes balloons
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
question
Computers and Technology, 24.06.2019 03:30
Other - a written response, no less than arial 12-point font, to the following: of the following, which would you consider is most important to customer service goals? choose one and explain why. (1) accuracy (2) punctuality and attendance (3) courtesy (4) productivity (5) organization
Answers: 1
question
Computers and Technology, 24.06.2019 06:00
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
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
Social Studies, 13.07.2019 05:00
question
Mathematics, 13.07.2019 05:00
question
Chemistry, 13.07.2019 05:00
question
Mathematics, 13.07.2019 05:00
question
Mathematics, 13.07.2019 05:00
Questions on the website: 13722361