@zenith chasm has a question:
I'm doing a training course and I admit I'm a bit off-putting, I find it a totally stupid exercise. Concerning Swing
"1. Write an application that calculates the sum of the first N integers.
The variable N will be entered by the user using a "readInteger()" function provided to you and used as follows:
N=readInteger();```
Calling this function will produce the following display:
After entering the value 6 (for example) and after validating the dialog box above, the variable N is set to 6.
You will write the three solutions to this exercise using the three iterative structures: WHILE, REPEAT, and FOR. ๏ท The result will be displayed by calling the displayDialogBox(...) procedure
also provided, which will be used as follows:
displayDialogBox("The result with while() {...} is: " + result,
"Result with While");
... to produce the following display:
The solution will be provided with the SumFirstIntegers project"