Ask the user to input 5 integer numbers and store it in an array

SoccerBoss
Category:
Other
Price: $5 USD

Question description

Sample Output :

Enter  10 numbers:  1, 3,12,15, 2, 8, 11, 28, 26, 18

Output :

There are 6 even numbers : 12, 8,28, 26, and 16

The sum of even numbers: _______

There are  and 4 odd numbers : 1, 3,15, and 11

The sum of odd numbers: _____

and

1.  Create a program that will ask the user to input 5 integer numbers and store it in an array. The program should allow to search for an element.

Sample Interface :

Enter 5 numbers: 12, 6, 18, 9, 3

__________________________

Elements of array :  12, 6, 18, 9, 3

Enter element to be search :  3

The element 3 is found at index  4

Enter element to be searched : 10

Element is not found



Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Cornell University
PREMIUM TUTOR
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1820 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors