The function that takes three decimal numbers as inputs and finds the sum of those inputs and returns the sum has been given below
What is programming?
Program is the set of instructions given to the computer so that the computer can execute those instructions. The act of writing program is called programming.
The program has been shown below
#include<stdio.h>
using namespace std;
int main()
{
double n1, n2, n3;
double s;
printf("Enter first numbers");
scanf(%lf, &n1);
printf("Enter second numbers");
scanf(%lf, &n2);
printf("Enter third numbers");
scanf(%lf, &n3);
s = n1 + n2 + n3;
printf("Sum = %f", s);
return 0;
}
To learn more about programming refer to the link-
brainly.com/question/23275071
#SPJ4
Answer:
We use the formula:
S 10 = 8 · [(1/2)^9 - 1] / (1/2 - 1 );
Then, S 10 = 8 · ( 1/512 - 1 ) / ( 1/2 - 1 );
S 10 = 8 · ( - 511 / 512 ) / (-1 / 2 );
S 10 = ( - 511 / 64 ) · ( - 2 );
S 10 = + 511 / 32;
S 10 = 15.96;
Step-by-step explanation:
Answer:
1/2
Step-by-step explanation:
2*3=6
6/12=1/2
<u><em>Answer:</em></u>
Option 3
<u><em>Explanation:</em></u>
<u>To get the value of the cheapest bike, best option, we will calculate the total cost of each bike:</u>
<u>i- Option 1:</u>
Total cost = $88
<u>ii- Option 2:</u>
$5 down payment and $8 per week for 10 weeks
Total cost = 5 + 8(10) = 5 + 80 = $85
<u>iii- Option 3:</u>
$12 down payment and $5 per month for 12 months
Total cost = 12 + 5(12) = 12 + 60 = $72
<u>iv- Option 4:</u>
$20 down payment and $20 per month for 12 months
Total cost = 20 + 20(12) = 20 + 240 = $260
<u>Now, from the above calculations, we can conclude that:</u>
The best price would be that of option 3 ($72). It is the lowest price compared to other option.
Hope this helps :)
Answer:
The sequence above is a geometric sequence
For an nth in a geometric sequence

where n is the number of terms
a is the first term
r is the common ratio
From the question
a = 45
r = 15 / 45
The explicit formula for the sequence is
U(n) = 45(1/3)^n-1
Hope this helps you