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
The sum of two polynomials is 8d5 – 3c3d2 + 5c2d3 – 4cd4 + 9. If one addend is 2d5 – c3d2 + 8cd4 + 1, what is the other addend?
lidiya [134]
This one is a bit confusing but I'll try to answer. Since the sum is given and one of the addend is given, we need to perform subtraction to get the other addend.

     8d⁵ - 3c³d² + 5c²d³ - 4cd⁴ + 9  ⇒ SUM
<u>-    2d⁵ -   c³d²              + 8cd⁴ + 1 </u> ⇒ 1ST ADDEND
     6d⁵ - 2c³d² + 5c²d³ -12cd⁴ - 8 ⇒ 2ND ADDEND


8 0
3 years ago
Read 2 more answers
What equation shows how to use equivalent fractions to evaluate 2/5 + 3/4
Margaret [11]

Answer:

Step-by-step explanation:

Exact form: 23/20

Decimal form: 1.15

8 0
3 years ago
Leticia simplified an expression. Her work is shown below.
victus00 [196]

Leticia made a mistake in her step 2. She did subtraction before multiplication.

<h3 />

<h3>How to simplify an expression?</h3>

The expression can be simplified as follows;

4.5 ÷ 0.25 + 2.5 - 0.75 × 8

Hence, using Pemdas rule,

4.5 ÷ 0.25 + 2.5 - 0.75 × 8

18 + 2.5 - 0.75 × 8

18 + 2.5 - 6 = 14.5

Therefore, she made mistake in her step 2 because she was suppose to solve the multiplication before subtraction.

learn more on expression here: brainly.com/question/13545210

#SPJ1

4 0
2 years ago
An interior designer sketches a design for a rectangular rug. The dimensions of a sketch are 4 inches by 7.5 in. The dimensions
Black_prince [1.1K]

3,000 in.

(4 x 10) + (7.5 x 10) = 3000


The dimensions on the sketch are 10 times less than the actual rug.


40 in., 7.5 in.


The drawing lengths are ten times more, so you just multiply the dimensions by 10, and then multiply the product you find out to find the actual area of the rug.

4 0
4 years ago
Solve for y<br> 2y + 6 = 1 - 3y
UNO [17]

Answer:

-1

Step-by-step explanation:

2y+6=1 -3y

add three to both sides and minus 6 from both sides becasue you want to get y by itself

5y=-5

now both sides by 5

y=-1

6 0
3 years ago
Read 2 more answers
Other questions:
  • An angle measures 50° more than the measure of its supplementary angle. What is the measure of each angle?
    5·2 answers
  • Does anyone know what's on the algebra 1 module 8 dba? My teacher is Bennett Tocci if that helps. My DBA is at 4:00 pm today.
    8·2 answers
  • Which of the following is a step in simplifying the expression-
    14·2 answers
  • A vat of milk has spilled on a tile floor. The milk flow can be expressed with the function r(t) = 4t, where t represents time i
    10·1 answer
  • Christmas Tree lights are used not only for Christmas trees, but sometimes to decorate college dorm rooms. Suppose that a string
    5·1 answer
  • The fundamental theorem of algebra tells us how many zeros (including complex zeros) a polynomial function has.
    11·1 answer
  • What expression is equivalent to 3(2t + 6) -4t
    15·1 answer
  • Question 1 of 17
    7·2 answers
  • Factor x^2+x+6<br> Plz help
    12·1 answer
  • The following triangles are congruent by SAS. How did we know that
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!