Students can perform several tasks in a digital environment. For example, they can watch instructional videos, take notes, and participate in peer discussions.
this is the right answer .just did it
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>