Answer:
// C++ Program to arithmetic operationf on 2 Numbers using Recursion
// Comments are used for explanatory purpose
#include <bits/stdc++.h>
using namespace std;
// add10 recursive function to perform arithmetic operations
int add10(int m, int n)
{
return (m + product(n, 10)); //Result of m + n * 10
return 0;
}
// Main Methods Starts here
int main()
{
int m, n; // 2 Variables m and n declared as integer
cin>>m; // accept input for m
cin>>n; // accept input for n
cout << "Result : "<<add10(m,n); // Print results which is calculated by m + 10 * n
return 0;
}
Answer:
2 cans
Step-by-step explanation:
Calculate how many pounds he needs for one day:
3(0.5)=1.5 pounds for each day Alvin is gone ( 3 represents his dogs, .5 is each dog's food)
Convert into ounces:
1.5*16=24 ounces for one day
Question: If dog food is sold in 12 oz cans, how many will he need?
24/12=2 cans
Thus, he will need 2 cans
Answer:
39
Step-by-step explanation:
To find the intervals you will need to find the lowest and highest numbers, in this case, it would be 1 and 35. A general rule would be 5-7 intervals, I will use 5.
Here are the intervals with the number of people that were in each:
1-7 (9)
8-14 (14)
15-21 (8)
22-28 (3)
29-35 (5)
14+9+8+3+5=39
B
........................