This program multiplies integer inputs A and B, by repeatedly adding B to RESULT while decrementing A.
It will work fine when either A or B is zero. If A is zero, it will branch to QUIT immediately. If B is zero, zero will be added repeatedly to the result (which also is initialized with zero).
LOOP, RESULT etc. are called labels. They translate into a memory address location of a variable or machine instruction. But it is much more readable to have them as english words while creating your program. Also, they make your program relocatable, in the sense that while writing, you don't have to decide on which physical address your program will run.
Answer:
example in ( 4,6,9,3,7) lowest value is 3and highest is 9.
The option that is the overall purpose of a software application is option c: Answers depend on problem needing to be solved.
<h3>What is application software?</h3>
An application is a term that is often known to be application program or form of an application software.
This is seen as is a computer software package that carry out a specific function which can be done directly for an end user or, in some ways made for another application. An application is one that may be self-contained or a set of programs.
Therefore, based on the above, The option that is the overall purpose of a software application is option c: Answers depend on problem needing to be solved.
Learn more about software application from
brainly.com/question/24264599
#SPJ1
Answer:
See explaination
Explanation:
MinMax.java
import java.util.*;
public class MinMax
{
static void MinMax(int[] arr)
{
int Min=arr[0]; // initializinf min and max with 1st value of array
int Max=arr[0];
for(int i=0;i<arr.length;i++) // iterating loop only once
{
if(arr[i]>Max) // checking max value
{
Max=arr[i];
}
if(arr[i]<Min) // checking min value
{
Min=arr[i];
}
}
System.out.println("Min Number is "+Min); //printing min value
System.out.println("Max Number is "+Max); //printing max value
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter N value: "); // taking n value
int n=sc.nextInt();
int[] arr=new int[n];
System.out.println("Enter N elements:"); // taking n elements into array
for(int i=0;i<n;i++)
{
arr[i]=sc.nextInt(); // each element into the array
}
MinMax(arr); // calling MinMax() method.
}
}