- 412080 2661056 Qxy Jump To Level 1 Given Integer Variable Tempindegrees Is 48 Degrees Fahrenheit Or Less Output To 1 (29.46 KiB) Viewed 36 times
412080 2661056.qxy? Jump to level 1 Given integer variable tempinDegrees is: • 48 degrees Fahrenheit or less, output "To
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
412080 2661056.qxy? Jump to level 1 Given integer variable tempinDegrees is: • 48 degrees Fahrenheit or less, output "To
412080 2661056.qxy? Jump to level 1 Given integer variable tempinDegrees is: • 48 degrees Fahrenheit or less, output "Too cold". • more than 48 degrees Fahrenheit and 86 degrees Fahrenheit or less, output "Acceptable". • more than 86 degrees Fahrenheit, output "Too hot". End with a newline. Ex: If input is 47, then output is: Too cold 6 7 8 9 10 11 12 13 14 15 16 17 18. 19 20 } Check cin>> tempInDegrees; if (tempInDegrees < 48 ){ cout << "Too cold" << endl; } else if (tempInDegrees - 86){ tempInDegrees 86; cout << "Acceptable" << endl; } else if (tempInDegrees > 86) { cout << "Too hot" << endl; } return 0; Next level 2 2 3