Conditionals 4 - case/switch, deMorgan
pseudocode |
java
Classwork
In a text document:
For each, think about input,
including variable names and types; prompt the user for input.
- The bank requires that you keep at least $500 in your account
and use electronic statements, or you must pay a $5 monthly fee.
- Write a single if to check if there is no fee, and
if so print a message saying so
- Write a single if to check the
opposite, and if so show their new balance with the fee deducted.
- The safe range for blood sugar is between 55 and 90.
- Write a single if to check if the patient is safe, and if so
print a message
- Write a single if to check the
opposite, and print if the patient is in danger.
3. Get the user's meal choice (by number) and tell them their price. Menu options
are:
- Burger with fries $5
- Spaghetti with salad $7
- Meatball sub $6
- Vegetable casserole $4.