1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
hram777 [196]
3 years ago
6

Write a function that will find the cost to send an international fax. The service charge is $7.00. It costs $0.45 per page for

the first ten pages and $0.10 for each additional page. Take as parameter the number of pages to be faxed, and calculate the total amount due. The total amount due is returned to the main program.
Computers and Technology
1 answer:
LenaWriter [7]3 years ago
3 0

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

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

You might be interested in
Match each example to the type of component, either Input, Process, or Output.
statuscvo [17]

Answer:

Find answers below.

Explanation:

1. Input: it takes in data in its raw format or an item that receives data and transfers them to the process.

  • <em>Employees in a management team. </em>
  • <em>Program code for a software application. </em>
  • <em>Flour for making bread.</em>
  • <em>A wrench. </em>

2. Process: it converts the data from an input to a usable format. Also, it conveys the processed data (informations) to the output.

  • <em>Fermentation. </em>
  • <em>Harvesting a crop. </em>
  • <em>Dryer spinning at top speed.</em>

3. Output: it is the result produced by a process i.e the finished product.

  • <em>Newly painted structure. </em>
  • <em>Freshly mowed lawn. </em>
  • <em>Hot muffins. </em>
5 0
3 years ago
What is the main function of processing unit​
sattari [20]

Answer:

CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer.

Explanation:

3 0
3 years ago
Read 2 more answers
What is data intergrity​
Nataly [62]

Answer:

The reliability and trustworthiness of data throughout its lifecycle.

Explanation:

In its broadest use, data integrity refers to the accuracy and consistency of data stored in a database, data warehouse, data mart or other construct.

7 0
3 years ago
Of the following online activities, identify the TWO that are most likely to be affected by bandwidth quality
Kobotan [32]

Answer:

Watching online movies

Explanation:

4 0
3 years ago
What is the purpose of the ISOWEEKNUM function? determines how many workdays are in a certain week determines how many workdays
ivanzaharov [21]

Answer:

It's D

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • You are able to change the formatting of a table after it is inserted into a placeholder. True or false
    9·2 answers
  • You are entering command that operates on a file. The path to the file is lengthy and confusing and you are afraid that you will
    12·1 answer
  • What is “centrifugal bumble puppy”? why is it important for games to require a complicated apparatus?
    10·2 answers
  • Using a caesar cypher with an offset of three characters (a -&gt; d, b -&gt;e, ...., z -&gt; c), what would be the correct cyphe
    6·1 answer
  • 3. When you right-click a linked spreadsheet object, what commands do you choose to activate the Excel features?
    7·2 answers
  • Imagine that you have access to a class named MyCircle that has void setRadius(double r) and double getRadius() methods. Write a
    14·1 answer
  • How do you merge on excel?​
    5·1 answer
  • Give your own example of a nested conditional that can be modified to become a single conditional, and show the equivalent singl
    12·1 answer
  • ....is an act of introducing an invention into market on business basis for profit​
    12·1 answer
  • When writing a function or a formula in a spreadsheet,what is the first u should do​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!