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
This week Jerome earned 252.50 in all. What was the dollar amount of the meals that Jerome served
Natasha2012 [34]

Answer:

Step-by-step explanation:

$ 449.75

6 0
3 years ago
On Sunday, chara ran 6 more miles than he did on Saturday. If he ran m miles on Saturday, which expression represents how many m
sattari [20]

Answer:

Is A supposed to be 6 x m or no??

Step-by-step explanation:

8 0
3 years ago
Simplify: 7ax3+5x2a-9a÷3<br>​
posledela
1)Calculate the product:
21a + 10a - 3a
2)Collect like terms:
28a
Answer:
28a

8 0
3 years ago
Natalie works in a department store selling clothing. She makes a guaranteed salary of $300 per week, but is paid a commision on
viva [34]

Answer:

$367.50 and y=0.3x+300

30% of 225 is 67.50 and her guaranteed salary is 300 so 300+67.50=$367.50.

6 0
3 years ago
What is <br><br> 4.2 = c/8<br><br> And it would be a lot helpful
liberstina [14]

Step-by-step explanation:

c = 8 × 4.2 (move 8 from the denominator to the side where the 4.2 is - make c the subject)

c = 33.6

7 0
3 years ago
Read 2 more answers
Other questions:
  • Find 7 1/2 divided by 2 1/2. Simplify and write as mixed number
    8·2 answers
  • Based on the tree diagram below what is the probability that the test for lice returns a false positive
    12·1 answer
  • What’s the measure of x
    15·1 answer
  • Find the slope of the line that contains the points (6,-3) and (6,5)
    5·2 answers
  • Find the missing lengths of the sides.
    6·1 answer
  • QUICKEST AND MOST CORRECT ANSWER GETS BRAINLIEST 0LUS ILL FOLLOW U​
    13·1 answer
  • Which shows one way to determine the factors of x^3-12x^2-2x+24 by grouping
    10·1 answer
  • 5a - (-9) - 7a - 12<br> 6 - 7m^2 + 4n^2 - 8 - 9m^2 - n^2
    9·1 answer
  • Chris types at an average speed of 50 words per minute. He has already typed 1,250 words of his final paper. The paper has to be
    12·1 answer
  • Simplify:
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!