Different list sizes and combinations of integers

Assignment Help Basic Computer Science
Reference no: EM132184271

FOR LOOPS QUESTION

A 2 dimensional list of integers will be used in this program (a list of lists). Each sublist is a "row". For example:

integerList = [[4, 7, 9], [3, 6, 7], [14, 13, 12], [6, 12, 222]]

A function that takes in a 2 dimensional list as shown as a parameter and returns True if all the rows add up to an even number, and returns False otherwise (if any of the rows add to an odd number). The function should work for sublists of any length (and of variable lengths -- for instance, a list such as [[1, 2], [5, 6, 7]] would be a valid input.  The program should work for a list with any number of sublists. Be sure to test the program with different list sizes and combinations of integers. Show test cases by writing a function that shows the results for several cases. This test function should run when your program starts up. Show the user what the test case is and the result.  The program must not require any user input.

Reference no: EM132184271

Should ibm bet its business on that assumption

Do you agree with IBM researchers' assumption that IT will remain "hard to use, expensive, and labor-intensive, with customers continuing to need help solving business probl

Design a barrel shifter built from static gates

Design a barrel shifter built from static gates and clocked inverters. Draw a schematic for a cell and for a tiling of cells similar to the drawings for the pass-transistor

Determine the volume of oxygen

Determine the volume of oxygen if the pressure is 50.5 kilopascals. d. Study your results for parts b and c. If the pressure is halved, make a conjecture about the effect on

Determining the types of arduino shields

Go on the internet, eg. the Amazon site, or the Digikey or Newark distributor sites, and read up on three types of Arduino shields used with the Arduino Uno. Explain what ty

Assistance in creating an entity relationship design

Assistance in creating an entity relationship design that captures/tracks information of researchers within all universities in a given state. Information of interest incl

Derivative of the signal whose samples are given

Generate 151 samples of the signal x[n] = 10 cos(0.2πn), 0 ≤ n ≤ 150 and process them through the differentiator designed in (a) to obtain y[n]. Provide stem plots of both x

Calculate each student''s final average based on homework

Calculate each student's final average based on his or her homework score, quiz scores, and final exam. Homework counts for 20 percent of the student's final grade. The firs

Windows application that allows the user to explore knapsack

The user should be able to change the capacity of the knapsack, the sizes of the items, and the values of the items. The user should also create a list of item names that is

Reviews

Write a Review

 
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd