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
A student is going to give a multimedia presentation comparing the novel The Wizard of Oz by L. Frank Baum to the 1939 movie ver
Alekssandra [29.7K]

Answer:

C.

Explanation:

A line graph can show how both the movie and the novel are compared to each other. It can give a visual of both mediums of the story rather than one or the other. Hope this helped :)

3 0
3 years ago
Read 2 more answers
How can you make your web page accessible to anyone in the world?
GarryVolchara [31]

Answer:

Choose a content management system that supports accessibility.

Use headings correctly to organize the structure of your content.

Include proper alt text for images.

Give your links unique and descriptive names.

Use color with care.

Design your forms for accessibility.

8 0
3 years ago
What are advantages of using document templates?
Sergeeva-Olga [200]

The benefits of using templates. Creating new documents for every opportunity your company approaches can waste valuable time and money. Instead, focus on original, internal templates that can be utilized for a variety of projects, including enterprise communications, as well as customer projects

4 0
3 years ago
Read 2 more answers
Which of the following function declarations correctly expect an array as the first argument?
NARA [144]

Answer:

Only

Option: void f1(float array[], int size);

is valid.

Explanation:

To pass an array as argument in a function, the syntax should be as follows:

functionName (type arrayName[ ] )

We can't place the size of the array inside the array bracket (arrayName[100]) as this will give a syntax error. The empty bracket [] is required to tell the program that the value that passed as the argument is an array and differentiate it from other type of value.

3 0
4 years ago
What is Logic and Emotion?
m_a_m_a [10]
Logic is Strict principles of validity (reasoning)

Emotion is the natrual instinctive feeling from reasoning or knowledge.

Hope this helps! ^0^ <span />
8 0
3 years ago
Read 2 more answers
Other questions:
  • In the middle of the iteration, how should a team handle requirement changes from the customer? (1 correct answer)
    7·2 answers
  • Importance of word processing application​
    15·1 answer
  • What is the purpose of creating a primary key in a database
    14·1 answer
  • An example of a _________________ impact is when a consumer wants to buy a product on the internet but is afraid the company won
    8·2 answers
  • What is the definition of a flowchart? *
    13·1 answer
  • A user calls and complains that she cannot access important company files from her personal device. You confirm that Intune poli
    13·1 answer
  • When is the greatest risk of damage from electrostatic discharge?
    7·2 answers
  • When documenting one author in reference in a text, which is correct?.
    7·1 answer
  • Where can i check on an acer chromebook to see what version of java is installed.
    13·1 answer
  • If you give someone ______ to your device, they can control it through another phone or computer.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!