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 equation of line L is Y=3X+2) Write the slope intercept form of the equation of the line passing through (3,2) and parallel
Luden [163]
The answer is y=2x-4
3 0
3 years ago
25/75 = x/15 what is x
liq [111]

Answer:

x=5

Step-by-step explanation:

8 0
3 years ago
What is the greatest common factor of 90, 126, 180 and 990?
mylen [45]

9514 1404 393

Answer:

  18

Step-by-step explanation:

90 = 18·5

126 = 18·7

180 = 18·10

990 = 18·55

The greatest common factor of these numbers is 18.

__

<em>Comment on the GCF</em>

It can be useful to know Euclid's algorithm for finding the GCF:

  1. Determine the remainder from dividing the larger number by the smaller.
  2. If the remainder is zero, the smaller number is the GCF. If the remainder is non-zero, use it to replace the larger number and repeat from step 1.

For example, 126 mod 90 = 36; 90 mod 36 = 18; 36 mod 18 = 0, so 18 is the GCF of 126 and 90. (The modulo function 'mod' returns the remainder from division.)

3 0
3 years ago
Solve each equation using the symbolic method. X4+2=26
Jlenok [28]
Hope this helps you out

3 0
3 years ago
The car dealership has a newer model usually sold for $25,500 but they are
garik1379 [7]

Answer:

your a dumb

Step-by-step explanation:

7 0
3 years ago
Other questions:
  • Which statement about the radius of a sphere is true?
    7·2 answers
  • Lisa and Kate are playing a card game, and a total of 900 points has been scored. Lisa scored 250 more points than Kate. If you
    14·2 answers
  • Paramecia are unicellular protists that have contractile vacuoles to remove excess intracellular water. In an experimental inves
    12·1 answer
  • What is the absolute value<br> 3|x+6|-7=20
    5·1 answer
  • Correct answers only please!
    5·1 answer
  • For the following graphed line, what are the slope and y-intercept
    7·1 answer
  • Sample Response/Explanation: No. The correct values of a, b, and c were substituted in, but the formula was simplified wrong. Th
    14·2 answers
  • The table below contains data on how many pages were read for homework in Mr. Kaplinsky's third period. The equation of the line
    5·1 answer
  • i willllllll giver brainliest, 5 stars, and thankssss if correct ( I got one more question after this)
    8·2 answers
  • The accountant charged $35 for the first hour of work and $23 for each hour after that. He earned a total of $127. How many hour
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!