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
AleksAgata [21]
3 years ago
12

Write a program that uses the function strcmp() to compare two strings input by the user. The program should state whether the f

irst string is less than, equal to, or greater than the second string7. Write a program that uses the function strcmp() to compare two strings input by the user. The program should state whether the first string is less than, equal to, or greater than the second string
Computers and Technology
1 answer:
Andru [333]3 years ago
3 0

user_str1 = str ( input ("Please enter a phrase: "))

user_str2 = str ( input("Please enter a second phrase: "))

def strcmp (word):

user_in1 = int (len(user_str1))

user_in2 = int (len(user_str2))

if user_in1 > user_in2:

return "Your first phrase is longer"

elif user_in1 < user_in2:

return "Your second phrase is longer"

else:

return "Your phrases are of equal length"

You might be interested in
What are some advantages and disadvantages to flooded coolers?
aliya0001 [1]
Advantage is that the refrigerant distrubing in the evaporator will reduce and disadvantage is that the distribution of evaporator will increase
5 0
4 years ago
I need help! Please please
Scorpion4ik [409]

The correct answers are given as:

  1. Turning the lens dial clockwise
  2. Manual settings
  3. Tone
  4. File format
  5. JPEG or RAW

The given questions had to do with taking photos, photography, and the likes and how lenses are used to capture images, and file formats are used to select the size and quality of images.

<h3>What is Photography?</h3>

This refers to the art of taking pictures in a background in a bid to make still images.

Hence, we can see that The correct answers are given:

  1. Turning the lens dial clockwise
  2. Manual settings
  3. Tone
  4. File format
  5. JPEG or RAW

The given questions had to do with taking photos, photography, and the likes and how lenses are used to capture images, and file formats are used to select the size and quality of images.

Read more about photography here:

brainly.com/question/13600227

#SPJ1

6 0
1 year ago
Which of the following does Moore's law predict?
Korolek [52]

Answer:

Hi!

The correct answer is the a.

Explanation:

The Moore's law is an a empirical law that Gordon Moore predicted doing some observations about how the density of the transistors on a integrated circuit was increasing over time.

For example, this law state that if you have an integrated circuit with: 1000 transistors in 1980 then in 1981 and six months later you will have the same integrated circuit with 2000 transistors, and so on..

  • Jan 1980: 1000 transistors.
  • Jul 1981: 2000 transistors.
  • Jan 1983: 4000 transistors.
  • Jul 1984: 8000 transistors.

And that's the reason because its cost will fall too.

7 0
3 years ago
Sophia's plays her favorite game on her phone, where the game uses the phone's
nirvana33 [79]

Answer:

Augmented Reality

Explanation:

Augmented reality is a camera to overlay images on real-world scenery. Basically what the Pokemon GO app does.

8 0
1 year ago
Select the correct answer..
kicyunya [14]

Answer:

A mid shot or medium shot

Explanation:

4 0
3 years ago
Other questions:
  • Can't find the right year for this. (Attachment)
    6·1 answer
  • HELP URGENT
    12·2 answers
  • "_____ devices improve memory by encoding items in a special way."
    13·1 answer
  • A ______ or workstation computer is typically used by one or a small number of people to perform everyday productivity tasks, su
    10·1 answer
  • How are XY coordinates utilized in construct ?
    15·1 answer
  • The measure means to determine the exact size, amount, or distance of something
    11·1 answer
  • On tool hackers use to get sensitive information from victims is/are:
    15·2 answers
  • As you explore career options why is it important to take personal inventories and assessments
    5·2 answers
  • What is a smaller loop statement that can appear on the same line of code?
    10·2 answers
  • Which directory stores the cron configuration file?.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!