answersLogoWhite

0


Best Answer

Here it is in Java for 5 numbers: (adapt for your programming language)

import java.util.Arrays

Public class Highestnumber

{

public static void main (String args[])

{

Scanner input = new Scanner( System.in );

int numberofinputs = 5;

//make an array to hold the numbers

int numbers[] = new Int[numberofinputs];

for (x=0;x<numberofinputs;x++)

{

System.out.print("Please input a number: ";

numbers[x] = input.nextInt();

}

//Sorts Numbers from least to greatest

Arrays.sort(numbers[]);

//gets highest number

int highestnum = numbers[numberofinputs-1]

//displays highest number

System.out.println("The highest number is:" + highestnum);

}

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make an input program that computer can determine the highest number?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Is 180 credit hours equal to MBA?

The number of credits does not determine equality to any specific program of study. Each program will have specific requirements. Once you are accepted to that program, successfully complete the requirements of that program, and the registrar indicates you have completed the program and have graduated, then you have that degree.


How do you write a C program to check whether the number is odd or even Ps-using DEV complier?

To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.


What action best describes a branch in a computer program?

This would be a jump to a line number that is non sequential. This is the best way to describe the process.


Turbo c program that will determine if the input is odd or even number?

#include &lt;stdio.h&gt; int main() { printf("Program to find ODD or Even Number\n"); while(1) { int n = 0; printf("\nEnter a number(-1 for Exit): "); scanf("%d",&amp;n); if( n 0) { printf("%d is a EVEN number.\n", n); } else { printf("%d is a ODD number.\n", n); } } return 0; }


How do you write a Java program to accept a 3-digits integer number and print out the highest digit from the derived input?

The tricky part is getting the individual digits. There are basically two ways to do this: 1) Convert the number to a string, and use string manipulation to get the individual digits. 2) Repeatedly divide the number by 10. The digit is the remainder (use the "%" operator). To actually get the highest digit, initially assume that the highest digit is zero (store this to a variable, called "maxDigit" or something similar). If you find a higher digit, replace maxDigit by that.

Related questions

How do you create a program that will determine if it is highest number in turbo c?

It is 32767 for data-type int, 65535 for unsigned int.


What mathematical program can solve the highest number puzzle?

Any program whose output is: " Don't waste your time! There is no highest number. Never was, never will be."


What function is used to determine highest number in a range?

The "maximum" function.


What is the code of a c program that will read in a positive integer value and determine If the integer is a prime number and If the integer is a Fibonacci number?

see the program


The MIN function is used to determine the highest number in a range.?

MIN is used to find the lowest number in a range. You would use MAX or LARGE to find the highest number in a range.


What is a number machine for math?

That might refer to a calculator; to a computer; or to a spreadsheet program (which runs on a computer).


How does a client computer determine what source port number to assign to a UDP header?

The port number is random


How do you calculate HCF?

HCF stands for the Highest Common Factor. To determine this, you find the highest number possible that can be divide each of the two numbers in a fraction.


What is the computer program Xerox?

There is no single computer program called "Xerox." The Xerox Corporation offers a number of different programs to support the use of some of the printers that they market, and for other functions.


What is computer science about?

Generally, computer science is all about using object-oriented programs to problem solve and create algorithms. By doing so, you can make program the computer to do simple tasks to extremely hard tasks. For example, you can create a program that lists all the factors of a number or a program in which you play a number guessing game with the computer! It gets more complex as you get more skilled with computer science. Eventually, you can learn how to add graphics into it! I


How do you determine the PC number for ram?

Press start --&gt; Right-click Computer --&gt; and select properties


What is the highest number a computer can calculate?

A computer has no limit when it comes to counting or calculation. And does this faster than a human being even think.