Question: How to enter a while loop program that asks a user to enter their name and then input the number of steps they have walked

How to enter a while loop program that asks a user to enter their name and then input the number of steps they have walked in a day. The programmer then must ask them if they would like to continue. If they input "yes" the programmer must ask them to enter another number of steps walked. The programmer must then ask if they want to continue. If they input anything other than "yes" the program should be ended by telling them "goodbye", entering the user's name, and inputting the total number of steps they have entered.

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!