Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. To find the maximum and minimum value in a given set of values: (1 Point) use a for loop and compare the next value

image text in transcribed
image text in transcribed
1. To find the maximum and minimum value in a given set of values: (1 Point) use a for loop and compare the next value with the values saved in max and min. Save all the values and use comparison statements to find the maximum and minimum values. Save the maximum value in max and minimum value in min variables, use a for loop and compare the next value with the values saved in max and min. Save the first value in max and min variables, use a for loop and compare the next value with the values saved in max and min 2. If the number of times to repeat a task is known what is the best type of loops to use? 15 (1 Point) While 1- for do while repeat 3. If the number of times to repeat a task is unknown what is the best types of loops to use? (1 Point) repeat While for do while 4. To find the sum of a given set of values: 13 (1 Point) values must be integers Only for loops must be used ting sum must be used with if statements sum must start from zero. 5. To find the sum of a given set of values: (1 Point) value + = sum; should be used inside the loop. sum = sum + value: should be outside the loop then used inside the loop. sum = value + value: should be outside the loop then used inside the loop. sum = sum + value; should be used inside the loop

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

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions

Question

b. Where did they come from?

Answered: 1 week ago

Question

=+ a. a family deciding whether to buy a new car

Answered: 1 week ago

Question

=+10. How are inflation and unemployment related in the short run?

Answered: 1 week ago