Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

What are the four fields in the ARP cache?

Answered: 1 week ago

Question

=+j Describe the various support services delivered by IHR.

Answered: 1 week ago