Answer:
Explanation:
Let's do this in python
(a) Between 5 and 60 and divisible by 5
for i in range(5, 60/5):
print(5*i)
(b) Less than 200 and divisible and 2 and 7
for i in range(1, int(200/14) + 1):
print(14*i)
(c)Sum of multiple of 8 that are between 100 and 500
sum_result = 0
for i in range(100, 500):
if i % 8 == 0:
sum_result += i
print(sum_result)
(d)sum of all odd numbers between 20 and 10
sum_odd = 0
for i in range(10, 20):
if i % 2 == 1:
sum_odd += i
print(sum_odd)
Your correct I think I’m not sure
Answer:
candyCost = int(input("How much is the candy?"))
Explanation:
candyCost = input("How much is the candy?") → By default, this how you get input and store the value. And it is stored as a string
candyCost = str(input("How much is the candy?")) → This also gives you a string to store
candyCost = float(input("How much is the candy?")) → This gives you a float number, decimal number, to store
candyCost = int(input("How much is the candy?")) → This gives you an integer number, a non-decimal
Answer:
acceleration = 4.76 m/s²
Explanation:
Given that"
the mass of the dynamic trolley = 0.6 kg
the mass of the load = 1.5 kg
total mass = (0.6 + 1.5) kg = 2.1 kg
the force = 10 N
Thus;
using the formula of force which is;
Force = mass × acceleration
10 = 2.1 × acceleration
acceleration = 10/2.1
acceleration = 4.76 m/s²