Please code in C language

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Please code in C language

Post by answerhappygod »

Please code in C language
Please Code In C Language 1
Please Code In C Language 1 (71.15 KiB) Viewed 66 times
(a) Declare a one-dimensional integer array DATA to store 1000 elements. Assume that you have initialized this array DATA. Draw a flow-chart that captures the logic for finding the following quantities: (i) minimum value in this array, (ii) number of minimum values, and (iii) indices where they occur in your array. Note that the minimum value may occur more than once. (8 Marks) (b) Write a C function MinData (..) that implements the above described flow-chart in Q2(a). Your MinData () must also determine the number of minimum values in DATA. Print the following quantities with meaningful messages: (i) minimum value in this array, (ii) number of minimum values, and (iii) indices where they occur in your array. (10 Marks) (c) What is your estimate of the number of iterations (time) taken to run your function MinData (..)? (2 Marks)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply