Question: In this program, you will compare three strings and display them from the smallest to the largest. In order to do that, you need
In this program, you will compare three strings and display them from the smallest to the largest. In order to do that, you need to (1) create a class called Homework3_1 (2) ask the user to enter three string literals, and store them in string objects (3) compare and display three strings Here are some examples: Example 1: Input: "Grass Hopper","Spotted Lantern Fly","Lady Bugs" Output: Grass Hopper, Lady Bugs, Spotted Lantern Fly Example 2: Input: "Anaconda", "Viper", "Python" Output: Anaconda, Pythons, Viper Example 3: Input: "T-Rex", "Brachiosaurus", "Spinosaurus" Output: Brachiosaurus, Spinosaurus, T-Rex
Step by Step Solution
3.34 Rating (148 Votes )
There are 3 Steps involved in it
class Homework31 def initself selfstrings def inputstring... View full answer
Get step-by-step solutions from verified subject matter experts
