How can the program in problem be modified to output the subtotal after each value is added instead of just the final result? Include messages in the OUTPUT statements to distinguish between the subtotal and the grand total. Check the program to insure that it works correctly.

Two changes (shown in bold below) are needed:
• Add a subtotal OUTPUT statement immediately below the accumulation statement
• Modify the final OUTPUT statement to include a "grand total" message.

![15173|449x339](upload://pBoI1ziwFDNdrhH4jeFdh05cTRQ.jpeg)

Computer Science & Information Technology

You might also like to view...

You can preview a motion path on a slide by clicking the Path button

Indicate whether the statement is true or false

Computer Science & Information Technology

____ is work that is not protected by copyright law and is free to use and copy.

A. Public domain B. Internet domain C. WWW domain D. Free domain

Computer Science & Information Technology