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, 23.06.2019 08:00
What is a scenario where records stored in a computer frequently need to be checked
Answers: 2
question
Computers and Technology, 23.06.2019 12:50
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
In a heat transfer course, we can derive the equation for the temperature distribution in a flat rectangular plate. in this example, we will look at a plate at steadystate with three sides being held at t1, and one side held at t2. the temperature for any location on the plate, t(x,y), can be calculated by where create a function (prob3_5) that will take inputs of vectors x and y in feet, scalar n, scalars l and w in feet and scalars t1 and t2 in degrees fahrenheit. it will output a matrix t which is the temperature of each x and y locations. t will have the number of columns equal to the number of elements in x and rows equal to the number of elements in y. though this can be done without loops (perhaps more efficiently), your program must use a nested loop.
Answers: 2
question
Computers and Technology, 25.06.2019 19:30
The next button and the review section shows the a. next available comment b. next slide with no comment c. previous comment d. edit comment
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, 20.11.2020 20:40
question
Mathematics, 20.11.2020 20:40
question
Mathematics, 20.11.2020 20:40
question
Mathematics, 20.11.2020 20:40
question
Mathematics, 20.11.2020 20:40
question
Social Studies, 20.11.2020 20:40
question
Mathematics, 20.11.2020 20:40
Questions on the website: 13722367