You can flip a coin, heads can be true and tales can be false.
Answer:
ABCD= 5934
Step-by-step explanation:
Answer:
i made it going by 2's as it's easier and quicker and more efficient. sorry for the messy hand writing.
Answer: the store charged $40 for the bike helmet before tax.
Step-by-step explanation:
Let x represent the amount that the store charge for the bike helmet before tax.
If the sales tax rate was 8%, it means that the amount of tax that was charge is
8/100 × x = 0.08 × x = 0.08x
Monica paid sales tax of $3.20 when she bought a new bike helmet. This means that
0.08x = 3.2
Dividing the left hand side and the right hand side of the equation by 0.08, it becomes
0.08x/0.08 = 3.2/0.08
x = 40
Answer:
Written in Python
def sums(n):
total = 0
for i in range(1,n+1):
if i%2 == 0:
total = total + i*2
else:
total = total + i
return(total)
Step-by-step explanation:
The function is written in Python
def sums(n):
This initializes total to 0
total = 0
This iterates through the integers that makes up n i.e. 1,2,3.....n
for i in range(1,n+1):
This checks if current digit is even
if i%2 == 0:
If yes, it adds the double of the digit
total = total + i*2
else:
If otherwise, it adds the digit
total = total + i
This prints the calculated sum or total
return(total)
To call the function from main, use the following:
print(sums(n))
Where n is a positive integer. i.e. 