Create a program that solves the following logicalsituation: A snail begins clim
ID: 3615924 • Letter: C
Question
Create a program that solves the following logicalsituation:
A snail begins climbing up from the bottom of a thirty-foot deepwell. The snail can climb up three feet each hour. However, thesnail gets so tired from the effort that at the end of the hour itslips down two feet. How long will it take the snail to get out ofthe well?
Java...i'm only a beginner please help!! thank you!
Create a program that solves the following logicalsituation:
A snail begins climbing up from the bottom of a thirty-foot deepwell. The snail can climb up three feet each hour. However, thesnail gets so tired from the effort that at the end of the hour itslips down two feet. How long will it take the snail to get out ofthe well?
Java...i'm only a beginner please help!! Create a program that solves the following logicalsituation:
A snail begins climbing up from the bottom of a thirty-foot deepwell. The snail can climb up three feet each hour. However, thesnail gets so tired from the effort that at the end of the hour itslips down two feet. How long will it take the snail to get out ofthe well?
Java...i'm only a beginner please help!! thank you!
Explanation / Answer
please rate - thanks import java.util.*; public class untitled { public static void main(String []args) { int hole=0,hour=0; do {hole+=3; hole-=2; hour++; }while(holeRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.