Quantcast
Processing math: 100%

String Compare

Last modified by
on
Jul 25, 2023, 4:54:34 PM
Created by
on
Jun 12, 2023, 1:42:45 PM
C=(S1,S2)
(S1)String 1
(S2)String 2
Tags
UUID
03404fab-0927-11ee-b65f-bc764e203090

The String Compare equation examines two given strings to see if they are equal to each other.

INSTRUCTIONS: Enter the following

  • (S1) String 1
  • (S2) String 2

Compare Result (C): The equation will return a message stating whether or not the strings match.

  • If the string length does not match > "Strings are not the same length"
  • If the string length does match but the characters are not equal > "The strings do not match starting at character ___"

 

COMMON PROBLEMS:

  • Spaces and other whitespace characters will be counted as characters
  • Punctuation will be counted as characters

 

EXAMPLE:

  • S1 = carrot
  • S2 = carret
  • C = "The strings do not match starting at character 5"

C

A R R E T
1 2 3 4 5 6

 


String Manipulation Equations:

 


This equation, String Compare, is used in 1 page
  • Comments
  • Attachments
  • Stats
No comments
This site uses cookies to give you the best, most relevant experience. By continuing to browse the site you are agreeing to our use of cookies.