Explore BrainMass
Share

Looping problem in C program code

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

I have written the attached code which validates my entries and exits the program whether the entries are correct or not. What I am having problems with is looping back to make another location choice or re-enter a valid choice and to be able to re-enter a valid number for the sales amount when not valid.

© BrainMass Inc. brainmass.com October 16, 2018, 11:30 pm ad1c9bdddf
https://brainmass.com/computer-science/programming-languages/looping-problem-clanguage-program-code-260305

Attachments

Solution Preview

Code in attachment 260305.c has three loops inserted in your test.c code to handle the three ...

Solution Summary

Solution inserts three loops in given code to handle the three situations - making another location choice, re-entering a location choice when invalid, and re-entering a sales amount when invalid.

$2.19
Similar Posting

C++ Program: Example Problem

List two problems in implementing a C++ loop, and describe solutions to these problems?

View Full Posting Details