Question
A certain recently discovered alien nanomaterial manifests itself in different phases depending on the temperature and pressure conditions in which it is found. As shown
A certain recently discovered alien nanomaterial manifests itself in different phases depending on the temperature and pressure conditions in which it is found. As shown in the figure, the phase the material is in also depends on its purity. The goal is to develop an algorithm (and then implement it in Python), which receives from the user the temperature, pressure and if the material is "pure" or "contaminated". The algorithm must process this information and decide in which zone the material is located. For temperatures and pressures outside the ranges specified here, there is not enough information to determine the behavior of the material and the user must be informed of this. For combinations that coincide in the middle of 2 or more zones, the output of the algorithm must specify it, for example: between zone 1 and zone 2.
d) [10%] Implement a function in Python for the tainted case. The function must be called with the temperature and pressure (2 parameters) and must return (return) the phase in which the material is. Present 4 desktop tests that return different results and their respective screenshots (prtscrns).
(e) [10%] Make up a diagram for a third highly contaminated case (it must be made up of 3 zones). Implement a function in Python for that case and present 4 desktop tests that return different results and their respective screenshots (prtscrns). Be sure to include in your report the drawing/diagram of your invented case (it doesn't have to be in Python, it can be by hand or in any other tool, later in the semester we will see how to generate graphs in Python).
(f) [10%] Save the functions developed in (c), (d) and (e) in a module. Write a Python program that prompts the user for temperature, pressure, and state (clean or contaminated) on the screen. The program must invoke the previously developed functions and display the phase in which the material is located on the screen. Present 4 desktop tests that return different results and their respective screenshots (prtscrns).
contaminadoStep 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