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
The case of x⁰=1 is one you shouldn't overlook!
double powerto(double f, int exponent)
{
if (exponent < 0) { return 0; }
if (exponent == 0) { return 1.0; }
while (--exponent > 0) { f *= f; }
return f;
}
Answer:
yes I do and I wonder why ??
Electronic data interchange