What is the output of code corresponding to the following pseudocode? Suppose that the file data consists
Question:
What is the output of code corresponding to the following pseudocode?
Suppose that the file "data" consists of the following records:
"Huey",1,2
"Dewey",4,5
"Louie",7,8
Transcribed Image Text:
Declare Ducks[10] As String Declare Numbers [10,20] As Integer Open "data" For Input As DataFile For (K = 0; K < 3; K++) Read DataFile, Ducks [K] %3D For (J = 0; J < 2; J++) Read DataFile, Numbers [K,J] End For(J) End For (K) For (J = 0; J < 2; J++) For (K = 0; K < 3; K++) If K == 1 Then Write Ducks [K] + + Numbers [K, J] End If End For(K) End For(J) Close DataFile
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 33% (9 reviews)
Answered By
VENIKA BHARTI
I'll COMPLETE my BSC(BACHELOUR OF SCIENCE) From ZBC(ZOOLOGY ,BOTONY,CHEMISTRY)
AND THEN ILL DO
M.SC(master of science)FROM"ZOOLOGY"
AND NOW
Iam currently work in TRANSTUTOR and iam also teach student as a home tutor. So i have lil experience of teaching and i love to teach.
When iam student ill also make my own notes which helpful for research and understand to teach .
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
According to the quantity theory of money, if the growth rate of money supply increases by 2 percentage points O inflation increases by 2 percentage points and real interest rates increase by 2...
-
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
-
About "Hilton Honors" 1) Explain what creates value and identify if there are aspects that do not create value. (Please include the citation and references) 2)What is the strength of the Hilton Honor...
-
You are considering investing in an oil well in Azerbaijan. The well costs 40 million and generates end-of-year expected after-tax cash flow of 10 million per year in perpetuity. The appropriate...
-
Name an example from daily life (different from the text) for each mechanism of heat transfer.
-
Use R to create a randomization scheme to randomize 222 subjects to three treatments such that there are an equal number of subjects assigned to each treatment. You may use the functions developed in...
-
(Fill in the blanks) 1. The FASB publishes its Accounting Standards Codification (ASC) as the source of accounting and reporting guidance for _______ hospitals. 2. FASB standards _______ (lways,...
-
What is the return on an Investment that costs $500 today and will return $800 at the end of 4 years? What long will it take a $100 investment to double to $200 if the interest rate is 6%?
-
Ricks English Hut (Ricks) is a restaurant located in North Myrtle Beach, South Carolina on a saltwater marsh, surrounded by stately oak trees. Ricks appetizers and entrees run the gamut, from tasty...
-
Write a program segment that displays the contents of the arrays of Exercise 36 on 25 lines, each containing three test scores. Assume that a file named "test" has 25 records of the following form:...
-
A(n) _____ is a data type that is made up of attributes and methods.
-
True or false: All things being equal, more information is almost always better.
-
Facebook CEO Mark Zuckerbergs meteoric rise to social networking superstar is presented in this wellmade movie. Analyze the communication styles of conflict management used by Zuckerberg and others....
-
Why are collective inferential errors more likely when issues are emotionally charged?
-
If competition has so many disadvantages, why would the competing/forcing style ever be appropriate for a competent communicator?
-
Explain how the liquid ratio is calculated.
-
The following information is extracted from the annual report of Wolseley plc. Finance objectives (extract) To deliver an incremental return on gross capital employed at least 4% in excess of the...
-
Regis Corporation operates hair salons under various brand names including Supercuts, Mia & Maxx, and Style America. The following is a simplified list of accounts and amounts (in millions) reported...
-
Which of the companies has the lowest accounts receivable turnover in the year 20X2? a. Company A. b. Company B. c. Company C. d. CompanyD. 20X1 20X2 Credit Sales Average Receivables Balance $1.0...
-
In TCP, how do we define the sequence number of a segment (in each direction)? Consider two cases: the first segment and other segments.
-
To better understand the need for the three-handshake connection establishment, let us go through a scenario. Alice and Bob have no access to telephones or the Internet (think about the old days) to...
-
In TCP, we have two consecutive segments. Assume the sequence number of the first segment is 101. What is the sequence number of the next segment in each of the following cases? a. The first segment...
-
O O A Dundas Company's inventory records for its retail division show the following at May 31: (Click the icon to view the accounting records.) At May 31, 10 of these units are on hand. Dundas...
-
4. R got 35% hike in his salary and 20% incentive on sales. If R sold goods worth Rs. 850 last year and the salary was Rs 70, then how much more does he earn this year with sales of Rs.900?
-
Teachers salaries have not been increasing as fast as the pay in many other types of work. Explain why you think this might be true. use graph of the supply and demand for teacher's labor to help...
Study smarter with the SolutionInn App