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
What is the factor of ()=63−35
IgorC [24]

Answer:

the factor is this problem is

7(9 - 5)

Step-by-step explanation:

3 0
3 years ago
Solve each equation:
omeli [17]
You sure seem to be asking a lot of questions lately. I'd like to see that you've been trying with these problems at least because if you can't get that first one it's almost like you missed the whole lesson.

1. 20 = 4b + 7 + 5
Add the 7 and 5.
20 = 4b + 12
Subtract 12 from each side.
8 = 4b
Divide each side by 4.
2 = b

2. 7 = 6k - 7k
6k - 7k = -1k. (the k acts as a sort of unit)
7 = -1k
Divide each side by -1.
-7 = k

3. 3.23 - 2m = 3 - 2(5m - 2)
Distribute the ×-2 to each term inside the parentheses.
3.23 - 2m = 3 - 10m + 4
Add the 3 and 4.
3.23 - 2m = 7 - 10m
Add 10m to each side.
3.23 + 8m = 7
Subtract 3.23 from each side.
8m = 3.77
Divide by 8.
m = 0.47125

4. -88/45=1/3r+2/5r
To get rid of the fractions, let's multiply everything by 45.
-88 = 15 + 18r
Subtract 15 from each side.
-103 = 18r
Divide by 18.
-103/18 = r
As a mixed number, r = -5 and 13/18
As a decimal, r = -5.7222...
6 0
3 years ago
Phyllis invested 800 dollars into two different accounts, a portion earning a yearly interest rate of
Nitella [24]

The amount of money that Phyllis invested at each given rate of 4 and 6 percent is = $394.57 and $591.86 respectively.

<h3>Calculation of the total capital invested</h3>

The time the investment lasted= 12 years.

Simple interest = 1579.05 - 800= $779.05

The principal capital= $800

Rate of the both capital invested;

= SI × 100/P ×T

= 779.05 × 100/800 × 12

= 77,905/9600

= 8.11%

To find the amount of money that Phyllis invested at each given rate,

Rate 1 = 4/8.11× 800

= 3200/8.11

= $394.57

Rate 2 = 6/8.11× 800

= 4800/8.11

= $591.86

The amount of money that Phyllis invested at each given rate of 4 and 6 percent is = $394.57 and $591.86 respectively.

Learn more about simple interest here:

brainly.com/question/20690803

#SPJ

7 0
1 year ago
HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Juli2301 [7.4K]

Answer:

4/8

Step-by-step explanation:

8 is how many cookies in total and 4 is how many that needs to be distributed.

7 0
2 years ago
Amalia used 8 lemons to make a picture of lemonade that served six people. How many lemons would she need to make enough lemonad
11111nata11111 [884]
28 lemons is the answer to your question
8 0
3 years ago
Other questions:
  • Whats the start time for 10:08
    7·1 answer
  • What is the answer to this 3√27
    9·2 answers
  • Each day a runner trains for a 10km race. On the fisrt day she runs 1000m, and then increases the distance by 250m on each subse
    8·1 answer
  • 7 minutes to half an hour
    5·2 answers
  • Write the equation of the line in slope-intercept from the graph below.
    12·1 answer
  • Solve the equation 144x²-1=0
    8·1 answer
  • Which inequality’s are true? Check all that apply.
    7·2 answers
  • Find the slope of the line that passes through each pair of points.<br> C(0, –2), D(3, -2)
    10·1 answer
  • Gary’s pay is $15 per hour. He receives a 6% pay raise. Did her pay increase by the same percent amount as Gary’s? Explain.
    8·2 answers
  • Pls help with this and explain
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!