it’s gravity that’s what my teacher said
Answer:
C++.
Explanation:
#include <iostream>
#include <string>
using namespace std;
////////////////////////////////////////////////////////////////////////////
int sumDigits(string alphanumeric) {
if (alphanumeric.length() == 1) {
if ((int(alphanumeric[0]) >= 48) && (int(alphanumeric[0]) <= 57)) {
cout<<int(alphanumeric[0]) - 48<<endl;
return (int(alphanumeric[0]) - 48);
}
else
return 0;
}
else {
if ((int(alphanumeric[0]) >= 48) && (int(alphanumeric[0]) <= 57)) {
cout<<int(alphanumeric[0]) - 48<<endl;
return int(alphanumeric[0]) - 48 + sumDigits(alphanumeric.substr(1, alphanumeric.length()-1));
}
else
return 0 + sumDigits(alphanumeric.substr(1, alphanumeric.length()-1));
}
}
////////////////////////////////////////////////////////////////////////////
int main() {
cout<<"Sum: "<<sumDigits("ab1c2d3e54");
return 0;
}
Answer:
Mass = 3.37 Kg
Explanation:
<u>Given the following data;</u>
Force = 50.5N
Acceleration = 15m/s²
To find the mass of the golf ball;
Force is given by the multiplication of mass and acceleration.
Mathematically, the formula for force is;
Where;
- F represents force measured in Newton.
- m represents the mass of an object measured in kilograms.
- a represents acceleration measured in meter per seconds square.
Making mass (m) the subject of formula, we have;
Substituting into the equation;

<em>Mass = 3.37 Kg</em>