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...
-
28) ABC Co. had 200,000 shares of common stock, 20,000 shares of convertible preferred stock, and $2,000,000 of 6% convertible bonds outstanding during 2021. The preferred stock is convertible into...
-
how to work with data to get them ready to analyze
-
The trial balance of Zoop Co. shown below does not balance. Each of the listed accounts has a normal balance per the general ledger. An examination of the ledger and journal reveals the following...
-
Which of the following assets is depreciable property for the 179 expenses deduction. a. Use office furniture if it now to the taxpayer b. An apartment building leased to tenants c. Qualifying...
-
Consider the following 0x86 program: .data array DWORD 1,2,3,4,5,6,7,8,9 aravSize -(S-array)/4 ; array .code main PROC mov ecx,arraySize-1 mov esi.OFFSET array L1: mov eax. [esi] sda mov bx,2 idiv bx...
-
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.
-
"Risk-averse people should only be averse to big gambles with a lot of money at stake. They should jump on any small gamble that is unfair in their favor." Explain why this statement makes sense. Use...
-
Research a company that declared a 100% stock dividend or a two-for-one split Contrast the differences between a stock dividend and a stock split. Imagine that you are a stockholder in a company....
-
What are your ideas for Implementation and Assessing the Solution? How did you implement and assess the success? What should the time frame look like? What resources will be needed? What criteria...
-
What is an aesthetic question a viewer might ask about a work of art? 1 . What principles of design were used to make this work? 2 . What qualifies a functional object like this as a work of art? 3 ....
-
2. A phase diagram is shown below for an allotropic metal. Sketch and label possible Gibbs free energy curves for the 3 phases, as a function of temperature for the pressure indicated. Does the a or...
-
Recommend at least one (1) way a business with which you are familiar could use social media / buzz marketing to increase sales and awareness (e.g., social media awareness) of your...
-
Which controls discussed in this chapter are created with the input element?
-
Explain the term global capital markets. This chapter primarily discusses global equity markets. What other types of financial instruments are traded in these markets? How important are global...
-
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...
-
Each week you must submit an annotated bibliography. Entries of current events relating to the economic concepts and the impact on the company or the industry of your company. You must use acceptable...
-
Fluffy Toys Ltd produces stuffed toys and provided you with the following information for the month ended August 2020 Opening WIP Units 5,393 units Units Started and Completed 24,731 units Closing...
-
Part A Equipment 1,035,328 is incorrect Installation 44,672 is incorrect Anything boxed in red is incorrect sents 043/1 Question 9 View Policies Show Attempt History Current Attempt in Progress...
Study smarter with the SolutionInn App