Visual Basics: 1) Given that the variables x and y have already been declared an
ID: 3805283 • Letter: V
Question
Visual Basics: 1) Given that the variables x and y have already been declared and assigned values, write an expression that evaluates to true if x is positive (including zero) and y is negative.
2) Visual Basics: Given that the variables x and y have already been declared and assigned values, write an expression that evaluates to true if x is positive (including zero) or y is negative.
3) Visual Basic: Given two variables , isEmpty of type boolean, indicating whether a class roster is empty or not, and numberOfCredits of type int, containing the number of credits for a class, write an expression that evaluates to true if the class roster is empty or the class is exactly three credits.
4) Visual Basic: Given the variables temperature and humidity, write an expression that evaluates to true if and only if the temperature is greater than 90 and the humidity is less than 10.
Giving 5 stars if all right. thanks
Explanation / Answer
1) Given that the variables x and y have already been declared and assigned values, write an expression that evaluates to true if x is positive (including zero) and y is negative. solution : x >= 0 And y < 0 2) Visual Basics: Given that the variables x and y have already been declared and assigned values, write an expression that evaluates to true if x is positive (including zero) or y is negative. solution : x >= 0 Or y < 0 3) Visual Basic: Given two variables , isEmpty of type boolean, indicating whether a class roster is empty or not, and numberOfCredits of type int, containing the number of credits for a class, write an expression that evaluates to true if the class roster is empty or the class is exactly three credits. solution : isEmpty = True Or numberOfCredits = 3 4) Visual Basic: Given the variables temperature and humidity, write an expression that evaluates to true if and only if the temperature is greater than 90 and the humidity is less than 10. solution : temperature > 90 And humidity < 10Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.