1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
zavuch27 [327]
3 years ago
11

Suppose your cell phone carrier charges you a monthly fee of $30.00 for up to 300 minutes and $0.45 for each additional minute a

fter the first 300. Assuming you used your phone for x minutes with x > 300, the total monthly fee would be?
If you used your phone for <= 300 minutes then the charge is $30.00 Assume the user enters a positive value for the number of minutes
Computers and Technology
1 answer:
irakobra [83]3 years ago
6 0

Answer:

30.00 + x * .45 where x is the number of minutes

in code it would be:

import java.util.Scanner;

public class monthlyFee{

   final double MONTHLY_FEE = 30.00;

   final double ADDITIONAL_MINUTE_FEE = 0.45;

   double additionalMinute = 0;

   public monthlyFee(double minutes){

   additionalMinute = minutes;

   }

   public double calculate(){

       if(additionalMinute > 0){

       double TotalFee = MONTHLY_FEE + additionalMinute * ADDITIONAL_MINUTE_FEE;

       return TotalFee;

       }

       else

       return MONTHLY_FEE;

   }

   public static void main(String...args){

   Scanner input = new Scanner(System.in);

   System.out.println("Enter minutes: ");

   double minutes = input.nextDouble();

   monthlyFee obj1 = new monthlyFee(minutes);

   System.out.printf("$" + "%.2f", obj1.calculate());

   }

}

Explanation:

so whatever x is just multiple it by 0.45 to get the total for just the fee.

You might be interested in
What is the atomic number of neonWhat do the following results from the TEST FOR LIFE tab indicate about the sample
Scorpion4ik [409]
The atomic number for Neon is 10.

I do not see the info for the second part of the question
6 0
3 years ago
Which of the following is the correct style tag for having the web page's text be aligned to the right?
uysha [10]

Answer:

B. style=text-align: right

Explanation:

text-align is a CSS property having 5 types of values. Each of values define below.

left - Aligns content to left.

right - Aligns content to right.

center - Centers the content.

justify - Depends on the width of the content, it will align itself to both left and righ

inherit - It specifies the the value of text-align should be taken from parent element.

8 0
3 years ago
Read 2 more answers
________ involves the use of the internet to steal important information.
Ivenika [448]
Phishing involves the use of the Internet to steal important information.
Shoulder surfing refers to people spying on other people while they are using an ATM. Skimming a credit card refers to thieves using a device in ATMs to steal information from cards. Dumpster diving refers to picking trash from dumpsters.
5 0
3 years ago
Write a program to find the sum of the following series in java :
V125BC [204]

Answer:

26!

Explanation:

just added theeee numbeeeeers

8 0
3 years ago
ammy's Seashore Supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrellas to tourists. Write a program
melomori [17]

Answer:

// Here is SammysRentalPrice.java file

// import package

import java.util.*;

// class definition

class SammysRentalPrice

{

   // main method of the class

public static void main (String[] args) throws java.lang.Exception

{

   try{

    // object to read value from user

    Scanner scr=new Scanner(System.in);

    // ask to enter rented minutes

       System.out.print("enter rented minutes: ");

       // read minutes

       int min=scr.nextInt();

       // find hours

       int hour=min/60;

       //reamining minutes

       min=min%60;

       // total cost

       int cost=hour*40+min*1;

       // print cost

       System.out.println("total cost is: "+cost);

   }catch(Exception ex){

       return;}

}

}

Explanation:

Read rented minutes from user and assign it to variable "min".Find the hours from minutes and then update the remaining minutes.After this multiply hours with 40 and remaining minutes with 1.Sum them and this will be the cost of rented a sports equipment.

Output:

enter rented minutes: 145

total cost is: 105

8 0
4 years ago
Other questions:
  • Credit card numbers follow a standard system. For example, Visa, MasterCard, and Discpver Card all have 16 digits, and the first
    11·1 answer
  • With respect to the general classes of computers, a ________ is the most expensive and most powerful kind of computer, which is
    7·1 answer
  • Whats the difference between copying a file to my desktop and creating a shortcut?
    8·1 answer
  • During active listening, which response is NOT an example of providing feedback to the speaker to show that you understand his o
    15·1 answer
  • in java how do i Write a Java program that takes ten numbers as input to calculate and print the average of the numbers.
    11·1 answer
  • What technology has a function of using trusted third-party protocols to issue credentials that are accepted as an authoritative
    12·1 answer
  • Steve left his computer switched on in his room and went out to have breakfast. When he returned, he saw that the monitor had be
    9·1 answer
  • Clarissa is a computer programming consultant. When a client states that they have an extremely complex programming task, which
    10·2 answers
  • Write a simple Html structure and explain the meaning of each line
    8·1 answer
  • Most file managers include a way to create a folder through the save dialog box. true or false?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!