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
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