Question: In this program you need to find the total sum of the numbers which are even in the list. To implement this question, firstly get
In this program you need to find the total sum of the numbers which are even in the list. To implement this question, firstly get 'n from the usern is the total number of the items in the list. After getting n value from the user, you can generate 2 random numbers for the starting and ending point of the range of the numbers. Finally, write a function that returns the total sum of the values that are even. The prototype of the function is findTotalsumistat, end in You can see the example in the sample output. Do not forget that numbers must be random Sample Output: traer the number of items this number is a user input which shows the total number of the elements of the list Random numbers start 15 martinpoint 150 sending point After getting and generating the limits start and end call the function in totalsumsat end This function generates between start and end points. You can see random numbers between 15 and 1 SINUMBERS ARE EXAMPLE YOUR NUMBERS MUST BE RANDOM NUMBERSI) LE+20120, 15.60, 35 Generate numbers, then show of them on the comide Total am - 200 show the total sum of the wes which are even
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
