Suppose the subprogram header is changed to the following: Subprogram Sub(Integer Num1 As Ref,Integer Num2) If code
Question:
Suppose the subprogram header is changed to the following:
Subprogram Sub(Integer Num1 As Ref,Integer Num2)
If code corresponding to the new pseudocode is run, what is the output now?
Transcribed Image Text:
Main Declare X As Integer, Y As Integer Set X = 1 Set Y = 2 Call Sub(X, Y) Write X Write Y End Program Subprogram Sub(Integer Numl, Integer Num2 As Ref) Declare X As Integer Set Numl = 3 %3! Set Num2 = 4 %3! Set X = 5 Write X End Subprogram
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 57% (7 reviews)
Answered By
JAPHETH KOGEI
Hi there. I'm here to assist you to score the highest marks on your assignments and homework. My areas of specialisation are:
Auditing, Financial Accounting, Macroeconomics, Monetary-economics, Business-administration, Advanced-accounting, Corporate Finance, Professional-accounting-ethics, Corporate governance, Financial-risk-analysis, Financial-budgeting, Corporate-social-responsibility, Statistics, Business management, logic, Critical thinking,
So, I look forward to helping you solve your academic problem.
I enjoy teaching and tutoring university and high school students. During my free time, I also read books on motivation, leadership, comedy, emotional intelligence, critical thinking, nature, human nature, innovation, persuasion, performance, negotiations, goals, power, time management, wealth, debates, sales, and finance. Additionally, I am a panellist on an FM radio program on Sunday mornings where we discuss current affairs.
I travel three times a year either to the USA, Europe and around Africa.
As a university student in the USA, I enjoyed interacting with people from different cultures and ethnic groups. Together with friends, we travelled widely in the USA and in Europe (UK, France, Denmark, Germany, Turkey, etc).
So, I look forward to tutoring you. I believe that it will be exciting to meet them.
3.00+
2+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Suppose the subprogram header is changed to the following: Subprogram Sub(Integer Num1,Integer Num2) If code corresponding to the new pseudocode is run, what is the output now? Main Declare X As...
-
What is the output of code corresponding to the following pseudocode if the users name is Sammy? Declare Dash As Character Declare Count As Integer Declare Number As Integer Declare Name As String...
-
What is the output of code corresponding to the following pseudocode if the user inputs 2, 3, 4, 5? = 0 Write Sums [Count] Set Count = Count - 1 End While
-
Peter, Emma, and Kyler played chess with each other. Peter won 4 games and lost 2 games. Emma won 3 games and lost 3 games. If Kyler lost 3 games, how many games did he win?
-
Locate page 291 of volume 551 of the United States Reports. What is the citation of the case? When was it decided? Who wrote the opinion? What was the First Amendment issue? Were there any concurring...
-
Find the solution of the exponential equation, rounded to four decimal places. 27x+1=7x-2
-
For testing H0 : 1 = 2 versus H1: 1 2, we observe s1 = 9.3, s2 = 2.1, n1 = 6, and n2 = 13. Test at the significance level = 0.05. a. Find the critical value. b. Do you reject H0?
-
The following are typical questions that might appear on an internal control questionnaire for payroll activities: 1. Is there adequate separation of duties between employees who maintain human...
-
Section B Answer all the questions in this section Question 21 (17 marks) The following information taken from Fremantle Consultancy Service Fremantle Consultancy Service Trial Balance (extract) as...
-
X Ltd. has 10 lakhs equity shares outstanding at the beginning of the accounting year 2016. The appropriate P/E ratio for the industry in which D Ltd. is 8.35. The earnings per share is Rs. 15 in the...
-
a. Abs(0) b. Abs(1.5) Give the value returned by the built-in function.
-
What is the output of this program if code corresponding to this pseudocode is run? Main Declare X As Integer, Y As Integer Set X = 1 Set Y = 2 Call Sub(X, Y) Write X Write Y End Program Subprogram...
-
Why do FIs in the United States face a higher degree of international technology risk than do the FIs in other countries?
-
Suppose the government knows the optimal quantity of pollution as well as how much it costs a particular polluting firm to reduce pollution at each quantity. If this is all the information the...
-
Wendy Brooks prepares her own income tax return each year. A tax preparer would charge her $185 for this service. Over a period of 8 years, how much does Wendy gain from preparing her own tax return?...
-
Suppose that the Department of Ed offers to either pay $25 of each science textbook the school purchases or to donate 100 free paint and brush sets to the school. What does the school budget...
-
es The income statement for the Sports Car Tire Company is given below. THE SPORTS CAR TIRE COMPANY Sales $20,000 Less: Cost of goods sold 9,000 Gross profit 11,000 Less: Selling and administrative...
-
How might you prioritize and develop your leadership style in a start-up culture? Embrace a humanistic leadership style after two years in business Be willing to prioritize your customers Work longer...
-
With the growing popularity of casual surf print clothing, two recent MBA graduates decided to broaden this casual surf concept to encompass a "surf lifestyle for the home." With limited capital,...
-
Interest Compounded Annually. When P dollars is invested at interest rate i, compounded annually, for t years, the investment grows to A dollars, where A = P(1 + i) t . Trevor's parents deposit $7800...
-
An organization is granted the block 130.56.0.0/16. The administrator wants to create 1024 subnets. a. Find the number of addresses in each subnet. b. Find the subnet prefix. c. Find the first and...
-
Can router R1 in Figure 18.35 receive a packet with destination address 140.24.7.194? What will happen to the packet if this occurs? Figure 18.35 Figure 18.35 Longest mask matching 140.24.7.0/26...
-
Assume router R2 in Figure 18.35 receives a packet with destination address 140.24.7.42. How is the packet routed to its final destination? Figure 18.35 Figure 18.35 Longest mask matching...
-
4 2 The rank of the matrix 5 k (1-x) 1 6 3 (1+x) 4 2 (1-x) 1 5 k 6 3 (1+x) is 1. then 1
-
Adams Manufacturing Company established the following standard price and cost data. Sales price Variable manufacturing cost Fixed manufacturing cost Fixed selling and administrative cost $ 8.10 per...
-
How do advancements in technology and automation affect organizational structure, employee roles, and overall workplace dynamics?
Study smarter with the SolutionInn App