I am trying to change a program from an IF loop to a WHILE loop. The program started in Ch.05. It was modified in Ch.06 to an IF loop & now must be changed to a WHILE.
I got it down to 2 errors and am totally lost. Maybe a fresh set of eyes can point me in the right direction?
I've attached all 3 so you may see the progression.
Any assistance is greatly appreciated.
mikev9359
0
Newbie Poster
Recommended Answers
Jump to PostYou are pretty close. The errors are because you still have mismatched braces on the loop blocks. You left the do() statement in, which is messing up your while() block. Walk through the flow of that while() block and you'll see that you need to prompt for another customer name …
Jump to PostI'd suggest you post this in a new thread rather than bouncing up an only slightly-related one from two years ago. When you do that, you might want to me a little more specific about what you want to do, and show us what you've tried and what's not working …
All 6 Replies
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
mikev9359
0
Newbie Poster
bobbyfischer
0
Newbie Poster
jon.kiparsky
326
Posting Virtuoso
bobbyfischer
0
Newbie Poster
jon.kiparsky
326
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.