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
Stels [109]
4 years ago
6

The strPhone variable should contain only numbers and no dashes (-). An error message should display if there is a dash anywhere

in the variable. Which of the following statements determines whether the variable contains a dash in order to display the message?
Computers and Technology
1 answer:
Phantasy [73]4 years ago
6 0

Answer:

Following are the code in the Java Programming Language.

if strPhone.Contains("-") = True then

Explanation:

In the following code, we check the condition through the if conditional statement is that if the variable "strPhone" contain dashes(-) by using the "Contains()" function is equal to True then it display the message and the variable "strPhone" contains the phone numbers. So, that's why the following If statement is correct.

You might be interested in
After reviewing the various types of network connections available, a client chooses a network connection that is considered to
andriy [413]

Answer:

Wired Network Connection

Explanation:

The two major types of connection is <em>Wired</em> and <em>Wireless </em>connection. The wired connection helps to transfer data between two devices using <em>Ethernet network cable</em>. The wireless connection on the other hand transfer data between endpoints using <em>microwave signals or radio frequency</em>.

<em>Wired connection</em> is preferred over <em>Wireless</em> because of interference which could be caused by other networks as well as wall obstructing the connection.

7 0
4 years ago
Ucf the ability to connect data in different tables in a database through a common field is sometimes referred to as a ____.
kari74 [83]
Much like humans, databases have relationships too.
4 0
4 years ago
When saving my template, I will need to select Word Template in the _____ dialog box.
Bond [772]
You will need to select the file type to be saved as a template in the save as dialog box 
4 0
3 years ago
Which of the following statements correctly instantiate the Rectangle object myRectangle? (i) myRectangle Rectangle = new Rectan
madreJ [45]

Answer:

The answer is "option iii"  .

Explanation:

In the given question it is defined that a class "Rectangle" is defined in the class a parameter constructor is created that accepts two parameters. In this question, we create an instance of the class. In object creation first, we define class name then object name and use new keyword in the Instance of class and pass parameters.

  • In option i), An object name is used first and then class name. It is not correct.
  • In option ii), In instance creation of the class, we do not use class keyword that's why it is wrong.

5 0
4 years ago
Read 2 more answers
HELP PLEase!!! Which option is an outcome of a project stated in quantifiable terms?
dimulka [17.4K]

Answer: C) a 10 percent increase in efficiency of sales of a particular product line over one year

The term "quantifiable" means that we can attach a number to it. Specifically, a number in which we can do math operations upon it. Something like telephone numbers or serial numbers don't really count as quantifiable entities. They are qualitative variables instead. So you have to be careful what numbers you run into. In this case, "10 percent increase in efficiency" is quantitative and fits what we're after.

A 10% increase corresponds to the multiplier 1.10; for instance, if you had sales of 40 million dollars one year, then a 10% increase is 1.10*40 = 44 million in sales. This is one example where we apply a math operation (specifically multiplication) on the value in question.

4 0
3 years ago
Other questions:
  • A Hierarchy Custom Setting stores a specific URL for each profile in Salesforce. Which statement can a developer use to retrieve
    5·1 answer
  • This is not a factor that you should use to determine the content of your presentation. Your audience your goals your purpose yo
    7·2 answers
  • What is the first step in the exchange between a web browser and a database?
    7·1 answer
  • List the five human relations skills
    12·1 answer
  • WILL GIVE BRAINLIEST
    5·2 answers
  • sometimes people who have been playing gta for a while are annoying, i was playing gta this weekend and was trying to escape, bu
    8·2 answers
  • Consider a file/directory with the following info:
    14·1 answer
  • Can anyone help explain this?
    13·2 answers
  • Can someone be my friend,don't friend me until i ask you Questions
    14·1 answer
  • What Is The First Computer Brought In Nepal ? <br>​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!