Reference no: EM133516082
Chapter - Looping
Discussion 1 - Difference Between the For and For Each Loop
Write a 200 word post to describe
• For loop statement in C#
• For each loop statement in C#
• Difference between for, for each, and while loops
Assignment - Develop a Message Printing Program Using For and While Loop
Create a console application project
1 Ask user for input with message 'Please enter a number' J
2 Accept user input in an integer variable
3 Use the for loop statement to print out this message as many times as the number that user input. (In this example, the user entered the number 20.)
4 Ask user if they want to continue with the message "Do you want to continue (y/n)?„
5 Use the while loop to allow user to repeat steps from 1-6 if the user enters "y." If the user enters any other answer, end the program
6 Write an APA paper that explains your development process that includes:
a. Identify any roadblock or challenge encountered during the development.
b. How did you go about solving any roadblock or challenge you faced?
c. Describe each line of code in your console application program cs file, its function and reasons for existence.
d. Provide a screen shot of program results (the console application black screen).
7 Zip the entire project solution along with your APA paper and put it in Drop Box 10.1.