View the step-by-step solution to:

# If 0, display only "Hello World".

Make a program that will accept an integer and execute one of the following based on the input using IF statements:

If 0, display only "Hello World".

If 1, display only "I am Groot".

If 2, display only "To the Top".

If 3, display only "Where is the horizon".

If 4, display only "I do not know".

If none of the above, display only "Yeah, I will.".

Write a program that will accept an integer and execute one of the following based on the input using SWITCH statements:

If 0, display only "Hello World".

If 1, display only "I am good".

If 2, display only "To the Top".

If 3, display only "Where is the horizon".

If 4, display only "I do not know".

If none of the above, display only "Yeah, I will.".

Write a program that will divide the two floating points entered by the user (first number entered divided by the second number entered). Make sure your application handles all possible scenarios with floating points.

What can you conclude from this activity?

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents