Pseudocode Flowchart Write Application Uses String Method Compareto Compare Two Strings In Q37032330

in pseudocode and/or flowchart, write an application that usesString method compareTo to compare two strings input by the user.Outputs whether the first string is less than, equal to or greaterthan the second.


Solution


Flowchart:

Start Read two strings into strA, strB strA.compareTo(strB) Print strA is equal to strB Print strA is greater than strE Stop

Start Read two strings into strA, strB strA.compareTo(strB) Print strA is equal to strB Print strA is greater than strE Stop

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.