subject
Computers and Technology, 28.11.2020 08:40 daisa02

Write a program that asks the user to enter 2 words, then prints "Great!" if the two words are identical, "Close enough" if they are the same length and all but the last letter matches, and "Try again" otherwise. Sample runs:

Enter 2 strings:
the
the
Great!
Enter 2 strings:
that
than
Close enough
Enter 2 strings:
their
there
Try again
Hint - for the "Close enough" condition you will need to see whether substrings of the two input String are the same. You can use the length and substring methods together to get the relevant substrings (all but the last character of each String).

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Eva has many contacts on the professional networking site she uses which contacts are considered second degree
Answers: 3
question
Computers and Technology, 23.06.2019 11:30
Me dangers of social media and the internetexplain what each means: 1) social media and phones have become an addiction.2) outside people have access to you all the time.3) cyberstalking4) cyberbullying5) catphishing6) viruses7) identity theft8) credit card fraud9) hacking10) money schemes
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
question
Computers and Technology, 23.06.2019 21:20
For positive constants a and b, the force between two atoms in a molecule is given f(r) = −a r2 + b r3 , where r > 0 is the distance between the atoms. note: a and b are upper case letters. (a) find f '(r) = (b) find the critical point for f(r). r = (c) find f ''(r) = (d) find the value of r so that f ''(r) = 0.
Answers: 1
You know the right answer?
Write a program that asks the user to enter 2 words, then prints "Great!" if the two words are ident...
Questions
question
Mathematics, 19.04.2021 21:20
question
Mathematics, 19.04.2021 21:20
question
Arts, 19.04.2021 21:20
question
Mathematics, 19.04.2021 21:20