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
Jayden and Chandra are cleaning the house. It has 12 rooms, and each room is about the same size. When Jayden cleans by himself,
madam [21]
We know that

Jayden cleans 12 rooms in---------------> <span>6 hours
 X rooms-------------------------------------> 4 hours
X=4*12/6--------> 48/6---------> 8 rooms
that means  </span>Jayden  cleans in 4 hours 8 rooms

Chandra cleans 12 rooms in---------------> 12 hours
 X rooms-------------------------------------> 4 hours
X=4*12/12--------> 48/12---------> 4 rooms
that means Chandra  cleans in 4 hours 4 rooms

the answer is
<span>Jayden = 8 blankrooms
</span><span>Chandra = 4 blankrooms</span>
6 0
3 years ago
Evaluate the expression w 2 - v + 1 for w = -2 and v = -8.
Aleksandr [31]

Answer:

Is the w2, w(2) or

{w}^{2}

?

If it's w(2) the answer is -4--8+1=-4+8+1=5

if it's w^2 then the answer would be 4--8+1=4+8+1=13

4 0
2 years ago
the student to teacher ratio is 15:3. if there are 90 teachers at the school, how many students are there
mixas84 [53]
15x+3x=90\\&#10;18x=90\\&#10;x=5\\\\&#10;15x=15\cdot5=\boxed{75}
8 0
3 years ago
Read 2 more answers
A man notices that a tank is half full. After emptying 600 litres from the tank, that it is now one-third full. How much does th
enot [183]
One half is equal to 3/6.
One third is equal to 2/6.

After removing 600 litres from the tank, there is a decrease from 3/6 to 2/6

3/6-2/6=1/6

600 litres is 1/6 of the tank. Multiply by 6 to get the capacity of a full tank.

600*6=3600

The tank can hold 3600 litres.
6 0
3 years ago
21.60 divided by 1.35 is what?
klasskru [66]

Answer:

16

Step-by-step explanation:

21.60 divided by 1.35=16

8 0
2 years ago
Read 2 more answers
Other questions:
  • Find the rational zeros of the polynomial function. Then enter the function in factored form.
    15·1 answer
  • the average number of phone inquiries per day at the poison control center is 4 find the probability it will receive 5 calls on
    13·2 answers
  • What percent of 34 is 40?<br> (Needs to be rounded to the nearest hundredth)
    12·1 answer
  • Four married couples have reserved eight seats in a row at the theater. If they arrange themselves​ randomly, what is the probab
    5·1 answer
  • In a math class of 32 students, 18 boys and 14 are girls. On a unit test, 5 boys and 7 girls made an A grade. A student is chose
    13·1 answer
  • Please help! Very Easy Question! Which of the following are rational numbers?
    5·1 answer
  • A bag contains 5 blue marbles, 2 black marbles, and 3 red marbles. A marble is randomly drawn from the bag.
    13·2 answers
  • How do you write 550% as a fraction, mixed number, or whole number in simplest form? submit?
    11·1 answer
  • C-1 1/4&gt;-2 1/2 please help me
    9·1 answer
  • Write a compound inequality that represents the following scenario:
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!