C++ Program Repetition Homework

Need help with this assignment, thank you!! :)


Objectives:
To learn to code, compile and run a program containing REPETITION structures

Assignment:
Develop a program to analyze one or more numbers entered by a user. The user may enter one or more numbers for analysis. A number is a multiple of 9 if the sum of its digits is evenly divisible by 9. Determine if a number is a multiple of 9 by adding together the individual digits of the number and determining if the sum of the digits is evenly divisible by 9.

Input should be limited to numbers from 1 through 1000. Check your solution with valid and invalid data. Use good program design, efficient code, and document your code with explanatory comments throughout.

Use good program design, efficient code, and document your code with explanatory comments throughout.

BE SURE TO INCLUDE ADEQUATE ERROR HANDLING IN YOUR PROGRAM AND ERROR DATA WHEN YOU RUN THE PROGRAM TO DEMONSTRATE ERROR HANDLING.

Input:
One or more numbers entered by user.

Output:

The input number, the sum of its digits and whether the number is a multiple of 9 or not.

Note:
Adequately check entered data for validity. Use adequate test data to process all valid data and representative data to show how your program handles invalid data.

Label all output clearly. Be sure your output file contains user prompts and what was entered by the user in addition to the results of your program processing.
Last edited on
This is not a homework site. We won't do your homework for you. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again. As it is impossible to find derivative of function without knowledge in arithmetic, you cannot do more complex tasks in programming without clear understanding of basics
Topic archived. No new replies allowed.