If the user enters a negative number or a non-digit number


Write a C++ program that prompts the user to enter a length in feet and inches and outputs the equivalent length in centimeters.

If the user enters a negative number or a non-digit number, throw and handle an appropriate exception and prompt the user to enter another set of numbers.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: If the user enters a negative number or a non-digit number
Reference No:- TGS01246036

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)