Purchase Solution

Looping problem in C program code

Not what you're looking for?

Ask Custom Question

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.

Purchase this Solution

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.

Solution Preview

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

Purchase this Solution

Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.