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
alina1380 [7]
3 years ago
7

Python

Computers and Technology
1 answer:
yanalaym [24]3 years ago
5 0

Let us consider that there are 3 variables “first” to store the content of variable whose value is larger as per the given example in the question, a variable called “name1” to get the first string and “name 2” to get second string. We must run a simple for loop to achieve the result.

if name1>name2

first =name1

else  

first=name2

So here like numbers, strings are checked to find which is largest and assigns accordingly. Thus the task is accomplished.

You might be interested in
Develop a program so that the output will produce the following :
hammer [34]

Answer:

 #include <iostream>

using namespace std;

int main()

{

  float radius = 5.4;

  float circumference = 2 * 3.14 * radius;

  float area = 3.14 * radius * radius;

 

  cout<<"the circumference of the circle is "<<circumference<<endl;

  cout<<"the area of the circle is "<<area<<endl;

  return 0;

}

Explanation:

Include the library iostream for using the input/output instructions.

create the main function and define the variable with value. Then,

use the formula to calculate the circumference and are of circle.

circumference = 2*\pi *radius

area = \pi * radius^{2}

here, choose \pi = 3.14

after that, display the result.

Note: All variable define in float type.

4 0
3 years ago
What is CPU<br>and it's functions<br>​
BartSMP [9]

Answer:

CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer

5 0
3 years ago
Read 2 more answers
Dеclarе and allocatе mеmory (on thе hеap) for a two-dimеnsional array of strings namеd carMakеs with 20 rows, еach with 6 column
Lena [83]

Answer:

string ** carMakes=new string*[20];  

   for(int i=0;i<20;i++)

   {

       carMakes[i]=new string[6];

   }

Explanation:

The above written piece of code is in C++ and it will declare and allocate memory on the heap for a 2-D array of strings with the number of rows 20 and number of columns 6 with name of the array carMakes.

To declare a 2-D array in C++ we use new keyword.

4 0
3 years ago
Which of the following identifies your location in a document? I-beam Icon Insertion Point Pointing Arrow
Delicious77 [7]
The answer is Insertion Point. In Microsoft Word, the insertion point is the blinking vertical line in the document. It will identify the location where you can enter or alter text on the page. When creating a new document, the insertion point is located in the top-left corner of the document. 
8 0
3 years ago
4. Extrusion tools in Blender® duplicate vertices while keeping the geometry connected with the original vertices. (1 point)
butalik [34]
Hey user

l think it is true
7 0
4 years ago
Other questions:
  • The ____ loop stops when the loop has processed every element in an array.?
    7·1 answer
  • Which are the common database operations that can help organize data for easy retrieval?
    13·1 answer
  • The underline format will underline what?
    9·2 answers
  • To determine what to study, one should first
    8·1 answer
  • why might a portrait be both a portrait of the subject and the photographer? how is a photographer present in a portrait?
    10·2 answers
  • What are some “creatures/animals” that Rex imitates?
    14·1 answer
  • Discuss how the Internet has made our communication hypertextual, omnidirectional, and more interactive
    6·1 answer
  • What one main difference between social media and traditional media such as television?
    12·2 answers
  • Power supply, keyboard, monitor, mouse,ROM,CPU are belongs to Output, Input or Storage device​
    7·1 answer
  • What are the features of the title bar for the Microsoft word application?​
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!