1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Rus_ich [418]
3 years ago
13

5-11) (Find the Smallest Value) Write an application that finds the smallest of several integers. Write a program which first as

ks the user to enter the number of values to enter, then asks for each value, and finally prints out the lowest value of those entered.
Computers and Technology
1 answer:
Elanso [62]3 years ago
8 0

Answer:

import java.util.Arrays;

import java.util.Scanner;

public class num4 {

   public static void main(String[] args) {

   Scanner in = new Scanner(System.in);

       System.out.println("How many numbers? ");

       int n = in.nextInt();

       int []intArray = new int[n];

       //Entering the values

       for(int i=0; i<intArray.length;i++){

           System.out.println("Enter the numbers");

           intArray[i]=in.nextInt();

       }

       System.out.println(Arrays.toString(intArray));

       int min =intArray[0];

       for(int i =0; i<intArray.length; i++){

           if(min>intArray[i]){

               min = intArray[i];

           }

       }

       System.out.println("The Minimum of the numbers is "+min);

   }

}

Explanation:

  • Using Java programming language
  • Prompt the user for the number of values
  • Using Scanner class receive and store in a variable
  • Create an array of size n
  • Using an for loop continuously ask the user to enter the integers
  • Print the array of integers
  • Using another for loop with an if statement, find the smallest element in the array of numbers
  • Output the the smallest number
You might be interested in
George wants to edit the font of the title in his presentation. Where can he find the option to edit it?
Bad White [126]

The answer could be B. Tool Bar

6 0
3 years ago
Read 2 more answers
Which new console should i buy Nintendo switch Xbox series x or a ps5
Musya8 [376]

Answer:

you should buy the xbox series x, it has better quality and xbox is just better in general

Explanation:

3 0
2 years ago
Read 2 more answers
What does google search console report​
Natali [406]

Answer:

Search console data

Explanation:

4 0
3 years ago
Donte needs to print specific sections in the workbook, as opposed to the entire workbook. Which feature should he use? Page Set
siniylev [52]

Donte needs to use the feature Print Area to print specific sections in the workbook.

Before workbooks are being printed out, they are usually being typed with Microsoft Office packages such as:

  • Microsoft word
  • Microsoft Excel.
  • Microsoft Powerpoint

In the Microsoft Office Package, to print a page, you can hover your cursor to the select file button and click on print pages.

But when you want to print some selected sections in the Microsoft Office Package, let's say the Microsoft Excel for example;

  • After using the file button → print pages

You will need to set the print features you need. To do that, under the settings, you will click on the Print selection which will help you to select the sections you want to print from the entire workbook.

Learn more about the use of Microsoft Office Packages here:

brainly.com/question/25203116?referrer=searchResults

3 0
2 years ago
Modify this query so results are grouped by values in the DeptName field and values in the Credits field are summarized with the
docker41 [41]

Answer:

Select and group the table with the DeptName and sum the credits field from the Design Ribbon tab, click the Totals button, then click the credits field's total row, expand the Total row's Group by list, and select the Sum option and then click run.

Explanation:

Microsoft Access is a relational database platform developed by Microsoft. It is used to create a database for storing data and a means of querying the data from storage.

The result of the query can be a grouped dataset, grouping a column by the aggregate of another column. The dataset above is queried to return the grouped DeptName by the aggregate of the sum of the credits field.  

7 0
3 years ago
Other questions:
  • Write a Tip Calculator in code in VMware Fusion
    13·1 answer
  • The angles of a quadrilateral are in the ratio 1:2:3:4 what is the largest angle​
    5·1 answer
  • On what basis can you categorize the generations of computers
    7·1 answer
  • What is a data broker?
    6·1 answer
  • Carrie is creating a personal balance sheet. The heading includes the period of time that the balance sheet
    11·1 answer
  • What type of result does the MATCH function, when used on its own, return?
    5·1 answer
  • In cell B13, create a formula without a function using absolute references that subtracts the values of cells B5 and
    13·1 answer
  • Write code to take a String input from the user, then print the first and last letters of the string on one line. Sample run: En
    10·1 answer
  • FILL IN THE BLANK.
    10·1 answer
  • Consumers affect which goods and services are produced because they _____.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!