While loop conditions

Write the while loop conditions for the following statements

1. Sam has 2000 in bank. He is getting 5% interest a year. He wants to take the money out when he has 3000.

The loop should stop if ___________________________

The while loop should be _______________________________________________

2. Elida has 6789.34 in bank and is getting 4% interest. She wants to take the money out when it doubles.

The loop should stop if ___________________________

The while loop should be _______________________________________________

3. Diana has money in the bank. She wants to pull it out once she has $300 or 10 years have gone by.

The loop should stop if ___________________________

The while loop should be _______________________________________________

4. Harshal is entering names into the computer. He wants to stop entering names when he types the word stop into the computer

The loop should stop if ___________________________

The while loop should be _______________________________________________

5. Crystal is entering a group of numbers into the computer. She wants to stop when she enters a -1.

The loop should stop if ___________________________

The while loop should be _______________________________________________

6. Tanja has rabbits on her farm. She wants to sell the farm if she has 5000 rabbits and 7 years have gone by.

The loop should stop if ___________________________

The while loop should be _______________________________________________