Question: Practice for Chapter 2 Create a project named Swap Numbers on Visual Studio. In the Main ( ) method, follow the steps below to complete

Practice for Chapter 2
Create a project named Swap Numbers on Visual Studio. In the Main() method, follow the steps below
to complete the program.
Read in two double numbers - Num1 and Num2. Assume Num1=100.5, and Num2=200.9.
Print out the following message on screen:
Before swapping, Num1 is 100.5, and Num2 is 200.9 initially.
You must use method WriteLine() with string interpolation for this.
Swap these two numbers. Therefore, Num 1 is 200.9 and Num 2 is 100.5.
Then Print out the following message on screen:
After swapping, Num1 is 200.9, and Num2 is 100.5.
Save the project and then submit it on Canvas before the class is dismissed.
Example for how to swap two numbers:
(a, b, and temp are variables)
temp =a;
a=b;
b= temp;
Output Example:
 Practice for Chapter 2 Create a project named Swap Numbers on

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!