The answers are given in the box. Just please show the calculations/solutions Determine the values of X and Y after each set of code. If your answer has multiple values, separate each answer by one "+" character, e.g. 1+2+3+4. Write "E" if the code provided will result to an error. >a<- seq(4.5, 2.5, -0.75) >x<- sum(1+2*a%/%2) >y<- matrix (4:7, nrow-3, ncol=4, byrow=true) >print(x) #x= 11 >print(y) #the 2nd row value(s) from left to right resulting from print(y) is/are: E
The answers are given in the box. Just please show the calculations/solutions Determine the values of X and Y after each set of code. If your answer has multiple values, separate each answer by one "+" character, e.g. 1+2+3+4. Write "E" if the code provided will result to an error. >a<- seq(4.5, 2.5, -0.75) >x<- sum(1+2*a%/%2) >y<- matrix (4:7, nrow-3, ncol=4, byrow=true) >print(x) #x= 11 >print(y) #the 2nd row value(s) from left to right resulting from print(y) is/are: E
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter4: The Selection Structure
Section: Chapter Questions
Problem 2MQ2
Related questions
Question
The language used was R
![The answers are given in the box. Just please show the calculations/solutions
Determine the values of X and Y after each set of code. If your answer has multiple values,
separate each answer by one "+" character, e.g. 1+2+3+4. Write "E" if the code provided will
result to an error.
>a<- seq(4.5, 2.5, -0.75)
>x<- sum(1+2*a%/%2)
>y<- matrix (4:7, nrow-3, ncol=4, byrow=true)
>print(x)
#x= 11
>print(y)
#the 2nd row value(s) from left to right resulting from print(y) is/are: E](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb56883aa-f43b-4c30-ab85-0f3a432198e4%2Fc447ec7f-b396-4456-9786-ad6e1fa44f65%2F4lglnu_processed.jpeg&w=3840&q=75)
Transcribed Image Text:The answers are given in the box. Just please show the calculations/solutions
Determine the values of X and Y after each set of code. If your answer has multiple values,
separate each answer by one "+" character, e.g. 1+2+3+4. Write "E" if the code provided will
result to an error.
>a<- seq(4.5, 2.5, -0.75)
>x<- sum(1+2*a%/%2)
>y<- matrix (4:7, nrow-3, ncol=4, byrow=true)
>print(x)
#x= 11
>print(y)
#the 2nd row value(s) from left to right resulting from print(y) is/are: E
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,