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
Komok [63]
3 years ago
12

Do you think we could use mathematical operators on string values rather than integers or floats? Explain.

Computers and Technology
1 answer:
Blizzard [7]3 years ago
4 0

Answer:

Yes and no. For example, you can do this:

print('hi' * 5)

Output:

hihihihihi

HOWEVER, you cannot do mathematical operations on strings. If I have a string "6" and try dividing it by 3, it's not going to work because... it's not an integer. While multiplying strings does work, you cannot actually do real math with strings unless you change them to int or float

You might be interested in
What is the answer to that question
REY [17]
B. This is not a good idea, you should always make the design out of only one material
4 0
3 years ago
Read 2 more answers
John works for Internal Computer Specialists, which focuses on helping small business owners resolve MIS infrastructure issues.
natali 33 [55]

Answer:

A) Hardware

Explanation:

The hardware component of the computer refers to the physical parts of the computers that can be see and touched this contrasts the sofware component of the computer that are programs (sets of instruction). All the coponents listed in the question are physical parts of the computer and belong to the hardware component.

5 0
3 years ago
20 points for ez question lol
slega [8]
I think it might be the third on not certain
5 0
3 years ago
Read 2 more answers
Write a while loop that prints userNum divided by 2 (integer division) until reaching 1. Follow each number by a space.
Ksenya-84 [330]

Answer:

   while(userNum>=1){

       System.out.print(userNum/2+" ");

       userNum--;

        }

Explanation:

This is implemented in Java programming language. Below is a complete code which prompts a user for the number, receives and stores this number in the variable userNum.

<em>import java.util.Scanner;</em>

<em>public class TestClock {</em>

<em>    public static void main(String[] args) {</em>

<em>    Scanner in = new Scanner (System.in);</em>

<em>        System.out.println("Enter the number");</em>

<em>    int userNum = in.nextInt();</em>

<em>    while(userNum>=1){</em>

<em>        System.out.print(userNum/2+" ");</em>

<em>        userNum--;</em>

<em>         }</em>

<em>    }</em>

<em>}</em>

The condition for the while statement is userNum>=1 and after each iteration we subtract 1 from the value of   userNum until reaching 1 (Hence userNum>=1)

3 0
3 years ago
What purpose does the underlined portion of this excerpt
Rudiy27

Answer:

The below mentioned portion is missing from the question

<em>A part of the sacrifice means the payment of more money in taxes. In my Budget Message I shall recommend that a greater portion of this great defense program be paid for from taxation than we are paying today. No person should try, or be allowed, to get rich out of this program; and the principle of tax payments in accordance with ability to pay should be constantly before our eyes to guide our legislation. </em>

<em />

The passage provides the reason why extra taxes must be collected should America decide to join the war  or it introduces the claim that patriotic Americans should be willing to sacrifice and pay extra taxes.

3 0
4 years ago
Other questions:
  • Colleen is creating a document with two minimal paragraphs of text comparing two business models for her company. She decides to
    14·2 answers
  • What is a geotag?
    10·1 answer
  • Compare the specialized and statistical functions in excel
    10·1 answer
  • In a speech at a research conference, a computer expert stated that shopping centers would become obsolete in the future. He bel
    8·1 answer
  • One way to prepare for filing the PROFILE is to:
    12·2 answers
  • Why is it important to recognize web adress endings ?
    13·1 answer
  • 5. How would you describe the relationship between blocks of code and commands?​
    14·2 answers
  • Portfolio Activity: Writing a Résumé
    5·1 answer
  • PLEASE HELP!!!
    11·2 answers
  • A consumer wants to add a hard drive to their computer to store video from their camera. Which of the following would represent
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!