The process of finding the largest value ie the maximum of


Question: The process of finding the largest value (i.e., the maximum of a group of values) 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 and then a JavaScript program that inputs a series of 10 single-digit numbers as characters, determines the largest of the numbers and outputs XHTML text that displays the largest number. Your program should use three variables as follows:

a) counter: A counter to count to 10 (i.e., to keep track of how many numbers have been input and to determine when all 10 numbers have been processed);

b) number: The current digit input to the program;

c) largest: The largest number found so far.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: The process of finding the largest value ie the maximum of
Reference No:- TGS02493842

Now Priced at $15 (50% Discount)

Recommended (90%)

Rated (4.3/5)