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);
}
}
Usually you use addition to find a sum.
Answer:
7/10
Step-by-step explanation:
To find how many of x are y, you solve <em>y/x</em>.
With our numbers, we have <em>7/6 ÷ 5/3</em>.
We can turn that into <em>7/6 × 3/5</em> = <em>21/30</em> = 7/10.
5 and 3 are two primary numbers for this question