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
WARRIOR [948]
3 years ago
8

A bike share program in Indianapolis allows customers to borrow a bike and charge them based on the length of their ride.

Computers and Technology
1 answer:
REY [17]3 years ago
4 0

Answer:

public static double calculate_fee(int lengthofRide, String membership){

       double fee = 0.0;

       if(membership.equalsIgnoreCase("daily")){

           fee = 1.50 +(lengthofRide*20);

       }

       else if (membership.equalsIgnoreCase("annually")){

           fee = 1.0+(lengthofRide*15);

       }

       return fee;

   }

Explanation:

The solution is implemented in Java. The complete code prompting the user to enter ride duration and membership type is given below:

import java.util.Scanner;

public class num4 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter your membership \"daily\" of \"annually\"");

       String membership = in.nextLine();

       System.out.println("Enter your ride duration in minutes");

       int rideTime = in.nextInt();

       //calling the method calculate_fee

       System.out.println("Your total fee based on your membership is "+calculate_fee(rideTime,membership));

   }

   public static double calculate_fee(int lengthofRide, String membership){

       double fee = 0.0;

       if(membership.equalsIgnoreCase("daily")){

           fee = 1.50 +(lengthofRide*20);

       }

       else if (membership.equalsIgnoreCase("annually")){

           fee = 1.0+(lengthofRide*15);

       }

       return fee;

   }

}

You might be interested in
Your company's IT management team is looking for an online tool to provide recommendations to save money, improve system availab
alina1380 [7]

Answer:

AWS Trusted Advisor

Explanation:

The IT management team can choose to host their system in Amazon Web Service (AWS) and utilize the AWS Trusted Advisor service to manage the resources. AWS Trusted Advisor is an online tool offered by Amazon to provide guidance to their client to manage the cloud resources by following some recommended good practices. This can save cost, improve system availability and performance and also to improve system security. AWS Trusted Advisor provide recommendation in real time and on regular basis. It will scan a client's subscribed cloud-based infrastructure and provide recommendation actions in five aspects which are cost optimization, performance, security, fault tolerance and service limits.

6 0
3 years ago
Which segment of society introduced the grunge look?
Charra [1.4K]

Answer:

A. artistic and experimental college students

Explanation:

Grunge look was so popular in 1990 and 2000, but the concept was known in 1972 in Seattle, The style was popularized by music artists Kurt Cobain, and Pearl Jam, this style is so simple shirt, torn pants with a disheveled hair, this style replace the punk style, the alternative rock and the artist was key element for this simple style.

5 0
4 years ago
Read 2 more answers
should gaming be considered as a sport? Why or why not? (Your opinion) and please have a good aurgumant.
Sidana [21]
It's part not and part it's okay becuase sometimes gaming can help you in sports thats what happen to me it made me a beder player on the soccer team.

But your not really geting you bones exsesize then you get a brain cramp.
8 0
3 years ago
Read 2 more answers
Imagine that you’re partner in a business firm that sells computers and other electronic goods. As part of your business organiz
WITCHER [35]

The best way to dispose of electronic goods is by recycling raw materials and correctly disposing of the remaining hazardous materials.

<h3>What does eco-friendly disposal imply?</h3>

This implies using disposal practices that have a low negative impact on the environment.

<h3>How do you dispose electronic goods?</h3>

The best way to do this is:

  • Appropiately collect electronic goods that cannot be used anymore.
  • Identify the materials or parts that can be recycled as this reduces the number of new parts that will be manufactured.
  • Separate the recycling materias from those that cannot be recycled.
  • Dispose of the remaining materials in the best way depending on the material as some of these are hazardous and require special disposing practices.

Learn more about recycling in: brainly.com/question/11861824

6 0
3 years ago
Write a for loop in python that prints 10 random numbers between 1 and 100 inclusive.
Goshia [24]

import random

for x in range(10):

   print(random.randint(1,100))

8 0
3 years ago
Other questions:
  • Why are there 2 types of ip addresses like 172.16.254.1 or 2001:db8:0:1234:0:567:8:1?
    10·1 answer
  • un diagrama de flujo donde se gana una partida de ajedrez teniendo en cuenta los movimientos de la otra persona
    8·1 answer
  • Can any existing directory beneath the system root directory be used as a mount point?
    9·1 answer
  • Effective character encoding requires:
    8·1 answer
  • Which client software can be used to connect remote Linux client into a Palo Alto Networks Infrastructure without sacrificing th
    6·1 answer
  • A technician is troubleshooting an employee laptop that has a wired network connectivity issue. The laptop can connect to the in
    9·2 answers
  • In the context of machine learning, an artificial neural network (ANN) is most likely used for:a.supplying explanations for solu
    9·1 answer
  • What is the largest software application on a computer?
    15·2 answers
  • Kyle has a notebook for each of his 5 classes. He puts 6 stickers on each notebook. There are 10 stickers on each sheet. How man
    11·2 answers
  • Which technologies are currently used in health ​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!