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
Help! Due soon!!!!!!!!!
denis23 [38]

Answer:

78.75

Step-by-step explanation:

450 is increased by 75%

450 + 450*75%

Change to decimal form

450 +450*.75

450+337.5

787.5

Now decrease by 90%

787.5-787.5*90%

Change to decimal form

787.5-787.5*.9

787.5-708.75

78.75

8 0
2 years ago
Read 2 more answers
What is 6.729 x 8.3 (show ur work)
katen-ka-za [31]

Answer:92,817,765

Step-by-step explanation:Arrange the numbers one on top of the other and line up the place values in columns. The number with the most digits is usually placed on top as the multiplicand.

Starting with the ones digit of the bottom number, the multiplier, multiply it by the last digit in the top number

Write the answer below the equals line

If that answer is greater than nine, write the ones place as the answer and carry the tens digit

Proceed right to left. Multiply the ones digit of the bottom number to the next digit to the left in the top number. If you carried a digit, add it to the result and write the answer below the equals line. If you need to carry again, do so.

When you've multiplied the ones digit by every digit in the top number, move to the tens digit in the bottom number.

Multiply as above, but this time write your answers in a new row, shifted one digit place to the left.

When you finish multiplying, draw another answer line below your last row of answer numbers.

Use long addition to add your number columns from right to left, carrying as you normally do for long addition.

Long Multiplication with Decimals

Long multiplication with decimals using the standard algorithm has a few simple additional rules to follow.

Count the total number of decimal places contained in both the multiplicand and the multiplier.

Ignore the decimals and right align the numbers one on top of the other as if they were integers

Multiply the numbers using long multiplication.

Insert a decimal point in the product so it has the same number of decimal places equal to the total from step 1.

4 0
2 years ago
Read 2 more answers
What is the ratio of 3ft to 5in
shtirl [24]
Im not that sure but i think it is 5
8 0
2 years ago
Mr. Flanders’ class sold doughnuts for $1.35 each and Mr.Rodriquez’s class sold cartons of milk for $1.08 each together the clas
saul85 [17]

Answer:

Part A: Let, the number of doughnuts = x and the number of carton milk = y.

Part B: We have, Mr. Flanders sold doughnut for $1.35 each and Mr. Rodriquez sold milk for $1.08 each.

As, they sold 85 items in total.

Thus, x + y = 85.

Moreover, they both earned $104.49 in total.

So, 1.35x + 1.08y = 104.49.

Hence, we get the system of equations,

1.35x + 1.08y = 104.49

x + y = 85.

Part C: Now, we will solve the system of equations,

As, x + y = 85 ⇒ y = 85 - x.

As, 1.35x + 1.08y = 104.49 ⇒ 1.35x + 1.08(85-x) = 104.49 ⇒ 1.35x + 91.8 - 1.08x = 104.49 ⇒ 0.27x = 12.69 ⇒ x = 47.

So, y = 85 - 47 ⇒ y = 38.

Thus, x = 47 and y = 38 is the solution.

Part D: Hence, we get that,

Number of doughnuts sold by Mr. Flanders is 47 and the number of carton milk sold by Mr. Rodriquez is 38.

4 0
2 years ago
Men im mainly talking to you....
andreyandreev [35.5K]

are in that situation pls tell me

6 0
2 years ago
Other questions:
  • Which shows 542 − 462 being evaluated using the difference of squares method?
    15·2 answers
  • A fish tank is in the shape of a cube. Its volume is 125ft3. What is tge area of one face of the tank?
    8·1 answer
  • Help help! What are the answers!
    11·1 answer
  • How many solutions does the following system of equations have?
    5·1 answer
  • In one day, Ricardo hiked 2_ 2 3 times as far as Bernie and Chloe hiked before they ate lunch. How far did he hike?
    8·1 answer
  • Pls help me with this problem
    10·1 answer
  • can someone please give the answers the these 2 questions, ignore the blue dot one the fist questions i clicked it by accident
    14·1 answer
  • ASAP! Adrians cat ate 1/3 of a bag of cat treats in September and 1/3 of the same bag of treats in October. What part of the bag
    15·2 answers
  • The length of a rectangle is shown below:
    6·1 answer
  • 11. In a parking garage there is a 6:5 ratio of blue cars to
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!