## Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the price per pound

Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the price per pound depends upon the quantity ordered according to the table shown below. Partial pounds are not sold. Shipping is \$1.00 per pound, but free for coffee orders over \$150 before tax. The user must enter the number of pounds desired from the keyboard. The program will then display the cost of the coffee, the 7% sales tax, shipping charges (if any) and the total amount due. All four values s

## Write Python code to compute the value of the Boolean expression that checks whether a point with coordinates (5, 5) is inside a circle with center (0,0) and radius 7.

Write Python code to compute the value of the Boolean expression that checks whether a point with coordinates (5, 5) is inside a circle with center (0,0) and radius 7.

## Define a function trophiclevelindex(chla , tn, tp) that takes values for Chorophyll-a (CHLA), Total Nitrogen (TN), and Total Phosphorus (TP) and returns the Trophic Index (TLI3) using the calculation below.

Define a function trophic_level_index(chla , tn, tp) that takes values for Chorophyll-a (CHLA), Total Nitrogen (TN), and Total Phosphorus (TP) and returns the Trophic Index (TLI3) using the calculation below. The TLI3 is calculated as the average of the three transformed values, where each value is transformed as follows: tlc = 2.22 + 2.54 ∗ log10​CHLA tln = −3.61 + 3.01 ∗ log10​TN tlp = 0.218 + 2 .92 ∗ log10​TP ​For example, if CHLA = 10, TN = 100, and TP = 1000, then: tlc = 2.22 + 2.54 ∗ 1 =

## Write a program that replaces words in a sentence. The input begins with word replacement pairs (original and replacement). The next line of input is the sentence where any word on the original list is replaced.

6.19 LAB: Replacement words Write a program that replaces words in a sentence. The input begins with word replacement pairs (original and replacement). The next line of input is the sentence where any word on the original list is replaced. Ex: If the input is: automobile car manufacturer maker children kids The automobile manufacturer recommends car seats for children if the automobile doesn’t already have one. the output is: The car maker recommends car seats for kids if the car doesn’t a

## In this task, we’re going to be simulating an email message. Some of the logic has been filled out for you in the email.py file.

In this task, we’re going to be simulating an email message. Some of the logic has been filled out for you in the email.py file. ● Open the file called email.py. ● Create a class definition for an Email which has four variables: has_been_read, email_contents, is_spam and from_address. ● The constructor should initialise the sender’s email address. ● The constructor should also initialise has_been_read and is_spam to false. ● Create a function in this class called mark_as_read which should change

## Update the program you wrote for Q11 so that it can now zip strings of different lengths.

Update the program you wrote for Q11 so that it can now zip strings of different lengths. The two strings are zipped as before, with the extra characters in the longer of the two strings concatenated to the end of the zipped string. Note: You must use a for… in loop and the range() function. The

## Create a complete python program, that asks the user for the number of eggs in a basket.

Produce a complete python program, that asks the user for the number of eggs in a basket. The program reports the number of dozens of eggs in the basket and the number of eggs left over.