different the need for external or secondary memory​

Answers

Answer 1

Answer:

Secondary storage is needed to keep programs and data long term. Secondary storage is non-volatile , long-term storage. Without secondary storage all programs and data would be lost the moment the computer is switched off.

External storage enables users to store data separately from a computer's main or primary storage and memory at a relatively low cost. It increases storage capacity without having to open up a system.


Related Questions

Write a python statement that print the number 1000

Answers

1.

print(1000)

2.

x = 600

y = 400

print(x + y)

1. Write a method to measure sortedness of an array. The method header is:
2. Write an iterative method to measure sortedness of a collection of linked nodes. The method header is:
3. Write a recursive method to measure sortedness of a collection of linked nodes.
Document Preview:
Meetup Questions and ideas Write a method to measure sortedness of an array. The method header is: public static double sortedness(Comparable[] array) Write an iterative method to measure sortedness of a collection of linked nodes. The method header is: public static double sortednessIterative(Node node) Write a recursive method to measure sortedness of a collection of linked nodes. public static double sortednessIterative(Node node)

Answers

ㄴㄱㄷㅂㄷㅈ븟ㅈㅂㅈㅂㅈㄱㅅㄱㅈㅂㄷㅅㄷㅈㄱㅅㄱㅅㄴㅇㄴㅇㄴㅇㄴㅁㄴㅇㄴㅇㄴㅈㅂㅈㅂㅈㄱㅈㄴㅈㄴㄱㅆㅅㄱㅈㅂㄷㅅㅈㅂㅈㅅㄱ싲ㄱㅈㅂㄷㅂㅅㅇㄱㅇㄱㅅㅂㄷㅈㄱㅇㄱㅇㄱㄷㄱㅅㄱㅇㄱㄷㅈㄱㅇㅈㄱㅂㅈㅂㄷㅇㄷㅅㅆㄱㅇㄱㅅㅈㄱㅈㄱㅇㄱㅇㅂㅇㄱㅁㄱㅇㄱㅇㄱㅇㄱㅇㄱㅁㅋㅁㄱㅇㄱㅇㄱㅇㄱㄴㅁㄴㅇㄴㅇㄴㅇㄴㅇㄴㅇㄴㅇㄴㅇㄴㅁㄴㅇㄴㅇㄴㅅㄱㅈㄱㅈㅅ?...

Which of these elements help të orient a user?
to
A
a dialog
B.
page name
c. an icon
b. a banner




Fast please

Answers

answer:

page name

Explanation:

Answer:

b. page name

Explanation:

plato

Create a new Java project/class called ChangeUp. Create an empty int array of size 6. Create a method called populateArray that will pass an array, use random class to choose a random index and prompt the user to enter a value, store the value in the array. Note: Generate 6 random index numbers in an attempt to fill the array. Create a method called printArray that prints the contents of the array using the for each enhanced loop. Submit code. Note: It is possible that your array won't be filled and some values will still have 0 stored. That is acceptable.

Answers

Answer:

//import the Random and Scanner classes

import java.util.Random;

import java.util.Scanner;

//Begin class definition

public class ChangeUp {

   

   //Begin the main method

  public static void main(String args[]) {

       //Initialize the empty array of 6 elements

      int [] numbers = new int [6];

       

       //Call to the populateArray method

       populateArray(numbers);

       

       

   } //End of main method

   

   

   //Method to populate the array and print out the populated array

   //Parameter arr is the array to be populated

   public static void populateArray(int [] arr){

       

       //Create object of the Random class to generate the random index

       Random rand = new Random();

       

       //Create object of the Scanner class to read user's inputs

       Scanner input = new Scanner(System.in);

       

       //Initialize a counter variable to control the while loop

       int i = 0;

       

       //Begin the while loop. This loop runs as many times as the number of elements in the array - 6 in this case.

       while(i < arr.length){

           

           //generate random number using the Random object (rand) created above, and store in an int variable (randomNumber)

           int randomNumber = rand.nextInt(6);

       

           //(Optional) Print out a line for formatting purposes

           System.out.println();

           

           //prompt user to enter a value

           System.out.println("Enter a value " + (i + 1));

           

           //Receive the user input using the Scanner object(input) created earlier.

           //Store input in an int variable (inputNumber)

           int inputNumber = input.nextInt();

           

           

           //Store the value entered by the user in the array at the index specified by the random number

           arr[randomNumber] = inputNumber;

           

           

           //increment the counter by 1

          i++;

           

       }

       

       

       //(Optional) Print out a line for formatting purposes

       System.out.println();

       

       //(Optional) Print out a description text

      System.out.println("The populated array is : ");

       

       //Print out the array content using enhanced for loop

       //separating each element by a space

       for(int x: arr){

           System.out.print(x + " ");

       }

   

       

  } //End of populateArray method

   

   

   

} //End of class definition

Explanation:

The code above is written in Java. It contains comments explaining the lines of the code.

This source code together with a sample output has been attached to this response.

Answer:

import java.util.Random;

import java.util.Scanner;

public class ArrayExample {

   public static void main(String[] args) {

       int[] array = new int[6];

       populateArray(array);

       printArray(array);

   }

 

   public static void populateArray(int[] array) {

       Random random = new Random();

       Scanner scanner = new Scanner(System.in);

       boolean[] filledIndexes = new boolean[6];

     

       for (int i = 0; i < 6; i++) {

           int index = random.nextInt(6);

         

           while (filledIndexes[index]) {

               index = random.nextInt(6);

           }

         

           filledIndexes[index] = true;

         

           System.out.print("Enter a value for index " + index + ": ");

           int value = scanner.nextInt();

           array[index] = value;

       }

   }

 

   public static void printArray(int[] array) {

       System.out.println("Array contents:");

       for (int value : array) {

           System.out.print(value + " ");

       }

   }

}

Explanation:

In the code provided, we are creating an array of size 6 to store integer values. The objective is to populate this array by taking input from the user for specific indexes chosen randomly.

To achieve this, we have defined two methods: populateArray and printArray.

The populateArray method takes an array as a parameter and fills it with values provided by the user. Here's how it works:

We create an instance of the Random class to generate random numbers and a Scanner object to read user input.We also create a boolean array called filledIndexes of the same size as the main array. This array will keep track of the indexes that have already been filled.Next, we use a loop to iterate six times (since we want to fill six elements in the array).Inside the loop, we generate a random index using random.nextInt(6). However, we want to make sure that we don't fill the same index twice. So, we check if the index is already filled by checking the corresponding value in the filledIndexes array.If the index is already filled (i.e., filledIndexes[index] is true), we generate a new random index until we find an unfilled one.Once we have a valid, unfilled index, we mark it as filled by setting filledIndexes[index] to true.We then prompt the user to enter a value for the chosen index and read the input using scanner.nextInt(). We store this value in the main array at the corresponding index.This process is repeated six times, ensuring that each index is filled with a unique value.

The printArray method is responsible for printing the contents of the array. It uses a for-each enhanced loop to iterate over each element in the array and prints its value.

**By separating the population and printing logic into separate methods, the code becomes more modular and easier to understand.**

Other Questions
Who was the 4th president of U.S. please help this is very important i will give you brain thing if its correct 1. Annette scored 85. 73. and 94 on her first three quizzes. How high does she need toscore on her fourth quiz to keep her quiz average at at least a B (8046) ? factors of cultural practices affecting child growth PLZZZZZZZZZZZZ HELP ITS HALF MY GRADE!!!I need 2 Quote from Rethinking The Wild in american born chinese why doestn danny ask melaie out on a date What was true of the Japanese internet? Is -2 rational or irrational? A 10 kg sled is sitting on top of a 10 m hill what is the potential energy of the sled TRUE/FALSE: Write whether the answer is TRUE or FALSE on the lineHades put the lighting bolt in Percy's backpack.Percy's mom petrifies Gabe.Luke had expected Percy to die.Zeus now trusts Percy since he proved he was not the thief.The Prophecy the Oracle gave came true. A ver sl recuerdas...Dnde est?Fill in the blanks with the location of each item as pictured. Follow the modelUsen una forma del verbo estar & unaproponicin .ModeloLa estatuaest a la derecha dela escuela1.1. W galosla mesa.24la farmacia, no a la derecha. 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000O000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Find the O and not the 0This is how they look together: O0 Find: ODon't leave this question until you find it A storage tank contains a liquid radioactive element with a half-life of 96 years. It will be relatively safe for the contents to leak from the tank when 0.02% of theradioactive element remains. How long must the tank remain intact for this storage procedure to be safe?The tank must remain intact for lears.(Round the base of the exponential function to four decimal places. Then round the final answer to the nearest year as needed.) Trey bought 3 and 3 fourths pounds of apples from the grocery store. Corinne bought 1 and 1 third pounds of grapes from the grocery store. How many more pounds of fruit did Trey buy Brainiest will be mark, if correctly answered.No link!!!! I cant open it!!!!The process of upwelling occurs as a result of which of the following? A. warmer, less dense deep water that floats to the surface B. surface waves that mix surface and deep water C. cooler dense water rises to the surface, replacing warmer water D. sunlight that warms deep water that rises to the surface Part A: Mike wants to join a gym. He has to pay an initiation fee of $16 and equal monthly payments for the year. The most he wants to pay is $580 for the year for his gym membership. a.) Write an inequality that you can use to determine the most he would want to spend for his monthly payments. Part B: Now use your inequality from 15a to determine how much Mikes monthly gym payment can be if the most he wants to pay is $580 for the year for his gym membership.. Find the absolute value |-7| Josie makes peanut butter sandwiches. She uses 1/8 cup of peanut butter on each sandwich. How many cups of peanut butter dose she need for 9 sandwiches? The map shows the Roman Republic and the Roman Empire.According to the map,how did the Roman Empire differ from the Roman Republic? In what way is apostrophe used in this poem?* The speaker uses figurative language to draw apicture in the reader's mind.O The speaker describes the fragrant memories of thevanished flowers.Who are you, reader, reading my poems anhundred years hence?I cannot send you one single flower from thiswealth of the spring, one single streak of goldfrom yonder clouds.Open your doors and look abroad.From your blossoming garden gather fragrantmemories of the vanished flowers of anhundred years before.In the joy of your heart may you feel the living joythat sang one spring morning, sending itsglad voice across an hundred years.O The speaker speaks to a reader one hundred yearsin the future.-"85,Rabindranath Tagore