1.
Q1: Write an expression that will calculate a 6% tax on the number variable
subtotal
and assign it to a variable called tax
.
subtotal
and assign it to a variable called tax
.
speed
(in miles per hour) and time
(in hours) and assign it to a variable called miles
.
money
and assign it to a variable called pennies
.
P
, the interest rate variable R
, and the time variable t
. The equation for simple interest is