The first function you will write should be called


Question: The first function you will write should be called ‘sumNumbers'. Your function should take three input variables, each one an integer between 0 and 100. The function should return one output: an integer. The output integer shall be the sum of three lists of numbers. Each list will be defined by one of the input variables as follows. If n is the value of an input variable, then the list corresponding to that input variable shall start with n and contain n elements. For example, if the first input variable contains 3, then the corresponding list shall be [3, 4, 5]; 2 yields [2, 3]; and 4 yields [4, 5, 6, 7]. The first function should build all three lists, corresponding to the three input variables, and the return the sum of all the elements of all three lists.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: The first function you will write should be called
Reference No:- TGS02534236

Now Priced at $10 (50% Discount)

Recommended (94%)

Rated (4.6/5)