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...
-
Define the term budget. How are budgets used in planning?
-
Serendipity is an Internet service provider that has a major investment in computer and telecom equipment, which needs replacement on a regular basis. The company has recently evaluated a $5 million...
-
Income tax allocation is an integral part of GAAP. The applications of intraperiod income tax allocation (within a period) and interperiod tax allocation (among periods) are both required. Required:...
-
1 2 3 P LK 111 LLL KKK K 246 Evaluate the following integrals, for a path y that travels from -Ti to Ti in the right half-plane, and also for a path y from -i to i in the left half-plane. (a) zdz (b)...
-
A store maintains data on customers, products and purchase records in three tables: CUSTOMER, PRODUCT, PURCHASE. The store manager wants to know which product is on its maximum discount for each...
-
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.
-
What is meant by aerotropolis?
-
Crown Co. can produce two types of lamps, the Enlightner and Foglighter. The data on the two lamp models are as follows: Foglighter 530 Sales volume in units Enlightner 630 Unit sales price $300 $400...
-
State and classify the items given below as per Theory Of Constraints: 1.Depreciation of a machinery 2.Rental utilities 3.R&D costs 4.Equipment & building costs 5.Raw materials in stock 6.Sales of a...
-
Omega Company is planning to invest in a machine that costs P825,000 with a 15-year economic life. The economic life of the machine is same with its useful life. The new machine is expected to...
-
what is at least one advantage and disadvantage to group incentive plans? Which side of the issue do you support (for/against)? Why?
-
You are expected to produce project management plans and documents (see Proposed Schedule) to successfully deliver this project based on your undertaking of practices, techniques and the tools...
-
For tetragonal crystals, cite the indices of directions that are equivalent to each of the following directions: (a) [011] (b) [100]
-
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...
-
Boris needs to make a total of 50 deliveries this week. So far he has completed 28 of them. What percentage of deliveries has Boris completed? % X
-
QUESTION 1 1- (Operating Lease for Lessee and Lessor) On February 20, 2017, Barbara Brent Inc. purchased a machine for $1,500,000 for the purpose of leasing it. The machine is expected to have a...
-
The standard quantity of materials for a product was 58 pounds per unit at the standard price of $30 per pound. The actual price per pound of materials was $26.25, and the actual quantity used was 68...
Study smarter with the SolutionInn App