Answer:
for(j = n; j > 0; j--)
System.out.print(\"*\");
Step-by-step explanation:
-A for loop is a repetition control structure.
-It allows the efficiency to write a loop that would otherwise be written a couple of times.
-The output is a single line comprising n asterisks,
-The number of asterisks printed will be equivalent to the n-value declared.
Step-by-step explanation:
multiple through by a common factor to eliminate the denominator
Answer:
Marcus spent $6.36.
Step-by-step explanation:
First off, the fact that tax is included makes it easier for you, you don't need to worry about any multiplying!
Alright, so, he bought 2 candy bars for $0.79 EACH - that's 2 * $0.79 = $1.58.
Next, a drink for $1.49 and a bag of chips for $3.29. That's $1.49 + $3.29 = $4.78.
Now you add those two numbers up: $1.58 + $4.78 = $6.36.
Therefore, Marcus spent $6.36!