Answer:
<em>The function is written in C++</em>
void calc_discount(double amount,bool member)
{
double discount;
if(member)
{
discount = amount - 0.10 * amount - 0.05 * amount;
}
else
{
discount = amount - 0.05 * amount;
}
cout<<"Discount = "<<discount;
}
Explanation:
<em>I've included the full source code (including the main method) as an attachment where I use comments as explanations</em>
Answer:
<em>#include <iostream></em>
<em>using namespace std;</em>
<em>//function definition</em>
<em>void send_variable(int num){</em>
<em> cout<<"The Number is "<<num<<endl;</em>
<em>}</em>
<em>// main function begins here</em>
<em>int main()</em>
<em>{</em>
<em> int x =15; //declares an it variable and assigns 15</em>
<em> // Calls the function send_variable</em>
<em> send_variable(x);</em>
<em> return 0;</em>
<em>}</em>
Explanation:
Using C++ programming language we created the function called send_variable and in the main function we call this function which only displays the value of an int variable passed unto it.
Answer:
1.Go to the View tab and select Watch.
2.Comparison
3.Editing
4.Drawing (I think)
5.Predesigned slides available for creating a new presentation
Explanation:
Answer:
I tried, I falid, I sorry :(
Explanation:
......