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:
Locale unaware
'{:,}'.format(value) # For Python ≥2.7
f'{value:,}' # For Python ≥3.6
Locale aware
import locale
locale.setlocale(locale.LC_ALL, '') # Use '' for auto, or force e.g. to 'en_US.UTF-8'
'{:n}'.format(value) # For Python ≥2.7
f'{value:n}' # For Python ≥3.6
Video input devices are used to scan images or videos from the outside world to the computer. The information can be stored in a multitude of formats depending on the user's requirements. Examples of types of video input devices include: digital camera. Digital camcorder.
The way sampling is used to store audio recordings are:
- Sound capture.
- converting digital signal.
- sound wave capture, etc.
<h3>How is sampling used to store audio recordings?</h3>
In this process, sound is taken in by the use of a microphone and so it is later converted into a digital signal.
Note that an analogue-to-digital converter is often used to taken in or capture a sound wave at frequent time intervals. This recording is then regarded as a sample and the data is stored in a file for future use.
Learn more about interview from
brainly.com/question/8846894
#SPJ1