Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 page

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

How is benefit selection related to brand attitude?

Answered: 1 week ago