Course Solutions Uncategorized (Solved) : Arrays Middle Item Given Set Data Output Middle Item Even Number Items Output Two Middle I Q37664306 . . . .

(Solved) : Arrays Middle Item Given Set Data Output Middle Item Even Number Items Output Two Middle I Q37664306 . . . .

 

Arrays: Middle item

Given a set of data, output the middle item (if even number ofitems, output the two middle items).

Ex: If the input is 5 7 9 11 13 -1 (a negative indicates end),the output is:

9

Ex: If the input is 5 7 9 11 -1, the output is:

7 9

The maximum number of inputs for any test case will not exceed5. If the input exceeds this maximum, output “Too many inputs”.

Hint: Use an array of size 5. First read the data into an array.Then, based on the number of items, find the middle item(s).

Please provide code in Coral language

Expert

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Id Activity Name Estimated Duration Work Hours Resource Person S Name Job Title Predecesso Q26644284 . . . .(Solved) : Id Activity Name Estimated Duration Work Hours Resource Person S Name Job Title Predecesso Q26644284 . . . .

<p><strong>ID#</strong></p><p><strong>Activity Name</strong></p><p><strong>Estimated Duration (in work hours)</strong></p><p><strong>Resource (person’s name or job title)</strong></p><p><strong>Predecessor (dependency)</strong></p><p>0</p><p><strong>Recreation and Wellness Internet Project</strong></p><p>Tony Prince</p><p>1.0</p><p>Project Management</p><p>85</p><p>Tony Prince</p><p>2.0</p><p>Requirements Definition</p><p>85</p><p>Nancy</p><p>1.0</p><p>3.0</p><p>Web site design</p><p>160</p><p>Kane</p><p>2.0</p><p style="margin-left:22.5pt;">3.1</p><p>Registration for recreational programs</p><p>80</p><p>Nancy</p><p>2.0</p><p style="margin-left:22.5pt;">3.2</p><p>Registration for classes and