Answer:
x = -45, y = -40
Step-by-step explanation:
Based on the first clue, we find out that
x + 5 = y
5x = 6y + 15
We can re-write the first equation to x = y - 5.
Therefore, the second equation can also be written as 5(y - 5) = 6y + 15
This can be simplified to 5y - 25 = 6y + 15
We can subtract 6y from each side, and add 25 to each side;
5y - 6y = 15 + 25
Therefore, -y = 40
Therefore y = -40.
Now let's plug this back into the original equation, to get : x + 5 = -40
x=-45
To find the decimal value, we must convert 1/2 and 3/4 into decimal.
1/2=0.5
3/4=0.75
Now we just have choose a random decimal in between the decimal.
Let's choose 0.6
Now we have to convert the decimal into a fraction. So we'll multiply the decimal by100.
0.6×100=60
Then we make the 60 into a fractions. 60/100
Then we'll simply the fraction. 60/100÷10=6/10÷2=3/5
There you go. You have your answer.
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);
}
}
The answer is -270 because its closer to 0 than any other numbers