Question: Please give in sudo code. Thanks! Write a class to represent measurements in feet and inches. - Declare appropriately-named fields using doubles. - Write one

Please give in sudo code. Thanks!
Write a class to represent measurements in feet and inches. - Declare appropriately-named fields using doubles. - Write one constructor (only) that takes in feet and inches (in that order). Assume non-negative values. - Write accessor methods and one mutator method (with a parameter list similar to the constructor). - Write a toString method that produces results like this: "3 feet 11 inches". (Don't worry about plurals, keep it simple.) Finally, confine inches to [0..12) (and adjust feet accordingly) in the appropriate places. General notes on writing classes: Use the standard naming convention for accessors and mutators, and choose appropriate visibilities throughout. Use 'this' only where needed. Choose appropriate names. Do not write contracts or comments. Solutions will be marked on correctness, ease of reading (can we find things), and simplicity. Overlycomplex code (code that takes unnecessary steps), computations that are excessively long, or unnecessary parameters, return values, method calls, input, or output will be marked down
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
