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.

Answers

Answer 1

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


Related Questions

Is there anyone that knows how to work in Microsoft Access and someone that could help me on my test at 11 30am?​

Answers

Answer:

ok i help you i like it 11:30 ok

Create a 100-word internet company​

Answers

Answer:

The World Wide Web.

Explanation:

The World Wide Web was created at CERN in Switzerland in 1990. Today, people can pay money to access the Internet from internet service providers.

Hope this helps!

xoxo,

cafeology

Your organization has hired a penetration tester to validate the security of your environment. The penetration tester needs to document which ports are being listened on for the various servers. Which type of tool will the penetration tester most likely use

Answers

Answer:

Port scanner

Explanation:

The penetration tester would most likely use a port scanner. A port scanner can be explained to be an application that is made to check a server or host for ports that are open. This application can also be used by administrators to check their security networks so as to know those network services that are running on a host and also to know existing vulnerabilities. Attackers also use this to exploit victims.

Ismael is examining a report in Access. He needs to access a view that will be used to examine and change the structure of the report, including the ability to add or modify controls. Which view should he choose?

Design
Layout
Print Preview
Report

Answers

Answer:

The answer is "Design"

Explanation:

Reports offer an approach to view, design, and sum up the data in your Microsoft Access information base. For instance, you can make a basic report of telephone numbers for every one of your contacts, or a rundown report on the absolute deals across various locales and You can make a wide range of reports in Access, going from the easy to the complex. Start by contemplating your report's record source.

Regardless of whether your report is a straightforward posting of records or a gathered rundown of deals by area, you should initially figure out which fields contain the information you need to find in your report, and in which tables or inquiries they reside.

Outline three requirements for linear programming

Answers

linear programming has three major requirements: decision variables, objective function, and constraints.

We have constructed a Player Class for you. Add the following: public static variable: int totalPlayers Static variable should be an int. The value should be incremented whenever a new Player is constructed. public static variable: int maxPlayers Static variable should be an int. Set its value to 10. public static method: gameFull() The gameFull() static method should return a boolean of whether the total players is greater than or equal to the maxPlayers static variable.

Answers

Answer:

public class Player {

   public static int totalPlayers = 0;

   public static int maxPlayers = 10;  

   public static boolean gameFull() {

       return totalPlayers >= maxPlayers;

   }

   public Player() {         // Player class constructor

       totalPlayers++;

   }

}

Explanation:

The Java program defines the class Player which has two public class variables and a public method. The class constructor increases the totalPlayer variable by one for every player object created.

Which sentence is an effective example of language for the following scenario?
Aaron's coworker Bryce has not been working on the team project their boss assigned them.

Answers

Answer:

"I feel like this assignment isn't a priority to you"

Explanation:

Given that I-language is a term used in the depicting or forming individuals' perception or point of view of a given situation or statement instead of the actual statement. It is fully known as Internal language.

Hence, in this case, the term "Aaron's coworker Bryce has not been working on the team project their boss assigned them, " can be translated into "I feel like this assignment isn't a priority to you" in I-Language.

Climatologist use weather balloons, stethoscopes, and satellites true or false

Answers

Answer:

False.

Explanation:

A stethoscope is a medical instrument which is used for listening to the work of the heart and lungs.  It consists of a microphone that rests on the patient's chest, and rubber tubes that bring the sound to the earphones. An ordinary stethoscope does not have any moving or electrical parts, as it only mechanically conducts sound from the patient's chest to the doctor's ear.   One of the simplest examinations that doctors perform today is listening to the lungs and heart with a stethoscope. With the help of this instrument, noises are heard during the work of the lungs and heart.

What are the two types of programming languages?

Answers

Answer:

High level language.

Low level language

Explanation:

please give brainliest

Other Questions
what was the first part of American society that was attacked because of the red scare 2?a. the movie industryb. the automobile industryc. the steel workers association The first column contains five pairs of relationships. Determine if each pair formsa proportional relationship. Mark *Proportional" or "Not Proportional" for eachrelationship in the table on your answer document. What defines a Shakespearean play as a comedy? (Use the choices below)It has a happy ending, often involving in a marriage.The plot is universal, meaning anyone can relate to it.It has five acts, with the third act having the highest point of tension.The antagonist turns out to be "the good guy" say at the end. Warren Company plans to depreciate a new building using the double declining-balance depreciation method. The building cost is $820,000. The estimated residual value of the building is $52,000 and it has an expected useful life of 25 years. Assuming the first year's depreciation expense was recorded properly, what would be the amount of depreciation expense for the second year NEED HELP!!!!!!!!!!!!! 75 is what percent of 100? -3x+2y=-17,-6x+3y=-30 using elimination I need help on this question if the Chemical Reaction bellow started out with a total mass of 45 grams, what would be the total mass of the products?2Na + 2H2O ---> 2 NA OH + H2 11. the girl is wearing a _____ (1 point) The legislation that effectively prohibited banks from branching across state lines and forced all national banks to conform to the branching regulations in the state in which they reside is the A. 3(x+2) = 18T + 2 = 61) How can we get Equation B from Equation A? Listen to the following dialogue and then answer the question.What are Brigitte and Gnther doing?. 0:00 / 0:13shoppingeatingreading the newspaperlooking at coupons School-age children should have opportunities for individual conversation and attention from caregivers.TrueO False Describe the relationship between DNA,chromoSomes, and genes, on edge2020 help please Minerals from water pass through the mold and over time the minerals fill that mold and it then becomes a cast in the same shape of the body of the animal that died? True False Four less than the product of 2 and a number is the same as negative eightteen. Find the number Jayson can make 4/5 of a 5 layers cake in 15 minutes. At this rate, how many cakes can Jayson make in 1 hour? You are given two algebraic equations, y = 3x, and 2y = x + 20. Solve for x and y. Which of the following ordered pairs corresponds to an arrow on a mapping diagram that starts at 4 and ends at 1?O (1,1)O (1.4)0 (4,1)O (4,4)