Declare a class named PatientData that contains two attributes named height_inches and weight_pounds. Sample output for the given program with inputs: 63 115 Patient data (before): 0 in, e lbs Patient data (after): 63 in, 115 lbs 247772.2002516.4A3zay? 2 * Your solution goes here 3 4 patient - PatientData() 5 print('Patient data (before):', end- ) 6 print (patient.height_inches, 'in,', end= ) 7 print(patient.weight_pounds, 'lbs') 8. 9. 10 patient.height_inches = int(input ()) 11 patient.weight_pounds = int(input ()) 12 13 print('Patient data (after):', end=' ') 14 print(patient.height_inches, 'in,', end-') 15 print(patient.weight_pounds, lbs')
Declare a class named PatientData that contains two attributes named height_inches and weight_pounds. Sample output for the given program with inputs: 63 115 Patient data (before): 0 in, e lbs Patient data (after): 63 in, 115 lbs 247772.2002516.4A3zay? 2 * Your solution goes here 3 4 patient - PatientData() 5 print('Patient data (before):', end- ) 6 print (patient.height_inches, 'in,', end= ) 7 print(patient.weight_pounds, 'lbs') 8. 9. 10 patient.height_inches = int(input ()) 11 patient.weight_pounds = int(input ()) 12 13 print('Patient data (after):', end=' ') 14 print(patient.height_inches, 'in,', end-') 15 print(patient.weight_pounds, lbs')
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 20PE
Related questions
Question

Transcribed Image Text:Declare a class named PatientData that contains two attributes named height_inches and weight_pounds.
Sample output for the given program with inputs: 63 115
Patient data (before): 0 in, e lbs
Patient data (after): 63 in, 115 lbs
247772.2002516. qx3zay7
1
2 * Your solution goes here "*
1 test
passed
3
4 patient = PatientData()
5 print('Patient data (before):', end= )
6 print (patient.height_inches, 'in,', end=' ')
7 print (patient.weight_pounds, 'lbs')
All tests
passed
8
9
10 patient.height_inches = int(input ())
11 patient.weight_pounds = int(input ())
12
13 print('Patient data (after):', end=' ')
14 print(patient.height_inches, 'in,', end='')
15 print(patient.weight_pounds, 'lbs')
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT