Answer:
This function is written in python
def intlfax(pages):
if pages <=10:
fax = 7 + 0.45 * pages
else:
fax = 7 + 0.45 * 10 + 0.10 * (pages - 10)
return fax
Step-by-step explanation:
This line defines the function
def intlfax(pages):
This checks if pages is less than or equal to 10 and calculates the fax
if pages <=10:
fax = 7 + 0.45 * pages
If otherwise, it also calculates the fax (differently)
else:
fax = 7 + 0.45 * 10 + 0.10 * (pages - 10)
This returns the calculated fax
return fax