Question: Create a method called whatTypeOfPedalCycle ( ) The mthod should take an int. The method should return a String based on the int that was

Create a method called whatTypeOfPedalCycle() The mthod should take an int. The method should return a String based on the int that was provided. If the int is 1, return unicycle, if the int is 2 return, bicycle, if the int is 3 return tricycle. if the int is anything else, return error. Use the method in your main method at least 5 times.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!