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
(8v + s)5 (multiply 5 into the parentheses)
(8v × 5) + (s × 5)
40v + 5s
Answer:
Probability that Caroline buys fruit, a CD or both is 0.76.
Step-by-step explanation:
Let event A = Caroline buys fruit, event B = Caroline buys CD, Ac and Bc are complementary events.
Events AB, ABc, AcB and AcBc are jointly exhaustive and disjoint, hence P(AB) + P(ABc) + P(AcB) +P(AcBc) =1.
Events A and B independent, hence Ac and Bc independent too and probability P(AcBc) = P(Ac)*P(Bc) = (1 - P(A))(1-P(B)) = 0.6*0.4 = 0.24.
Required probability P(AB + ABc + AcB ) = P(AB) + P(ABc) + P(AcB) = 1- P(AcBc) = 1 - 0.24 = 0.76.