Question
please help
by python compiler
Suppose the temperature of your coffee is 125 degrees Fahrenheit. You want to drink it at 110 degrees. A chip of ice turns ou
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer :

  • I have written codes for all the problems
  • Keep in mind that - Indentation is very important in Python. So, Be sure while copying the below code.
  • Copy and paste the code without changing anything and compile &run the code.
  • It is error-free and it will give you the exact output that you want !!!

6)

Code:

print("Now The Degree of the coffee is 125 degrees Fahrenheit")
n=int(125)
i=int(1)
while True:
print("Total Ice Cubes Added : ",i," Now the Degree of coffee decreases to ",n-1)
n=n-1;
i=i+1;
if n==110:
break

***********************************************************************************************************************************

7) This series is nothing but Fibanocci series :

Fibanocci series F(n)= F(n-1) + F(n-2) , The answer is addition of last two numbers will give the next number.

Ex : 5, 8, 13, 21, 34

Here you can see -  5 + 8 =13

8 + 13=21

13+21=34 and So On !!!

code:

a=21
b=34
print("From Day 5 to Day 100 - views will increase by the Following Order ")
i=5
while True:
c=a+b;
print("Day : ",i," Views : ",c)
a=b
b=c
if(i==100):
break
i=i+1
  
  
***********************************************************************************************************************************

8)

The below code works perfectly !!!

Just Copy and compile & run the code.

Code:

while True:

user_id=str(input("\nEnter User Id: "))
name=str(input("\nEnter the Name : "))
units=int(input("\nEnter the No.of Units Consumed : "))
total=0
if units>=0 and units<=100 :
total=float(total+ (units*0.250))
  

if units>100 and units<=300:
t1=float(100 *0.250)
units=units-100
total=total+t1

t2=float(units*0.350)
total=total+t2

if units>300:
t1=float(units*0.250)
units=units-100
t2=float(units * 0.350)
units=units-200
t3=float(units * 0.450)

total=float(total+t1+t2+t3)
  
if total >=30 :
c=float(total * 0.15)
total=total+c
if total==0:
total=float(3.5)
  
print("\n\nUser Id : ",user_id)
print("\n\nName : ",name)
print("\n\nChrages : ",float(total))

n=int(input("\n\nDo you want to continue : (1/0) :"))

if n==0 or n>1:
print("\n\nThank You !!!")
break
  
  


  
  
  
  

  
  
  
  
  
  
  
  
  
  

  


  
  
  
  

Add a comment
Know the answer?
Add Answer to:
please help by python compiler Suppose the temperature of your coffee is 125 degrees Fahrenheit. You...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please write comments with the program. Python programming!! Part III - write student data In this...

    Please write comments with the program. Python programming!! Part III - write student data In this part the program should create a .csv file and fill it with generated student information. The program should: Ask the user for a name for the .csv file (use your own name for the exercise) Create the .csv file with columns named - ID, first-name, GPA Based on the information received in part I, generate and fill students information in the CSV file Tell...

  • Need help coding this python problem You have three friends who want to rent a room...

    Need help coding this python problem You have three friends who want to rent a room in your house. The amount they are willing to pay you depends on the length of their stay. Bill will pay you a flat rate of $100 dollars every day. John will pay you $1000 dollars the first day and half as much each subsequent day, meaning on the first day he will pay $1000, the second day he will pay $500, on the...

  • In C++ Write a menu driven C++ program to read a file containing information for a list of Students, process the data, t...

    In C++ Write a menu driven C++ program to read a file containing information for a list of Students, process the data, then present a menu to the user, and at the end print a final report shown below. You may(should) use the structures you developed for the previous assignment to make it easier to complete this assignment, but it is not required. Required Menu Operations are: Read Students’ data from a file to update the list (refer to sample...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

  • Please help me to do my assignment it should be python. Thank you Write a menu-driven...

    Please help me to do my assignment it should be python. Thank you Write a menu-driven program for Food Court. (You need to use functions!) Display the food menu to a user (Just show the 5 options' names and prices - No need to show the Combos or the details!) Ask the user what he/she wants and how many of it. (Check the user inputs) AND Use strip() function to strip your inputs. Keep asking the user until he/she chooses...

  • Python please help! Thanks you Write a code to get an unlimited number of grades from...

    Python please help! Thanks you Write a code to get an unlimited number of grades from the user (the user can press enter to finish the grades input, or use a sentinel, for example-1), and then calculate the GPA of all the grades and displays the GPA To do this you might need some help. Try to follow the following process (and check your progress by printing different values to make sure they are as they supposed to be): 1-...

  • (Python) Suppose you are a bike shop owner who put together bikes free spare parts. Your...

    (Python) Suppose you are a bike shop owner who put together bikes free spare parts. Your customers come to you with parts they've legitimately) found in their pares, from scrap metalhes, ceand they ask you to build them all the bikes you can make with the parts they give you You build the bikes, charge them a big pile of money for the privilege, and keep the leftover parts for yourself It takes the following parts to create one bicycle...

  • Python 3 Question Please keep the code introductory friendly and include comments. Many thanks. Prompt: The...

    Python 3 Question Please keep the code introductory friendly and include comments. Many thanks. Prompt: The owners of the Annan Supermarket would like to have a program that computes the weekly gross pay of their employees. The user will enter an employee’s first name, last name, the hourly rate of pay, and the number of hours worked for the week. In addition, Annan Supermarkets would like the program to compute the employee’s net pay and overtime pay. Overtime hours, any...

  • Please help as it is very important task for me please write in Python code and...

    Please help as it is very important task for me please write in Python code and divide this into function and write comments for it 1. Ask the player’s name and welcome them to the game using their name. 2. Ask the player what is par for this game (number between 3-5 inclusive) 3. Ask the player what the distance to the hole for this game is (whole number between 195 and 250 inclusive) 4. Show the game menu: (I)nstructions...

  • Python Help Please! This is a problem that I have been stuck on.I am only suppose...

    Python Help Please! This is a problem that I have been stuck on.I am only suppose to use the basic python coding principles, including for loops, if statements, elif statements, lists, counters, functions, nested statements, .read, .write, while, local variables or global variables, etc. Thank you! I am using python 3.4.1. ***( The bottom photo is a continuation of the first one)**** Problem statement For this program, you are to design and implement text search engine, similar to the one...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT