This is my homework assignment
3.17 (Digit Extraction) Complete an application that allows the user to input a five-digit number. Your application should then separate the number into its individual digits and display on a separate line each digit.
1. Define a variable to store user input, including appropriate comments.
2. Prompting the user for and storing a number. Prompt the user for a number and use cin to place the value in the variable you defined in the preceding step.
3. Display each digit separately. [Hint: You can use the % operator to extract the ones digit from a number. For instance, 12345 % 10 is 5. You can use division (/) to peel off digits from a number. For instance, 12345 / 10 is 1234. This allows you to treat the 4 in 12345 as a ones digit. Now you can isolate the 4 by using the % operator. Apply this technique to the rest of the digits.]
4. Save, compile and run the completed application. Type 12345 at the Enter five-digit number: prompt. Ensure that the output appears as shown in Fig. 3.29 in your text.
I am so lost right now. Our last homework assignment wat the simple "Hello World" program, which I understood. Now, i'm completely lost.
I do not understand how to get started (Step 1), and if someone could help me you would save my day. Ive been trying various things for a couple hours and have nothing to show.