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
For spirit week at whoville Middle School students were encouraged to wear the school colors of burgundy and gold of the 1,500 s
eimsori [14]

Answer:

20%

Step-by-step explanation:

8 0
3 years ago
Solve for y.<br> - 4+v=6
Leviafan [203]

Answer: v=10

Step-by-step explanation:

since you didn’t put a y on there, I solved for v.

3 0
3 years ago
How do I solve for y in the equation 2(3/4)+y=4?
yuradex [85]
2* .75 + y = 4
1.5 + y = 4
Subtract 1.5 From Each Side
Y = 2.5 Or 2 1/2
5 0
3 years ago
Read 2 more answers
1.4t - 0.4 (t- 3.1) =5.8
GenaCL600 [577]
1 Expand
1.4t-0.4t+1.24=5.8

2 Simplify 1.4t-0.4t+1.241.4t−0.4t+1.24 to t+1.24t+1.24
t+1.24=5.8

3 Subtract 1.241.24 from both sides
t=5.8−1.24

4 Simplify 5.8-1.245.8−1.24 to 4.564.56
t=4.56
7 0
3 years ago
1/8 of pizza cost 2 dollars. In an hour, 6 1/4 pizzas were sold. How much money was made at the food booth in that hour
Darina [25.2K]
First of all, you would make 6 1/4 into an improper fraction. This makes it 25/4, then you multiply it by 2 to get 50/8 and have common denominators. Divide that by 1/8, which would be 50. Then since each 1/8 costs 2 dollars you would multiply 50 by 2. So, the answer would be that they made 100 dollars.
4 0
3 years ago
Other questions:
  • one fourth of the 7th grade students made honor roll in the first quarter. the number of honor roll students increased by 18 in
    15·1 answer
  • Find three consecutive even integers whose sum is 200 more than the smallest integer.
    9·2 answers
  • What is the slope of the line that passes through the points (4, 10) and (1, 10)?
    9·2 answers
  • Leon charged $75 at an interest rate of 12.5%. How much will Leon have to pay after one month if he makes no payments?
    10·1 answer
  • Historically, these bolts have an average thickness of 10.1 mm. A recent random sample of 10 bolts yielded these thicknesses:
    11·1 answer
  • What is the value of the 2 in 7,239,103
    11·2 answers
  • What is 4 +4=<br> i have 4 appels i want another 4 appels how many would i have all together
    5·2 answers
  • A car manufacturer announced that next year the price of a certain model car would increase by 5.5 %. This year the price is ​$1
    6·1 answer
  • Please help me solve this equation: B=3V/h solve for V
    7·1 answer
  • Given<br> WXYZ ~ TUVZ, which of the following is not true?
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!