Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need this in c programming assignment is given and also code is given you just have to code the lines where it says TODO

i need this in c programming

assignment is given and also code is given you just have to

code the lines where it says TODO or implement hereimage text in transcribed

image text in transcribed

Exercise 2. (50 points) Finding Minimum and Maximum. In this exercise you will implement a simple C program that finds the minimum and the maximum number from a series of numbers. At the beginning of the program, you will take an integer (n) as an input and run a for loop n times. At each iteration, you will take a floating point number (f) as an input. At the end of the program execution, you will print out the minimum (min) and the maximum (max) number on the standard output screen The block below shows a sample execution of the program where user inputs 10 numbers from 5 to -4 (they can be be arbitrary). The final output minimum and maximum values are displayed at the end. $ ./minmax.c 10 -this is the loop iteration number 4 3 2 -2 -3 -4 The minimum value is: -4.00000 The maximum value is: 5.00000 untitled minmax.c x my_log.c include #include 2 3 4 int main) int n; 5 6 scanf("%d", &n); 8 9 10 float f; float min, max; //TODO 12 14 16 for (int i-0; i<>

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

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions