What is the error in the following pseudocode? // The searchName function accepts a string containing the
Question:
What is the error in the following pseudocode?
Transcribed Image Text:
// The searchName function accepts a string containing the name // to search for, an array of strings containing the names, and // an integer specifying the size of the array. The function // searches for the name in the array. If the name is found, the // string containing the name is returned; otherwise a message // indicating that the name was not found in the array is // returned. Function String searchName (String name, String names [], Integer size) Declare Boolean found Declare Integer index Declare String result // Step through the array searching for the // specified name. While found == False AND index <= size - 1 If contains (names [index], name) Then Set found = True Else Set index = index + 1
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (1 review)
The error in the follo...View the full answer
Answered By
Ashington Waweru
I am a lecturer, research writer and also a qualified financial analyst and accountant. I am qualified and articulate in many disciplines including English, Accounting, Finance, Quantitative spreadsheet analysis, Economics, and Statistics. I am an expert with sixteen years of experience in online industry-related work. I have a master's in business administration and a bachelor’s degree in education, accounting, and economics options.
I am a writer and proofreading expert with sixteen years of experience in online writing, proofreading, and text editing. I have vast knowledge and experience in writing techniques and styles such as APA, ASA, MLA, Chicago, Turabian, IEEE, and many others.
I am also an online blogger and research writer with sixteen years of writing and proofreading articles and reports. I have written many scripts and articles for blogs, and I also specialize in search engine
I have sixteen years of experience in Excel data entry, Excel data analysis, R-studio quantitative analysis, SPSS quantitative analysis, research writing, and proofreading articles and reports. I will deliver the highest quality online and offline Excel, R, SPSS, and other spreadsheet solutions within your operational deadlines. I have also compiled many original Excel quantitative and text spreadsheets which solve client’s problems in my research writing career.
I have extensive enterprise resource planning accounting, financial modeling, financial reporting, and company analysis: customer relationship management, enterprise resource planning, financial accounting projects, and corporate finance.
I am articulate in psychology, engineering, nursing, counseling, project management, accounting, finance, quantitative spreadsheet analysis, statistical and economic analysis, among many other industry fields and academic disciplines. I work to solve problems and provide accurate and credible solutions and research reports in all industries in the global economy.
I have taught and conducted masters and Ph.D. thesis research for specialists in Quantitative finance, Financial Accounting, Actuarial science, Macroeconomics, Microeconomics, Risk Management, Managerial Economics, Engineering Economics, Financial economics, Taxation and many other disciplines including water engineering, psychology, e-commerce, mechanical engineering, leadership and many others.
I have developed many courses on online websites like Teachable and Thinkific. I also developed an accounting reporting automation software project for Utafiti sacco located at ILRI Uthiru Kenya when I was working there in year 2001.
I am a mature, self-motivated worker who delivers high-quality, on-time reports which solve client’s problems accurately.
I have written many academic and professional industry research papers and tutored many clients from college to university undergraduate, master's and Ph.D. students, and corporate professionals. I anticipate your hiring me.
I know I will deliver the highest quality work you will find anywhere to award me your project work. Please note that I am looking for a long-term work relationship with you. I look forward to you delivering the best service to you.
3.00+
2+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
1) Predict the product(s) of the following reactions. Is it SN1, SN2, E1, or E2 mechanism? CH3 a) b) Br (i-Pr)2N THF d) CH3 Br NC THF N3 Na MeOH c) Br MeOH, heat Br t-BuO Nal CI THF Acetone 2)...
-
What is the error in saying that electrons in a common battery-driven circuit travel at about the speed of light?
-
Clear View, a radiology practice in Pretoria has 15 branches at hospitals and doctors practices in the area, some of which are only 3 kilometres apart. All bookings are managed separately by each...
-
9) The mole (Avogadro number N) is defined as the number of atoms in exactly 12 grams of 2C, calculate the: a) number of atoms in 2 g of C b) number of atoms in 5 g of C
-
Data for Dwight Powder Company at the end of 2009 follow. All bonds are convertible as indicated and were issued at their face amounts. Instructions: 1. Compute basic and diluted EPS for 2009,...
-
Two sinusoidal waves of the same period, with amplitudes of 5.0 and 7.0 mm, travel in the same direction along a stretched string; they produce a resultant wave with an amplitude of 9.0 mm. The phase...
-
I spent time with you. It seems that this deed is out of character for you. You were not awarded your normal annual bonus. I would probably feel the same. Is that what happened? You normally wouldnt...
-
The owner of a ski apparel store in Winter Park, CO, must decide in July how many ski jackets to order for the following ski season. Each ski jacket costs $54 each and can be sold during the ski...
-
The example may be a sales tax or income tax proposal at any level of government. In your initial post, explain the revenue proposal, and evaluate it for equity, adequacy of revenue generation,...
-
True or False Array bounds checking typically occurs while a program is running.
-
Assume the arrays numberArray1 and numberArray2 each have 100 elements. Design an algorithm that copies the values in numberArray1 to numberArray2.
-
An electron passes point A moving at 6.5 Mm/s. At point B it comes to a stop. Find the potential difference V AB
-
A flywheel free to rotate is initially at rest. The flywheel then has an angular acceleration of 0.9 rad/s for 4.7 seconds. Through what angular displacement does the flywheel turn during this time?
-
Write a 4-5 page evaluation of your H&M Clothing company's performance with respect to its stated values. Do the following: Summarize the H&M Clothing company's primary products and or services....
-
What are Google's principal resources and capabilities? Explain.
-
Discuss and analyze beef packer ownership and concentration in the United States. Analyze and discuss the change in beef packer ownership structure in the last 25 years. Include expansion of new...
-
Please help explain why the under-listed two forces of porter fives are essential in a plant-based industry The threat of new entrants and The intensity of competitive rivalry. Please, in your...
-
Identify the conditions under which the weighted-average method of process costing is inappropriate.
-
Huntingdon Capital Corp. is a competitor of Plazacorp and First Capital Realty. Huntingdon reported the following selected information (in millions):...
-
How do you retrieve the selected item from a JComboBox component? How do you get the index of the selected item?
-
What is a mnemonic? How does the user use it?
-
A list selection listener must have this method. a. ValueChanged b. SelectionChanged c. ActionPerformed d. ItemSelected
-
Consider the following f(x) = x-3 (fg)(x); g(x)=2x-1 f(g(x));
-
Set up each problem first. Then simplify as much as possible. 10) Add 21023 + 10013 11) Add 41025 + 32415
-
You will find the height of an object that is on level ground and has an inaccessible base. This strategy can be used to determine the height of a distant object without having to be near it (that...
Study smarter with the SolutionInn App