Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN PYTHON Develop a Python program that contains the following functions: - create_matrix (r, c) - matrix_oddnumber_count (matrix, r, c) The functions must do the

IN PYTHON

Develop a Python program that contains the following functions: - create_matrix (r, c) - matrix_oddnumber_count (matrix, r, c)
The functions must do the following: - create_matrix (r, c) Receive two integers, the number of lines and the number of columns. The function must capture the integers to fill in the matrix (r * c numbers) and return the newly created matrix. - matrix_oddnumber_count (matrix, r, c) Receive the matrix created in crea_matriz (r, c), scroll through it and add the number of odd numbers in the matrix. Returns an integer with the number of odd numbers in the matrix.

odd numbers : 3, 5, 7, 9

EXAMPLE:

3 2 3 1 3 -8 7 5

OUTPUT

5

EXAMPLE2:

4 3 2 9 3 3 7 6 5 -9 -8 6 10 88

output

6

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions