Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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).

image text in transcribed

contaminado

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions

Question

What strategies might you use to support learning in English?

Answered: 1 week ago

Question

Define induction and what are its objectives ?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago