Use the loop variation given in problem to write a program that inputs values into variables numi and num2, stores their difference in the variable diff, and outputs the result. End the loop when diff becomes zero. Assume that the value of variable diffis 99 before the loop starts.
DO WHILE
```
DO WHILE diff < > 0
INPUT numi, num2
LET diff = numi — num2
LOOP
```
Computer Science & Information Technology
You might also like to view...
________ failure often goes undetected for extended periods of time
Fill in the blank(s) with correct word
Computer Science & Information Technology
Write a program that will record the purchases made at a store. For each purchase, read from the keyboard an item’s name, its price, and the number bought. Compute the cost of the purchase (number bought times price), and write all this data to a text file. Also, display this information and the current total cost on the screen. After all items have been entered, write the total cost to both the screen and the file. Since we want to remember all purchases made, you should append new data to the end of the file.
What will be an ideal response?
Computer Science & Information Technology