Question: Using an approach similar to that for Exercise 3.21, find the two largest values of the 10 values entered. Exercise 3.21 The process of finding
Using an approach similar to that for Exercise 3.21, find the two largest values of the 10 values entered.
Exercise 3.21
The process of finding the largest value is used frequently in computer applications. For example, a program that determines the winner of a sales contest would input the number of units sold by each salesperson. The salesperson who sells the most units wins the contest. Write a pseudocode program, then a Java application that inputs a series of 10 integers and determines and prints the largest integer.
Step by Step Solution
3.41 Rating (151 Votes )
There are 3 Steps involved in it
We can approach this by using two variables max1 and max2 which record the largest and second larges... View full answer
Get step-by-step solutions from verified subject matter experts
