Answer:
7.8 Mph
Explanation:
Rate of cycling = 1.1 rev/s
Rear wheel diameter = 26 inches
Diameter of sprocket on pedal = 6 inches
Diameter of sprocket on rear wheel = 4 inches
Circumference of rear wheel = \pi d=26\piπd=26π
Speed would be
\begin{gathered}\text{Rate of cycling}\times \frac{\text{Diameter of sprocket on pedal}}{\text{Diameter of sprocket on rear wheel}}\times{\text{Circumference of rear wheel}}\\ =1.1\times \frac{6}{4}\times 26\pi\\ =134.77432\ inches/s\end{gathered}Rate of cycling×Diameter of sprocket on rear wheelDiameter of sprocket on pedal×Circumference of rear wheel=1.1×46×26π=134.77432 inches/s
Converting to mph
1\ inch/s=\frac{1}{63360}\times 3600\ mph1 inch/s=633601×3600 mph
134.77432\ inches/s=134.77432\times \frac{1}{63360}\times 3600\ mph=7.65763\ mph134.77432 inches/s=134.77432×633601×3600 mph=7.65763 mph
The Speed of the bicycle is 7.8 mph
The answer would be 32/3 or if you want the simplified version it’s 10 2/3.
Answer:
Below is the desired C++ program for the problem. Do feel free to edit it according to your preference
Explanation:
#include <iostream>
#include <vector>
using namespace std;
void ExactChange(int userTotal, vector<int> &coinVals) {
coinVals.reserve(5);
coinVals[0] = userTotal / 100;
userTotal %= 100;
coinVals[1] = userTotal / 25;
userTotal %= 25;
coinVals[2] = userTotal / 10;
userTotal %= 10;
coinVals[3] = userTotal / 5;
userTotal %= 5;
coinVals[4] = userTotal;
}
int main() {
vector<int> coins;
int value;
cin >> value;
if (value <= 0) {
cout << "no change" << endl;
} else {
ExactChange(value, coins);
if (coins[0] != 0) cout << coins[0] << " " << (coins[0] == 1 ? "dollar" : "dollars") << endl;
if (coins[1] != 0) cout << coins[1] << " " << (coins[1] == 1 ? "quarter" : "quarters") << endl;
if (coins[2] != 0) cout << coins[2] << " " << (coins[2] == 1 ? "dime" : "dimes") << endl;
if (coins[3] != 0) cout << coins[3] << " " << (coins[3] == 1 ? "nickel" : "nickels") << endl;
if (coins[4] != 0) cout << coins[4] << " " << (coins[4] == 1 ? "penny" : "pennies") << endl;
}
return 0;
}