1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mila [183]
3 years ago
8

Declare a class named PatientData that contains two attributes named height_inches and weight_pounds.

Computers and Technology
1 answer:
GrogVix [38]3 years ago
6 0

Answer:

class PatientData:

   def __init__(self, height_inches, weight_pounds):

      self.height_inches = height_inches

      self.weight_pounds = weight_pounds

a_patient = PatientData(75, 125)

print("Patient's height:", a_patient.height_inches)

print("Patient's weight:", a_patient.weight_pounds)

Explanation:

Create a class named PatientData

Inside the class, create a constructor (def __init__), that takes two parameters, height_inches and weight_pounds. This is used to initialize the PatientData objects. Inside the constructor, set the height_inches and weight_pounds

Create PatientData object named a_patient. Note that in order to create an object, you need to specify the height_inches and weight_pounds

Then, you may access these values by typing the object name, ".", and variable name. For example, to access the height_inches, you should write the following:

→ a_patient.height_inches

Then, print the height and weight of the patient

You might be interested in
What education and training is required to be an applications software engineer?
Vitek1552 [10]
Expertise in Computer Science/ Computer Programming Tools. C, C++, Java Visual Basic , Android or iphone. BS Software Engineering
7 0
4 years ago
A _____ is a valuable tool that enables a user to find information on the Web by specifying words or phrases known as keywords,
svetoff [14.1K]

Answer:

Search Engine

Explanation:

A search engine refers to a computer application software that looks through and locates items in a database. These items will correspond to to the phrases or keywords being searched for that has been entered by a user.

On the internet or web, popular search engines are provided by google and yahoo and they are designed to carryout web search when users enter search query as keywords or phrases

8 0
3 years ago
Read 2 more answers
What do you need to know to access a website?
diamong [38]

Answer:HTML, CSS, images, scripts etc

Explanation:

5 0
4 years ago
Read 2 more answers
what could backupdocs.com documents backup pdf program handle at one point if at all backupdocs.com functions documents saving p
bekas [8.4K]
This don’t make sense?? But I think it can handle it aha
6 0
3 years ago
Drivers dealing with strong emotions may take risks they otherwise would not. <br> true false
grigory [225]

This is true because some people may be going through rough times and when they aren't they probably won't feel the same way as they do when they go through tough times.

7 0
3 years ago
Other questions:
  • Which of the following software is cloud-based? OpenOffice Writer Word 2013 Word Online Word Perfect\
    13·2 answers
  • If a ≤m b and b is regular, does that imply that a is a regular language? why or why not?
    6·1 answer
  • The shortest-route technique would best be used to determine the amount of LAN network wiring within a building. determine the p
    12·1 answer
  • Is cloud computing a hardware service used to keep computers working? True or False
    11·1 answer
  • What is the Matlab command to create a vector of the even whole numbers between 29 and 73?
    11·1 answer
  • Which term describes computers (e.g., Windows PC, Mac OS X) with applications that allow a person to perform diverse tasks, from
    5·1 answer
  • Where will the append() function add a new element to a list? A. At the end of the list B. At the beginning of the list C. In th
    10·1 answer
  • In the program below, numA is a _____.
    8·2 answers
  • What program has unique drag and drop support functions?
    13·1 answer
  • Define a SCHEME function, unzip, which takes a list of pairs ((a .b)... (an .bn)) and returns a pair consisting of the two lists
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!