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
grandymaker [24]
3 years ago
10

Why are the READ and DATA statements usedtogether?​

Computers and Technology
1 answer:
3241004551 [841]3 years ago
4 0

Explanation:

DATA statements are used in conjunction with READ statements. Together they assign numbers or strings to variable names.

You might be interested in
Write a program that reads in ten numbers and displays the number of distinct numbers and the distinct numbers separated by exac
ELEN [110]

Answer:

The program to this question can be given as:

Program:

//import package.

import java.util.*;

public class Main //defining the class

{

public static void main(String[] args) //defining main method  

{

 Scanner ob = new Scanner(System.in); //creating scanner class object.

 int[] a = new int[10];//define array.  

 int number,counts= 0,i;//define variable.

 System.out.print("Enter numbers: "); //message.

 for (i = 0; i < 10; i++) //loop  

 {

  number=ob.nextInt();

  if (isDistinct(a,number))

  {

      a[counts] = number;//assign value in array

      counts++; // Increment count

  }

 }

 System.out.println("The distinct numbers is :" + counts);

 System.out.print("The distinct number are :");

 for (i = 0; i <a.length; i++)//loop

 {

  if (a[i] > 0)

  {

   System.out.print(" " +a[i]);//print array.    

  }

   

 }

 System.out.println();

}

public static boolean isDistinct(int[] array, int num)//defining method  

{

 for (int i = 0; i < array.length; i++)//loop for check number  

 {

  if (num == array[i]) //check condition

  {

      return false; //return value false.

  }

 }

 return true; //return value true

}

}

Output:

First time run:  

Enter ten numbers: 1 2 3 4 5 6 7 8 9 10

The number of distinct numbers is 10

The distinct numbers are 1 2 3 4 5 6 7 8 9 10

Second time run:

Enter numbers: 2 3 5 8 7 4 3 2 1 2

The distinct numbers is :7

The distinct number are : 2 3 5 8 7 4 1

Explanation:

The description of the above java code can be given as:

  • In the above java code, a class is defined that is main inside a class-main function is defined in the main function firstly creating a scanner class object that is "ob" then define variables and array that are number, counts and a[].
  • To inserts array elements we use a loop. In the loop, we use integer variable number and define a condition in if block passes a function that check value count total value.
  • In the second loop, we check the condition that array elements value is greater than 0 and print all array elements.
  • The isDistinct function checks in the array two values are not the same. if the values are the same it will return false value because this function is the boolean type that returns an only boolean value.
6 0
3 years ago
Is www part of every url address?
melisa1 [442]
The correct answer is that WWW. is universal, meaning that any and all url addresses start and have www.

My reasoning is that if you were to look up, lets say google, do :

www.(google).com ( remove parentheses )

then

google.com 

You come up with the same results THUS YOUR CORRECT ANSWER IS YES! ALL URL ADDRESS HAVE AND CONTAIN WWW.!!!

5 0
4 years ago
Whales thrive in the benthic zone because it is full of plankton.<br> Is it true or false
lorasvet [3.4K]

Answer:

true

Explanation:

4 0
3 years ago
Choose the two (2) statements that are true about functions​
Natalka [10]

Answer:

In the given question statements are missing. So, we assume two true statements. Which can be given as :

  • Function name should be meaning full  
  • Programming features are called programming instruction groupings.

Explanation:

In the programming language, a function is a group of organized code that is used to increases the reusability of the program. In the declaration of the function we should remember two points which is can be described as:

  • function name should be meaning full means is that if we want to print some data in function. So, we write a function name that is matched to its data like message, information, data, etc. these names help another programmer to understand more easily.  
  • In the function, Programming features are called programming instruction groupings.

That's are the statements for function that is described above.

4 0
3 years ago
Write a program with two inputs, current price and last month's price (both integers). Then, output a summary listing the price,
poizon [28]

Answer:

current_price = int(input("Enter the current price: "))

last_months_price = int(input("Enter the last month's price: "))

print("Current price is: " + str(current_price) + ", Last month's price was: " + str(last_months_price))

print("The change since last month is: " + str(current_price - last_months_price))

print("The estimated monthly mortgage is: " + str(current_price * 0.051))

Explanation:

Get the inputs for the current price and last month's price

Print the prices

Calculate and print the change, current_price - last_months_price, since last month

Calculate, using given formula, and print the estimated monthly mortgage

6 0
3 years ago
Other questions:
  • When using an hdmi to dvi adapter, what two dvi port types will the adapter work with?
    8·1 answer
  • Which of these are examples of skills?
    5·2 answers
  • What would be the results of the following code? final int SIZE = 25; int[] array1 = new int[SIZE]; … // Code that will put valu
    9·1 answer
  • Hi weegy, what is the latest android os?
    9·1 answer
  • Java can be used to create which of the following technologies?This task contains the radio buttons and checkboxes for options.
    5·1 answer
  • What option from the format tab should you use to remove unwanted parts of a picture
    8·1 answer
  • The calculation of GDP is the sum of: Consumption, Investment, Government Spending, and Net Exports. What is the simple formula
    7·1 answer
  • How does AI use data
    7·1 answer
  • What are the characteristics of 1st generation computers​
    9·2 answers
  • 7. In order to check your following distance, use a fixed object and count seconds.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!