Question: Create a C# console application based on your algorithm, after you test your app. a) Name: Display Numerical Value Variables: Input: num (int) Output: prevNum

Create a C# console application based on your algorithm, after you test your app.

a) Name: Display Numerical Value

Variables:

Input: num (int)

Output: prevNum (int), nextNum (int)

START

Read num

Set prevNum = num - 1

Set nextNum = num + 1

Display "The previous number is: " + prevNum

Display "The next number is: " + nextNum

END

b) Name: Calculate Arithmetic Operations

Variables:

Input: num1 (int), num2 (int)

Output: sum (int), difference (int), product (int), quotient (int)

START

Read num1

Read num2

Set sum = num1 + num2

Set difference = num1 - num2

Set product = num1 * num2

Set quotient = num1 / num2

Display "The sum is: " + sum

Display "The difference is: " + difference

Display "The product is: " + product

Display "The quotient is: " + quotient

END

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!