Question: Visual Basics: 1 ) Write an if/else statement that compares the double variable pH with 7.0 and makes the following assignments to the bool variables
Visual Basics: 1 ) Write an if/else statement that compares the double variable pH with 7.0 and makes the following assignments to the bool variables neutral, base, and acid:
false, false, true if pH is less than 7
false, true, false if pH is greater than 7
true, false, false if pH is equal to 7
2) Visual Basics: Write an if/else statement that adds 1 to the variable minors if the variable age is less than 18, adds 1 to the variable adults if age is 18 through 64, and adds 1 to the variable seniors if age is 65 or older.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
