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
bazaltina [42]
3 years ago
12

Where is Peru located?

Computers and Technology
1 answer:
Illusion [34]3 years ago
4 0
B. South America

[ignore:20 CHARACTERS]
You might be interested in
Write a Java program that reads two numbers from the console. Based on the example in the textbook, write five methods (min, max
makvit [3.9K]

Answer:

import java.util.Scanner;

public class num6 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter first number");

       int a = in.nextInt();

       System.out.println("Enter second number");

       int b = in.nextInt();

       //Calling the methods inside the output statement

       System.out.println("Min is "+min(a,b));

       System.out.println("Max is "+ max(a,b));

       System.out.println("Sum is "+sum(a,b));

       System.out.println("Product is "+product(a,b));

       System.out.println("Absolute difference is "+difference(a,b));

   }

   //Min Method

   static int min(int a, int b){

       if (a<b){

           return a;

       }

       else {

           return b;

       }

   }

   //Max Method

   static int max(int a, int b){

       if (a>b){

           return a;

       }

       else {

           return b;

       }

   }

   //Sum Method

   static int sum(int a, int b){

       return a+b;

   }

   //Diference Method

   static int difference(int a, int b){

       int diff = Math.abs(a-b);

       return diff;

   }

   //Product Method

   static int product(int a, int b){

       int prod = a*b;

       return prod;

   }

}

Explanation:

  • Using Java programming language
  • Use the scanner class to prompt and receive two values from the user (integers a and b)
  • Create the four methods as required (Please see the comments in the code)
  • In the difference method use Math.abs() to get the absolute value of the subtraction ensuring that you get a positive number returned
4 0
2 years ago
Read 2 more answers
what does it mean if you get the brainlyest ?and why does everyone want it so bad? and how do i give it to someone?
Bad White [126]

people mark the people who answered their question probably because they were asked to or their answer was what they were looking for and it helped them. and i don't know why people want it so bad, but personally for me i like getting brainliest because i guess it makes me look cool lol. also it's easy, to give brainliest, when you see a crown that's where you mark brainliest. but sometimes brainly doesn't show the crown i don't understand why, but it happens for some people including me.

8 0
3 years ago
Lists and Procedures Pseudocode Practice For each situation, provide a pseudocoded algorithm that would accomplish the task. Mak
Andrei [34K]

Answer:

The pseudocoded algorithm is as follows:

Procedure sumOdd(lotsOfNumbers):

    oddSum = 0

    len = length(lotsOfNumbers)

    for i = 0 to len - 1

         if lotsOfNumbers[i] Mod 2 != 0:

              OddSum = OddSum + lotsOfNumbers[i]

Print(OddSum)

Explanation:

This defines the procedure

Procedure sumOdd(lotsOfNumbers):

This initializes the oddSum to 0

    oddSum = 0

This calculates the length of the list

    len = length(lotsOfNumbers)

This iterates through the list

    for i = 0 to len-1

This checks if current list item is odd

         if lotsOfNumbers[i] Mod 2 != 0:

If yes, the number is added to OddSum

              OddSum = OddSum + lotsOfNumbers[i]

This prints the calculated sum

Print(OddSum)

6 0
3 years ago
An organism which must obtain its food from other organism is called a ​
Sophie [7]

Answer:

Heterotrophs

Explanation:

Heterotrophs, or consumers, are organisms that must obtain energy by consuming other organisms (autotrophs or other heterotrophs) as food.

5 0
3 years ago
Read 2 more answers
WILL GIVE BRAINLIEST!!!!!!!!!<br>What problems can occur on my computer if I don't clear Cache
Zolol [24]

Answer:

Nothing major will happen

Explanation:

  • Cache is used by the CPU.  It  reduces the time needed to  access the data from the main memory.  
  • Cache memory is faster and smaller, it  is located near the processor core and stores copies of data frequently used by the main memory.  
  • If you do not clear the cache memory it will make everything slower
  • However if you do not clear the cache memory it will not have any major  effect on your computer
  • Cache memory is everywhere from operating systems to phone apps and browsers.  
  • CPUs depend on the cache to to do all the calculations, CPU require data stored in cache memory to do faster calculations.
  • Cache used in browsers speeds up the repeat visit visits to web pages.  
  • Well developed applications are able to clear cache at any time and still keep functioning until cache is rebuilt, but sometimes the data stored on Browser cache can cause login issues so we should clear the browser cache to prevent it.
8 0
3 years ago
Other questions:
  • Consider a computer that has a number of registers such that the three registers R0 = 1500, R1 =4500, and R2 = 1000.
    14·1 answer
  • Jack is writing a paragraph for a school assignment. He proofreads his paper and notices that he used the word, "then" many time
    15·2 answers
  • ZigBee is an 802.15.4 specification intended to be simpler to implement, and to operate at lower data rates over unlicensed freq
    7·1 answer
  • 1. What are copyright laws?
    12·2 answers
  • In what year did the manager and team depicted in the blockbuster film "Moneyball
    9·1 answer
  • Which of the following correctly orders the investments from LOWER risk to HIGHER risk?
    9·1 answer
  • What advantages do teams have for solving problems
    14·1 answer
  • What types of forecast worksheets are available in Excel? Check all that apply.
    6·2 answers
  • ((GUITAR))<br> What is the letter name for the note shown above?<br><br> D<br> E<br> F<br> G
    5·1 answer
  • Alfred works in the human resources department, and he uses a management information system to find applicants' résumés on the w
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!