Write a visual logic program which accepts a series


PROGRAM DESCRIPTION: Write a Visual Logic program which accepts a series of numbers, until the first negative value is entered. The maximum number of non-negative input values is 250, although the user could enter fewer values than 250. Each non-negative input is to be placed into the next available element of an array 250 elements long. Assume that the user will enter at least two non-negative input values. When the terminating negative number is entered, output the amount by each non-negative input is below the maximum value entered.

Here are some data sets, which your program must be capable of processing.

Example 1
Entered numbers: 5, 9, 25, 44, 9, 0, 35, 2, 7, 0, 7, 44, 19, -8
Output: 39, 35, 19, 0, 35, 44, 9, 42, 37, 44, 37, 0, 25.

Example 2
Entered numbers: 4, 21, -6
Output: 17 and 0.

Example 3
Entered numbers: 22, 6, 45, 69, 21, 44, 21, 56, 356, 77, 165, 34, 56, 90, 354, 667, -6
Output: 645, 661, 622, 598, 646, 623, 646, 611, 311, 590, 502, 633, 611, 577, 313, 0.

Request for Solution File

Ask an Expert for Answer!!
Visual Basic Programming: Write a visual logic program which accepts a series
Reference No:- TGS0122473

Expected delivery within 24 Hours