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, 22.06.2019 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 23.06.2019 00:40
Consider the following statements: struct nametype{string first; string last; }; struct coursetype{string name; int callnum; int credits; char grade; }; struct studenttype{nametype name; double gpa; coursetype course; }; studenttype student; studenttype classlist[100]; coursetype course; nametype name; mark the following statements as valid or invalid. if a statement is invalid, explain why.a.) student.course.callnum = "csc230"; b.) cin > > student.name; c.) classlist[0] = name; d.) classlist[1].gpa = 3.45; e.) name = classlist[15].name; f.) student.name = name; g.) cout < < classlist[10] < < endl; h.) for (int j = 0; j < 100; j++)classlist[j].name = name; i.) classlist.course.credits = 3; j.) course = studenttype.course;
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Which of the following processes applications across multiple computing devices? a. functional application b. distributed system c. workgroup information silo d. information silo
Answers: 3
question
Computers and Technology, 25.06.2019 01:00
Holly created a professional development plan to explore how she could advance from her entry-level position to the next step in her career. she has identified her current skills and the skills needed for the job she wants. what should she do now? a) ask a colleague for advice about work-life balance b) identify her areas for improvement c) plan a vacation before she begins her new job d) wait until a position opens before continuing her plan
Answers: 1
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
Social Studies, 07.10.2019 10:20
question
Computers and Technology, 07.10.2019 10:20
question
Chemistry, 07.10.2019 10:20
Questions on the website: 13722363