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
Lerok [7]
2 years ago
15

A video club wants to reward its best members with a discount based on the member’s number of movie rentals and the number of ne

w members referred by the member. The discount is in percent and is equal to the sum of the rentals and the referrals, but it cannot exceed 75 percent. (Hint: Math.min.) Write a program DiscountCalculator to calculate the value of the discount.
Mathematics
1 answer:
ivanzaharov [21]2 years ago
8 0

Answer:

public class MovieRental

{

public static void main(String[] args)

{

 Scanner in = new Scanner(System.in);

 

 System.out.print("Enter the number of movie rentals: ");

 int movieRentals = in.nextInt();

 

 System.out.print("Enter the number of members referred to the video club: ");

 int memberReferral = in.nextInt();

 

 in.close();

 

 double discountVal = Math.min(movieRentals + memberReferral, 75);

 

 System.out.println("The discount is equal to: " + discountVal);

}

}

You might be interested in
PLEASE help
astraxan [27]

Answer:

The percentage of people should be seen by the doctor between 13 and

17 minutes is 68% ⇒ 2nd term

Step-by-step explanation:

* Lets explain how to solve the problem

- Wait times at a doctor's office are typically 15 minutes, with a standard

 deviation of 2 minutes

- We want to find the  percentage of people should be seen by the

 doctor between 13 and 17 minutes

* To find the percentage we will find z-score

∵ The rule the z-score is z = (x - μ)/σ , where

# x is the score

# μ is the mean

# σ is the standard deviation

∵ The mean is 15 minutes and standard deviation is 2 minutes

∴ μ = 15 , σ = 2

∵ The people should be seen by the doctor between 13 and

   17 minutes

∵ x = 13 and 17

∴ z = \frac{13-15}{2}=\frac{-2}{2}=-1

∴ z = \frac{17-15}{2}=\frac{2}{2}=1

- Lets use the standard normal distribution table

∵ P(z > -1) = 0.15866

∵ P(z < 1) = 0.84134

∴ P(-1 < z < 1) = 0.84134 - 0.15866 = 0.68268 ≅ 0.68

∵ P(13 < x < 17) = P(-1 < z < 1)

∴ P(13 < x < 17) = 0.68 × 100% = 68%

* The percentage of people should be seen by the doctor between

  13 and 17 minutes is 68%

6 0
3 years ago
Which shuttle service has a greater initial value?​
Irina-Kira [14]

Answer: The Quick shuttle has a greater initial value

Step-by-step explanation:

The We-Drive Shuttle has a initial value of $20 and the Quick Shuttle has an inital value of $30

6 0
3 years ago
Join zo0om <br><br>Room ID: 582 714 7014<br><br>Passd: 0000​
Leona [35]

Answer:

-_- hmmmmmm............for what?

Step-by-step explanation:

Have a great day/night! ^_^

4 0
3 years ago
Read 2 more answers
Ģv=-3x +5
frosja888 [35]

We have been given an equation gv=-3x +5. We are asked to solve our given equation for x.

First of all, we will separate expression with x on one side of equation. We can do it by subtracting 5 from both sides of equation.

gv-5=-3x +5-5

gv-5=-3x

Now we will switch the sides as:

-3x=gv-5

Now we will divide both sides by -3 as:

\frac{-3x}{-3}=\frac{gv-5}{-3}

x=-\frac{gv-5}{3}

Therefore, the value of x would be -\frac{gv-5}{3}.

4 0
3 years ago
Read 2 more answers
Algebra question. Question number 14
Dafna11 [192]

Answer:

i think its b

Step-by-step explanation:

i hope that helps

6 0
3 years ago
Read 2 more answers
Other questions:
  • 2/5+x=1 What equals x?
    11·2 answers
  • Jose works 30 hours each week. At the end of 6 months (26 weeks) he has made $31,200. How much does Jose make per hour ?
    8·1 answer
  • Which of the following options is equivalent to 140%? Select all that apply.
    9·1 answer
  • Write an equation in slope intercept form for the line with slope negative three fourths and y intercept of negative one
    7·1 answer
  • What is the answer to 37+45?
    7·2 answers
  • At a restaurant, servers keep 75% of the tips from each table, and support staff keeps 25%. A $20 tip is left at a table. How mu
    10·2 answers
  • Estimate the percent of the number.<br> ​11% of 504
    5·2 answers
  • Find the value of each trigonometric ratio.<br><br> A. 15/17<br> B. 15/8<br> C. 17/8<br> D. 8/17
    8·1 answer
  • Help please i got 3,800 but it says he walked home again help please :D
    15·1 answer
  • Evaluating expressions
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!