Question: using C programing Create the following two structures: struct DistanceMetric struct Distance Imperial The Distance Imperial struct will contain two member variables: int feet int

using C programing
Create the following two structures: struct DistanceMetric struct Distance Imperial The Distance Imperial struct will contain two member variables: int feet int inch The DistanceMetric struct will contain two member variables: . int meter int centimeter In main(), create a variable of type struct Distance Imperial. Read in user input for both the feet and inch member variables to get a user's height. Then convert the user's height into meters and centimeters and print out the result. Conversions are provided below: Feet to Meters: Feet * 0.3048 Inches to Meters: Inch 0.0254 Meters to Centimeters: Meter * 100 Example _Height in Imperial Enter Feet: 5 Enter Inches: 5 _Height in Metric_ Meters: 1 Centimeters: 65 Rubrics 3 point(s): Correct implementation and use of both structs. 1 point(s): Correct implementation of scanf. 3 point(s): Correct conversion from Imperial to Metric. 1 point(s): Correct output. 2 point(s): No syntax errors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
