Answer:
PRINT "Values for Principal (P), Rate (A) and Time (T)"
INPUT P, A, T
I = P * A * T/100
Amount = P + I
PRINT "Interest: ", I
PRINT "Amount: ", Amount
Explanation:
This prompts the user for values for Principal, Rate and Time
PRINT "Values for Principal (P), Rate (A) and Time (T)"
This gets values for Principal (P), Rate (R) and Time (T)
INPUT P, A, T
This calculates the interest (I)
I = P * A * T/100
This calculates the amount (A)
Amount = P + I
This prints the interest (I)
PRINT "Interest: ", I
This prints the amount (A)
PRINT "Amount: ", Amount
I believe the answer is <u>Using sound effects between slides.</u>
Using sound effects between slides can cause for a distraction, and if you are in college, your professor may not score your presentation as well as if it were made without sound effects. Hope this helps!
Answer:
Choose internet is the right answer
Answer:
public static String repeat(String text, int repeatCount) {
if(repeatCount < 0) {
throw new IllegalArgumentException("repeat count should be either 0 or a positive value");
}
if(repeatCount == 0) {
return "";
} else {
return text + repeat(text, repeatCount-1);
}
}
Explanation:
Here repeatCount is an int value.
at first we will check if repeatCount is non negative number and if it is code will throw exception.
If the value is 0 then we will return ""
If the value is >0 then recursive function is called again untill the repeatCount value is 0.