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]
3 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]3 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
Rider ordered 2 hot dogs and 5 hush puppies. His total was $4.70. Write an equation in standard form for this relation, using x
yaroslaw [1]

Answer:

2x + 5y = 4.70

Step-by-step explanation:

Rider ordered 2 hot dogs and 5 hush puppies. His total was $4.70. Write an equation in standard form for this relation, using

From the above question, note that

x = cost of a hot dog

y = cost of a hush puppy.

Our Standard Equation is given as

2 × x + 5 × y= $4.70

2x + 5y = 4.70

3 0
3 years ago
A study was designed to investigate the effects of two variables​(1) a​ student's level of mathematical anxiety and​ (2) teachin
dimaraw [331]

Using Chebyshev's Theorem, considering a standard deviation of 40, we have that at least 75% of the students scored between 360 and 520.

<h3>What does Chebyshev’s Theorem state?</h3>

When we have no information about the population distribution, Chebyshev's Theorem is used. It states that:

  • At least 75% of the measures are within 2 standard deviations of the mean.
  • At least 89% of the measures are within 3 standard deviations of the mean.
  • An in general terms, the percentage of measures within k standard deviations of the mean is given by 100(1 - \frac{1}{k^{2}}).

In this problem, considering a standard deviation of 40, we have that:

440 - 2 x 40 = 360.

440 + 2 x 30 = 520.

Within 2 standard deviations of the mean, no information about the distribution, hence, at least 75% of the students scored between 360 and 520.

More can be learned about Chebyshev's Theorem at brainly.com/question/25303620

7 0
3 years ago
A panda and a giraffe start moving towards each other when they are 300 feet apart. The panda is running at a speed of P feet pe
liq [111]

Answer:

(2P + G) feet/min

Step-by-step explanation:

Speed of the panda = P

Speed of the giraffe = P + G

Thus,

Speed of Panda + Speed of Giraffe = approaching time

= P + P + G

= <u>2P + G</u>

Thus, The panda and the giraffe are approaching each other at a rate

of <u>(2P + G) ft/min</u>

<u></u>

<em>Hope it helps :)</em>

6 0
3 years ago
A college basketball game is 40 minutes long. Derrick’s favorite player participated for 60% of last week’s game. How many minut
alexandr1967 [171]

Answer:

24 minutes

Step-by-step explanation:

5 0
3 years ago
Read 2 more answers
Encouraged by his investment, Joseph decides to open another CD account. This time, he deposits $1000 and plans to leave it unto
Lilit [14]

Answer:

1,113.87

Step-by-step explanation: Ps it was a joke man

5 0
3 years ago
Other questions:
  • Please help im so stupid
    9·1 answer
  • Find all intervals on which the graph of f(x)=(x-1)/(x+3) is concave upward
    13·1 answer
  • Please Help Fast!!! 20 points <br> Solve the system of equations: <br> 25−x=−4y<br> 3x−2y=30
    7·1 answer
  • Remember to show work and explain.
    7·2 answers
  • In the figure below, \overline{AC} AC start overline, A, C, end overline and \overline{BE} BE start overline, B, E, end overline
    5·1 answer
  • Use the distributive property to write an expression equivalent to 5 x 3/4)
    10·1 answer
  • Can a linear graph bend?
    6·1 answer
  • WILL REWARD BRAINIEST! What is the volume of the composite figure if both the height and the diameter of the cylinder are 10.5 f
    10·1 answer
  • Althea has $100. She divides it evenly among her 4 children. Her oldest child, Raul, spends $15 of the amount he receives. How m
    10·2 answers
  • Ariana is writing a poem. She writes 30 words on the first line, 30 words on the second line, 30 words on the third line, and 30
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!