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
Nastasia [14]
4 years ago
8

Checker for integer string (Please answer in C++):

Computers and Technology
1 answer:
MaRussiya [10]4 years ago
4 0

Answer:

import java.util.Scanner;

public class LabProgram {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       String num = in.nextLine();

       boolean allDigits = true;

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

           if (!Character.isDigit(num.charAt(i))) {

               allDigits = false;

           }

       }

       if (allDigits) {

           System.out.println("yes");

       } else {

           System.out.println("no");

       }

   }

}

Explanation:

Output: 1995

             Yes

             Process finished with exit code 0

You might be interested in
Hey I just got home I got a call back on and my car was in my bed I got a text and I didn’t get my text back from the house I wa
Phantasy [73]
Y’all what are you tryna say
6 0
3 years ago
So i am taking to edhesive computer science course in my school, and i am confused on 1.6 code practice,
elixir [45]

I included my code in the picture below. Best of luck.

5 0
3 years ago
Repayment of a direct plus loan begins:
just olya [345]
The answer is D I hope i'm right


4 0
4 years ago
Read 2 more answers
What is a logical grouping of related records called?.
irakobra [83]

Answer:

File

Explanation:

Files are frequently classified by the application for which they are primarily used (employee file). A primarily key in a file is the field whose value identifies a record among others in a data file

6 0
3 years ago
​___________, such as smart phones and social​ media, fundamentally change the nature of an industry and can be influential enou
svlad2 [7]

Answer:

Disruptive Technologies.

Explanation:

Smart Phones and the social media are very power tools they can be used to spread a news like a fire very rapidly.

People mostly believe the new that come on their smartphones and the social media.

So the employees of the company can also be influenced by these technologies hence they can disrupt the work of the company and can make or break the company.

6 0
4 years ago
Other questions:
  • After applying transitions to his presentation, Omar uses the Slide Show feature to view the them. He notices that the transitio
    9·2 answers
  • When you develop an application using a 3-layer architecture, the layer that provides the user interface is called the _____ lay
    13·1 answer
  • Which of the following is not a good way to conserve fuel and reduce emissions?
    13·2 answers
  • This type of software can be described as end user software and is used to accomplish a variety of tasks. communications system
    15·1 answer
  • Why is important to maintain a naming convention within the company that is developing computer programs?
    6·1 answer
  • I am in need of a research topics in networking and security?​
    15·1 answer
  • When societies and governments make decisions, choices have to be made. Which choice is an example of opportunity cost?
    7·1 answer
  • Algoritmos para llevar a cabo una actividad
    15·1 answer
  • To generate a series of first ten counting number of algorithm​
    9·1 answer
  • Sharon's company has written a new computer program, and she has been asked to find a way to prevent people from copying the sof
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!