一個關於JAVA程式的問題???

The process of finding the largest value(i.e., the maximum

of a group 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 Java application that inputs a

series of 10 integers and determines and prints the largest integer.

Your Program should use at least the following three variables:

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 integer most recently input by the user.

c)largest: The largest number found so far.

小弟有翻譯出這個題目~但是看不懂他的意思不清楚問題是什麼??

不知哪位大大可以說出他再做什麼??和目的???

謝謝

1 Answer

Rating
  • Anonymous
    2 decades ago
    Favorite Answer

    題目是說要你寫一個求最大值的程式,一共輸入10個整數,程式要求3個必備的變數,1) counter:計算輸入幾個數值了,2) 使用者輸入的最後一個數值,3) 最大值:截至目前為止的最大數值

    補充:要寫出pseudocode和JAVA程式

    Source(s): 自己的大腦
Still have questions? Get your answers by asking now.