Question
Need help solving this computer science assignment using Pycharm please, thank you so much Scenario A Group of physics students are conducting some experiments in
Need help solving this computer science assignment using Pycharm please, thank you so much
Scenario A
Group of physics students are conducting some experiments in a laboratory to find the amount of heat conducted by an iron poker. For such an experiment, the students will place one end of an iron poker in a fire and the other end will be kept out of the fire. As part of the experiment, the students will collect temperature data of both ends of the iron poker. The temperatures will be measured in Fahrenheit, but they will need to provide results of the conducted heat in Celsius. In order to succeed, the students will need a program to convert the temperatures from Fahrenheit to Celsius and calculate the amount of heat conducted .
Problem 1 Write a program that asks an user a temperature value in Fahrenheit and prints the temperature value in Celsius. In order to convert the temperature value, define a function called f ahr_to_celsius that takes in the temperature in Fahrenheit and returns the temperature in Celsius.
Use the following equation, where C is the temperature in Celsius and F is the temperature in Fahrenheit:
C = 5 /9 (F 32)
Problem 2
Now the physics students want a program that calculates the heat conducted during the experiment. To help them you must write a program that asks the user for the following input: the temperature values of the two ends of the iron poker, the one in the fire and the one out of the fire.
thermal conductivity of iron poker (K)
the area of the iron poker (A)
the time one of the end was in the fire (t)
the length of the iron poker (L)
Using the temperature values from both ends of the iron poker you must calculate the temperature difference between them, we will refer to this as T. In your program you must define a function called heat_conducted that takes in all this information (K,A,L,t and T) and returns the amount of heat conducted using equation (2).
Q = (KATt)/ L (2)
Summarizing, your program must do the following steps:
1. Input the required information.
2. The temperature value is given in F. The program should convert the temperature to Celsius. Use the function implemented in problem 1.
3. Calculate the temperature difference between the two ends of the iron poker (T).
4. Calculate the heat conducted by calling the using the heat_conducted function.
5. Print to console the heat conducted.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started