To use this code, simply download Python 3.3 or later, open a new window, copy and paste this code, and then run the module. Alternatively, download the file below.
print("Welcome to platelet prototype. Let's get started!")
name = input("Patient name: ")
print("What is the length of the wound?")
y = int(input("length: "))
print("What is the width of the wound?")
x = int(input("width: "))
print("What is the depth of the wound?")
z = int(input("depth: "))
print("What unit are the measurements in? Type 5 for inches, 10 for centimeters, and 15 for millimeters")
measurements = int(input("measurements: "))
if measurements ==5:
y=y*25400
x=x*25400
z=z*25400
elif measurements ==10:
y=y*10000
x=x*10000
z=z*10000
elif measurements ==15:
y=y*1000
x=x*1000
z=z*1000
if y==0:
y=2000
if x==0:
x=2000
if z==0:
z=1000
print("In micrometers, your measurements are:", y, "(length)", x, "(width)", z, "(depth)")
print("If one of the measurement fields was left blank, it has been replaced by an estimate of that measurement")
Q=y*x*z
output=Q/2
print("Administer", output, "platelets mixed with fibrin glue to", name, "'s wound.")
print("Welcome to platelet prototype. Let's get started!")
name = input("Patient name: ")
print("What is the length of the wound?")
y = int(input("length: "))
print("What is the width of the wound?")
x = int(input("width: "))
print("What is the depth of the wound?")
z = int(input("depth: "))
print("What unit are the measurements in? Type 5 for inches, 10 for centimeters, and 15 for millimeters")
measurements = int(input("measurements: "))
if measurements ==5:
y=y*25400
x=x*25400
z=z*25400
elif measurements ==10:
y=y*10000
x=x*10000
z=z*10000
elif measurements ==15:
y=y*1000
x=x*1000
z=z*1000
if y==0:
y=2000
if x==0:
x=2000
if z==0:
z=1000
print("In micrometers, your measurements are:", y, "(length)", x, "(width)", z, "(depth)")
print("If one of the measurement fields was left blank, it has been replaced by an estimate of that measurement")
Q=y*x*z
output=Q/2
print("Administer", output, "platelets mixed with fibrin glue to", name, "'s wound.")
making_the_platelet.py | |
File Size: | 1 kb |
File Type: | py |