subject

The process of finding the largest value or smallest value in a sequence is commonly used in many computer applications. This assignment involves developing a program that prompts the user to enter a series of 10 integers and then determines and displays the largest and smallest values entered. Your solution must use at least the following variables:

counter - A counter to count how many integers were entered

number - The integer most recently input by the user

smallest - The smallest number entered so far

largest - The largest number entered so far

Write three separate programs for this assignment. Use a while construct in the solution for the first program. Use a for construct in the solution in the second program. use a do-while construct in the solution in the third program.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:40
Consider the following generator matrix: g= (1 0 0 0 1 0 0 0 1 1 1 1 1 0 1 1 1 0) find all the codewords generated by this generator matrix. determine the number of errors that this code will detect. determine the number of errors that this code will correct. prove that a linear code's minimum weight is equivalent to its minimum distance. that is, where c is a linear code, dist(c) = wh(c)
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe and
Answers: 1
question
Computers and Technology, 24.06.2019 13:20
3. ranga ramasesh is the operations manager for a firm that is trying to decide which one of four countries it should research for possible outsourcing providers. the first step is to select a country based on cultural risk factors, which are critical to eventual business success with the provider. ranga has reviewed outsourcing provider directories and found that the four countries in the table that follows have an ample number of providers from which they can choose. to aid in the country selection step, he has enlisted the aid of a cultural expert, john wang, who has provided ratings of the various criteria in the table. the resulting ratings are on a 1 to 10 scale, where 1 is a low risk and 10 is a high risk. john has also determined six criteria weightins: trust, with a weight of 0.3; quality, with 0.2; religious, with 0.1; individualism, with 0.2; time, with 0.1; and uncertainity, with 0.1. using the factor-rating method, which country should ranga select? why? (2 points)
Answers: 3
You know the right answer?
The process of finding the largest value or smallest value in a sequence is commonly used in many co...
Questions
question
Mathematics, 18.01.2021 01:30
question
English, 18.01.2021 01:30
question
Mathematics, 18.01.2021 01:30
question
English, 18.01.2021 01:30
question
Computers and Technology, 18.01.2021 01:30
Questions on the website: 13722363