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
Type the correct answer in each box.
Harman [31]

Answer:

X=-1/2

Y=3/4

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
Darian is asked to determine the volume of a cylindrical pipe for his dad’s plumbing business. The pipe has a diameter of 7 inch
Salsk061 [2.6K]

Answer:

D

Step-by-step explanation:

a- Multiply the square of 7/2 by 3.14

b-Multiply 36 and 36

c-Multiply 7 and 7

d-Multiply the square of 36 by 3.14

7 0
3 years ago
HOW MUCH MORE WILL YHE INVESTMENT BE?
dalvyx [7]

Answer:

more then america is in dept

5 0
3 years ago
What is a rational number
siniylev [52]

It's a number that can be expressed as a fraction, the numerator and the denominator of which, are integers.

7 0
3 years ago
Find the sale price of each item round two decimal places when necessary $45: mark down 22%
Bess [88]
45 multiply 0.22 = 9.9
45-9.9 = 35.1
Markdown is subtract
4 0
4 years ago
Read 2 more answers
Other questions:
  • write a compound inequality that represents the situation. all real numbers that are greater than –6 but less than 6 a. –6 ≤ x &
    5·1 answer
  • Building a is 190 feet shorter than building
    14·1 answer
  • a student writes "the difference between 15 and the product of 5 and y" to describe the expression 5y-15.Explain the error.
    15·1 answer
  • Is the equation x9 – 5x3 + 6 = 0 quadratic in form? Explain why or why not.
    9·2 answers
  • What is the equation of the line that is perpendicular to y=2/3x+4 and that passes through (–2,–2)?
    10·1 answer
  • If f(x)=-2(5)^x what is f(2)
    5·1 answer
  • If you have 25 questions on your exam how many do you need to miss to make a 39 ?
    7·1 answer
  • Rachel has bought 24 pounds of dog food. She feeds her dog 3/4 pounds for each meal. For how many meals will the food last?
    7·1 answer
  • 3/5+1/2=?+?=?,or? ; please DONT explain the anwser and how to do it i would just like the anwser this is what this site is for
    8·1 answer
  • What does 9 minus x squared equals?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!