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...
-
Choose a video from YouTube that is no more than five minutes long. It MUST be on a business topic. https://youtu.be/lalnQniI3Lw What is the topic of the video? Who is the target audience? Describe...
-
Costs of information: increasing environmental expenditures. Most major corporations are spending in the tens of millions of dollars annually on environmental costs, with the larger ones spending in...
-
The financial statements of Colorado Outfitters include the following selected data ($ in millions): sales, $9,543; net income, $320; beginning stockholders equity, $3,219; and ending stockholders...
-
An airplane has a lift - drag relation of CD = 0 . 0 1 5 + 0 . 0 6 0 CL 2 , weight is 2 0 , 0 0 0 lb . , wing area is 2 0 0 square ft . If this airplane is propeller driven , what is the speed...
-
What would be the output generated by the following code? import java.util.concurrent.*; public class Main { public static void main (String [] args) { new ConcurrentHashMap (); ConcurrentHashMap chm...
-
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.
-
Explain why an implementation can be changed but an interface should not be changed.
-
A model of a helicopter rotor has four blades, each is 3.40 m long from the central shaft to the blade tip. The rotor takes 0.02 s to spin one revolution. Find the linear speed of the blade tip. What...
-
A1500 kg aircraft going35 m/s collides with a2000 kg aircraft that is parked and they stick together after the collision and are going 15 m/s after the collision. If they skid for 106.8 m before...
-
A solid insulating sphere of 1.0 cm radius is uniformly charged throughout its volume with an unknown total charge Q. The electric field generated by the charged sphere is measured to be 100,000 N/C...
-
A conducting sphere of 4.0 cm radius has a cavity of 1.0 cm radius (sharing the same center). The conducting sphere has a total charge of + 15 nC. In addition, a - 12.0 nC point charge is located at...
-
3) A bicycle tire pump has a piston with area 0.40 in 2 . If a person exerts a force of 15 lb on the piston while inflating a tire, what pressure does this produce on the air in the pump? 4) A large...
-
A study investigated the effects of physical fatigue on the performance of professional tennis players. Researchers measured the number of unforced errors committed by a random sample of 12...
-
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...
-
Novak Company has the following stockholders' equity accounts at December 31, 2025. Common Stock ($100 par value, authorized 7,600 shares) $459,100 Retained Earnings 266,700 (a) Your answer is...
-
After reviewing the speech on new computer software that he willmake to project managers, Ira decides that it is boring. Hesearches for jokes and funny stories that are somehow related toparts of his...
-
Two vectors, , and , are drawn on an coordinate system, as shown. Vector has a magnitude of 9.00 units, and vector has a magnitude of 5.00 units. Find the and of vectors and in the system. Compute...
Study smarter with the SolutionInn App