Question: Declare a struct named PatientData that contains two integer data members named heightInches and weightPounds. Sample output for the given program: Patient data: 63 in,

Declare a struct named PatientData that contains two integer data members named heightInches and weightPounds. Sample output for the given program:

Patient data: 63 in, 115 lbs

#include using namespace std;

/* Your solution goes here */

int main() { PatientData lunaLovegood;

lunaLovegood.heightInches = 63; lunaLovegood.weightPounds = 115;

cout << "Patient data: " << lunaLovegood.heightInches << " in, " << lunaLovegood.weightPounds << " lbs" << endl;

return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!