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:30
What kind of motivation is katrina showing? use the drop-down menu to complete the statement. katrina is using motivation because she is personally interested in learning more.
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What statement best describes operating systems? it’s possible for modern computers to function without operating systems. most operating systems are free or very inexpensive. operating systems are managed by the computer’s microprocessor (cpu). operating systems manage the computer’s random access memory (ram).
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
Discuss the ways in which electronic information associated with payments is addressed in terms of security. include encryption, secure sockets layers, and secure electronic transactions in your discussion. are there any other ways that consumers and businesses can keep their payment information secure in an electronic commerce environment? do you feel that your information is safe when conducting electronic business? why or why not?
Answers: 1
You know the right answer?
Write a program for horizon phones, a provider of cellular phone service. prompt a user for maximum...
Questions
Questions on the website: 13722367