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
3 1/2 divided by 2 1/4
liberstina [14]
3 1/2 divided by 2 1/4 = 1.55555556

1.55555556 Rounded is 1.55
8 0
3 years ago
How many litres of milk can be put in six hemispherical bowl each of diameter 35cm​
Lesechka [4]

Answer:

Approximately 67.348 litres can be put in six hemispherical bowl with a diameter of 35 centimetres.

Step-by-step explanation:

The volume of a hemisphere (V), measured in cubic centimetres, is obtained from this formula:

V = \frac{2\pi}{3}\cdot R^{3}

Where R is the radius of the hemisphere, measured in centimetres.

We know that radius is the half of the diameter (D), measured in centimetres, then:

R = 0.5\cdot D

(D = 35\,cm)

R = 0.5\cdot (35\,cm)

R = 17.5\,cm

Now, we get the volume of each hemispherical bowl:

V = \frac{2\pi}{3} \cdot (17.5\,cm)^{3}

V \approx 11224.649\,cm^{3}

The total volume of six hemispherical bowl is:

V_{T} = 6\cdot V

V_{T}= 6\cdot (11224.649\,cm^{3})

V_{T} = 67347.894\,cm^{3}

From Physics we know that 1 litre equals 1000 cubic centimetres. Then:

V_{T} = 67.348\,L

Approximately 67.348 litres can be put in six hemispherical bowl with a diameter of 35 centimetres.

3 0
3 years ago
.................................................6y=8x
frez [133]

Answer: look at the picture

Step-by-step explanation: Hope this help :D

8 0
2 years ago
The base of an isosceles triangle is 12 cm and its perimeter is 48 cm find its area​
NikAS [45]

I hope it helps you ❤️❤️❤️❤️❤️❤️

8 0
2 years ago
Read 2 more answers
PLeasehelppp me with this problem
melisa1 [442]
You would need 8.25 cups 
8 0
3 years ago
Read 2 more answers
Other questions:
  • 44 tens is the same as
    11·2 answers
  • Easy points! Correct answer gets brainliest.
    15·1 answer
  • There are 15 people at a block club meting. How many different committees of 2 people can be formed
    8·1 answer
  • Bill's Apparel and Bud's Apparel are two sporting goods retailers. Bill's want to buy 360 small jerseys, 540 medium jerseys, and
    10·2 answers
  • Passes through (-1, -5) and (2, 6)
    10·1 answer
  • Ms. Sampson recorded the percentage change in her students
    13·2 answers
  • The intersection of a triangle and a line could be a segment<br> True or False
    8·1 answer
  • Help me for brainlist pleaseee
    11·1 answer
  • What is the range of possible sizes for side x? 2.8 height and 2.8 cm
    7·1 answer
  • Which ordered pair comes from the table?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!