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
Please Help! what is g(x)?​
Illusion [34]

Answer:

The answer is option B.

g(x) = - x²

Hope this helps you

7 0
3 years ago
Find the slope (-2,3)<br>(-1,0).<br>Hint: use rise/rum to find the slope​
Andru [333]

The slope is negative 3.

5 0
3 years ago
Read 2 more answers
2(4t-2)+t=16-t solution set is
ser-zykov [4K]
T=2 the solution set is t=2
5 0
3 years ago
Read 2 more answers
Im confused on how to do this can someone explain???
sesenic [268]

Answer: you add them all up

Step-by-step explanation: you can get the answer from above and dont trust this answer.

3 0
3 years ago
Add Polynomials<br> (3y + y^3– 5) + (4y– 4y + 2y^3+ 8)
nexus9112 [7]

Step-by-step explanation:

Please refer to the attachment

8 0
3 years ago
Other questions:
  • Please help me I don’t understand
    5·1 answer
  • How do you write 3.125 expanded form
    5·2 answers
  • Roberto slides a rectangular picture frame 5 feet to the right of its original position on the wall. How many right angles does
    7·1 answer
  • Please help me someone? Will give a thanks and award
    15·1 answer
  • Find the product<br> -5. 12 =
    7·1 answer
  • Q=90 P=28 OP=92 feet
    12·1 answer
  • Jeremiah answers 90% of the questions on his test correctly. There are 40 questions on the test.
    14·2 answers
  • Koyal Bird 2 kg 400 grams of potatoes 3 kg 250 grams of onion and 4 kg 800 grams of tomato from a vendor what is the total weigh
    13·1 answer
  • Caritas 37 coins on nickels and dimes in his piggy bank the value of the coins is $3.10 write a system of equations define the v
    7·1 answer
  • Lilly buys fresh fruit from a fruit stand. Apples cost $5 per pound and oranges cost $4 per pound. She has $40 to spend. The tab
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!