Professional Documents
Culture Documents
2. Write a C++ program that takes and validates positive integer number between 0 and
99999 (inclusive) to notify the user with the message “One Single Digit” if the number
has only one digit, “Two Big Digits” if the number has two digits, “Three Big Digits”, if
the number has three digits, or “More and more digits”, if the number has more than
three digits.
3. Write a C++ program (Use for loop statement) that produces a table
showing the temperature equivalents in degrees Fahrenheit and degrees in
Celsius. Let the user enter the starting, ending, and step values. Start value
not less than 50 and not more than 200. Use the formula:
celsTemp = 5.0/9.0 (fahrenTemp – 32.00)
For example: start value=50, end value=100, and step value=10, the
table should look like the following.
================================
Fahrenheit Celsius
50 10
60 16
….. …..
================================