1. Please create an array of size 3x3 with the values shown below. At the same time, the user will key in the x- and y-position and the program should output the value in that position.

[
2.3 5.2 2
0 −1.5 2.7
0 3 1.8
]
**************************
Example Input:
X-Position? 2
Y-Position? 1
Example Output: X=2 and Y=1:
The value is 3.
**************************

2. Please create an array of size 3x3 with the values shown below. By inputting two sets of X- and Y-Position, the value for these two positions should exchange. Use the program in Q.1 to check your answer.

[
2.3 5.2 2
0 −1.5 2.7
0 3 1.8
]
**************************
Example Input:
Data Set 1, X-Position? 2
Data Set 1, Y-Position? 1
Data Set 2, X-Position? 1
Data Set 2, Y-Position? 1
Example Output:
X=2 and Y=1: The old value was 3 and now it is 0.
X=1 and Y=1: The old value was 0 and now it is 3.
**************************
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.