c# function to format measurement string
$30-250 USD
Paid on delivery
write a function to standardize format of a measurement string in feet and inches.
- result should be in this format: [feet]'[inches] x [feet]" x [inches]"
example:
L x W
3'6" x 5'6" = 3'6" x 5'6"
5' x 8' = 5'0" x 8'0"
5'4" x 8' = 5'4" x 8'0"
5' x 8'5" = 5'0" x 8'5"
9" x 6" = 0'9" x 0'6"
*9" x 6" round= *0'9" x 0'6" round
L x W x H
5'4" x 8' x 5' = 5'4" x 8'0" x 5'0"
5'4" x 8' x 5'2" = 5'4" x 8'0" x 5'2"
string teststring = "abcdefg 5'4" x 8' x 5'2" test ";
// expected output: abcdefg 5'4" x 8'0" x 5'2" test
string FormatFeetInches(string input);
result should be in this format: [feet]'[inches] x [feet]" x [inches]"
should be:
result should be in this format: [feet]'[inches] x [feet]'[inches]"
Project ID: #1534894