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
enot [183]
4 years ago
7

Given an int variable datum that has already been declared, write a few statements that read an integer value from standard inpu

t into this variable.
Computers and Technology
1 answer:
Zina [86]4 years ago
3 0

Answer:

Following are the  Statement in the Java Language .

Scanner out = new Scanner( System.in); // creating the object

datum = out.nextInt(); // Read the integer value bu using the instance of scanner class

Explanation:

In the Java Programming Language The scanner class is used for taking the user input from the standard input The definition of scanner class is java.util package means that if you taking the input by using scanner class firstly importing the predefined package i.e Java.util.

The description of the above code is given below

  • Scanner out = new Scanner( System.in);: This statement created the instance "out" of the scanner class which is used for taking the input.
  • datum = out.nextInt(); : This statement taking the integer input and store them into the datnum variable.
You might be interested in
Which of the following best explains the different between Cut and Copy? a. When you copy text you are permanently deleting it,
Vilka [71]
B. When you copy text it remains in its original location and places it on the clipboard. Cutting text removes it from its original location and places it on the clipboard

5 0
3 years ago
Read 2 more answers
Does industry-recognized certifications (microsoft office suite) boost your resume and
omeli [17]

Answer:Having Microsoft Office training can make you more productive, confident, and satisfied with your job. ... Productivity is crucial to success in the administrative assisting field, and your employers will thank you for it. 3. Industry-recognized certification will boost your resume and increase your earning potential.

Explanation: i no it

4 0
3 years ago
Add -9 and -7 using 2nd compliment
zlopas [31]

Explanation:

-16

hope this helped

4 0
3 years ago
Defining table _______ creates links between tables that identify a correspondence of fields from one table to another.
Alexxx [7]

Answer:

B

Explanation:

3 0
4 years ago
Please write a code for below:
Zanzabum

Answer:

int main()  

{  

   int x,y;  

   bool b1, b2;  

   cout<<"enter values of x : ";

   cin>>x;

   cout<<"enter values of y : ";

   cin>>y;

   b1 = y > x; // false  

     

   b2 = x > y; // true  

     

   cout << "b1 is = " << b1 << "\n";  

   cout << "b2 is = " << b2 << "\n";  

     

   if (b2)  

       cout<<endl << "Larger Number" << "\n";  

   else

       cout << "Smaller Number" << "\n";  

         

     

return 0;  

}

8 0
3 years ago
Other questions:
  • Discuss your theory on why the light bulbs in the combination circuit have different brightness.
    6·1 answer
  • What does px mean in css ?
    13·1 answer
  • What is a phonograph?
    15·2 answers
  • If an image has only 4 colors, how many bits are necessary to represent one pixel’s color? Describe a new custom encoding that u
    8·1 answer
  • When solving a problem in a group situation, which of the following traits should be demonstrated?
    8·1 answer
  • ***URGENT***
    8·1 answer
  • The process of identifying and eliminating bugs in a software program is most generally called reproducing the problem. diagnosi
    6·1 answer
  • Read each of the following statements about Computer Science and explain why you think that statement is true.
    9·1 answer
  • A technician is tasked with installing the Windows OS on a Mac OS computer so that the computer can boot to either the Mac OS or
    9·1 answer
  • 22. Write the following in full un computer
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!