Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I'm having trouble organizing my code and want to compare my code with another source. Thank you. 4. (40 points) Write a C# program according
I'm having trouble organizing my code and want to compare my code with another source. Thank you.
4. (40 points) Write a C# program according to the following specifications (pseudocode): 1. Declare two variables named num, to hold an integer, and name, to hold a string 2. Declare another variable named Num, to hold an integer. Declare any other variables that you consider necessary. 3. Write one statement to print the following pattern: 22A. 4. Write a statement to prompt the user to enter an integer then write another statement that will read input into num. 5. Display the digits of num, on separate lines as shown below. Assume the user always enters a 3digit number, such as 123. For this input the output should be 6. Use num and appropriate arithmetic operations to create three new integers as shown below: nl = 12 77 a 2digit number using the first and the second digit of num n2 = 23 // a 2digit number using the second and the third digit of num n3 = 13 77 a 2digit number using the first and the last digit of num 7. Use num and appropriate arithmetic operations to create rNum, the reverse of num For instance, if num = 123, rNum = 321. 8. Display the new numbers with description: nl, n2, n3, rnum 9. Write a statement to prompt the user to enter a name, such as "Ann" then write another statement that will read input into name. 10. Display "Have a good day Ann!" using the string variable name. // Please write your program on the next pageStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started