labAssignment4a - cin >> value //...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 // This code tells the user if the number entered is in the range. #include <iostream> int main() { double value cout << "Lab Assignment 4\t CSE 1020.301" << endl << "Kasey Scott \t" << endl // Promt user to enter a number. cout << "\nPlease enter a decimal number between the range of 100.5 to 199.5: "
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cin &gt;&gt; value // Introduce If statement to exstablish the range. if (value &lt; 100.5 || value &gt; 199.5) cout &lt;&lt; endl &lt;&lt; &quot;The number &quot; &lt;&lt; value &lt;&lt; &quot; is not in the range.&quot; &lt;&lt; endl else cout &lt;&lt; endl &lt;&lt; &quot;Thank you &quot; &lt;&lt; value &lt;&lt; &quot; is in the range.&quot; &lt;&lt; endl return 0 }...
View Full Document

Ask a homework question - tutors are online