Flowcharts are used as a prototype of an actual program.
First, I will write out the algorithm; which will be used as an explanation of the flowchart (see attachment for flowchart)
The algorithm is as follows;
1. Start
2. Get input for cost of a meal and cost of a drink;
3. Calculate the total cost for a meal and two drinks
4. Multiply the total cost of a meal and two drinks by 7, to get the weekly cost
5. Display the weekly cost
6. Stop
At the end of the algorithm/flowchart, the weekly cost is calculated and printed.
See attachment for flowchart
Read more about algorithms and flowcharts at:
brainly.com/question/18088572
Answer:
// here is code in c++
// headers
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int n,num;
double sum=0, avg;
long long int prod=1;
cout<<"Enter value of N:";
// read value of N
cin>>n;
cout<<"enter "<<n<<" numbers:";
// read the N numbers
for(int x=0;x<n-1)
{
cin>> num;
// calculate sum of all
sum=sum+num;
calculate product of all
prod=prod*num;
}
// print sum
cout<<"sum of all "<<n<<" numbers is: "<<sum<<endl;
// print product
cout<<"product of all numbers is : "<<prod<<endl;
print average
cout<<"average of all "<<n<<" numbers is: "<<sum/n<<endl;
return 0;
}
Explanation:
Read the value of n from user.Then ask user to enter n numbers. Then calculate sum of all entered number and their product.After this calculate the average of entered number by dividing sum with n.Print sum, product and average of n numbers.
Output:
enter value of N:6
enter 6 numbers:1 2 3 4 5 6
sum of all 6 numbers is: 15
product of all numbers is : 120
average of all 6 numbers is: 2.5
1. What does it mean to say that two variables are negatively correlated?
Correct answer: A) When one variable increases, the other decreases.
explanation:
Negative correlation is a relationship between two variables in which one variable increases as the other decreases, and vice versa.
Answer: True
Explanation:
Yes, it is true that MSS are best design to deal with systems whose goals are not well defined. As, information and data concepts are easily defined by the MSS and also it is easily update the system also. It is used to simulation the data that are designed to match real experiment. It includes the decision to action with the measurement to action interface system.