what is the output of capitalPI(7,3,2) 1. function capitalPi (a, b,c : integer) integer; 2. var 3.
Fantastic news! We've Found the answer you've been seeking!
Question:
what is the output of capitalPI(7,3,2)
Transcribed Image Text:
1. function capitalPi (a, b,c : integer) integer; 2. var 3. i, tmp := integer; 4. begin tmp:=0; for i:=1 to a do 5. 6. tmp := tmp + b; a := tmp; 7. 8. 9. for i:= 1 to a do tmp := tmp + c; capitalPi := tmp; 10. 11. 12. end; 1. function capitalPi (a, b,c : integer) integer; 2. var 3. i, tmp := integer; 4. begin tmp:=0; for i:=1 to a do 5. 6. tmp := tmp + b; a := tmp; 7. 8. 9. for i:= 1 to a do tmp := tmp + c; capitalPi := tmp; 10. 11. 12. end;
Expert Answer:
Related Book For
Essentials of Contemporary Management
ISBN: ?978-0077439477
5th edition
Authors: Gareth Jones, Jennifer George
Posted Date:
Students also viewed these programming questions
-
What is the output of the organization?
-
What is the output of this program? class output { public static void main(String args[]) { StringBuffer s1 = new StringBuffer("Hello"); s1.setCharAt(1,x); System.out.println(s1); } } a) xello b)...
-
What is the output of an XSLT processor?
-
Name the types of consumer decision-making processes. List some products you have bought using each type. Have you ever bought a product on impulse? If so, describe the circumstances.
-
Determine the order of reactivity for (CH3)2CHCH2Br, (CH3)3CBr, and in substitution reactions with a. Sodium cyanide. b. 50% aqueous acetone. CH CHCH2CH3 Br
-
To what extent is culture manageable? Changeable?
-
Consider a binomial model with three dates as introduced at the end of Sect. 6.3 (with \(t \in\{0,1,2\}\) ) and a contingent claim with payoff \(f\left(s_{2} ight)\), where \(s_{2}\) denotes the...
-
Selected condensed data taken from a recent balance sheet of Heidebrecht Inc. are as follows. HEIDEBRECHT INC. Balance Sheet (partial) Cash ............. $ 8,041,000 Short-term investments ......
-
i would like to understand what proximity managment means ? and ales need to describe proximity management as a behavioural support strategy.
-
1. Using the information in the table, compute the structure of the optimal portfolio W when there are two risky assets, bond fund and stock fund, as well as one risk free asset. r=0.03. Please note...
-
Oriole Company manufactures dog food for distribution in Washington, Oregon, and California. A dog food distriutor from Florida has approached Oriole and offered to purchase 245000 pounds of dog food...
-
According to an article in the Wall Street Journal, Cyclical sectors such as tech typically lead in the second year of a bull market, which is on track for the beginning of March. a. What is a bull...
-
When Facebook first began selling shares of stock to the public, the price for its initial public offering (IPO) was $38 per share. After a few days of trading, the price fell to $20 per share. An...
-
A trader enters into a short forward contract on 100 million yen. The forward exchange rate is \(\$ 0.0090\) per yen. How much does the trader gain or lose if the exchange rate at the end of the...
-
An article in the Wall Street Journal states, Gasoline futures are falling, which could point to a drop in prices at the pump down the line. a. What does it means to say that futures are falling? b....
-
An article in the Wall Street Journal noted that All Nippon Airways had reduced its oil hedging to around 40% this fiscal year from 60% in the last fiscal year in a bid to capture the lower spot...
-
There are only two countries in the world: Richland and Poorland. The labor demand curve in Richland is given by: W = K 4L Where W is the salary, K is a variable determined by the accumulated...
-
You are a Loan Officer with an Investment Bank. Today you need to set your lending parameters. They are: LTV: 55% 10 Year T-Bill: TBD Rate Markup: 300 Basis Points Term: 30 Years Amortization: 30...
-
1. What kind of business-level strategy is Nestle pursuing? 2. What kind of competencies do its CEO and managers possess that allow it to pursue these strategies? 3. In what ways may its strategies...
-
Think about the various clothing retailers in your local malls and city, and analyze the choices they have made about how to compete with one another along the f low cost and differentiation...
-
What goals would you strive to achieve on this job? Why? What role would your manager play in determining your goals?
-
Has the concept of SD achieved the balance between all three pillars: environmental protection; economic development; and social issues?
-
Please reflect on and explain the role and usefulness of the concept of SD in relation to the protection of the environment.
-
How many dimensions of the PSNR principle can you enumerate? To which one does UN Resolution 1803(1962) refer?
Study smarter with the SolutionInn App