1. Create a program using ARRAY for the following steps: Step1. Declare and initialize an array...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Create a program using ARRAY for the following steps: Step1. Declare and initialize an array with the name [arrayString]: with a values: Josh, Mon, Rufo, Alvin, Marte, make the index value to 99. Step2. Output the Rufo value coming from the array. Step3. Add another name "Lloyd" Step4. Output Lloyd Step5. Change the value of "Alvin" into "Alon" Step6. Output all the values of the array with the format: name-name-name - name 2. Store the 12 numbers in an arrayNum by using input. Then output the 12 numbers on array. Example: 4-6-7-8-9-5-3-1-22-2-33-8 1. Create a program using ARRAY for the following steps: Step1. Declare and initialize an array with the name [arrayString]: with a values: Josh, Mon, Rufo, Alvin, Marte, make the index value to 99. Step2. Output the Rufo value coming from the array. Step3. Add another name "Lloyd" Step4. Output Lloyd Step5. Change the value of "Alvin" into "Alon" Step6. Output all the values of the array with the format: name-name-name - name 2. Store the 12 numbers in an arrayNum by using input. Then output the 12 numbers on array. Example: 4-6-7-8-9-5-3-1-22-2-33-8
Expert Answer:
Answer rating: 100% (QA)
The Python programs to carry out the outlined steps Program using Array of Strings Step 1 Declaratio... View the full answer
Related Book For
Computer Architecture A Quantitative Approach
ISBN: 978-0123704900
4th edition
Authors: John L. Hennessy, David A. Patterson
Posted Date:
Students also viewed these programming questions
-
Carol Harris, Ph.D, CPA, is a single taxpayer and she lives at 674 Yankee Street, Durham, NC 27409. Her Social Security number is 793-52-4335. Carol is an Associate Professor of Accounting at a local...
-
The Taylor polynomial for sin(x) for a near 0 to order 5 is 1 1 sin(x) = x - + -x +0(x7) 6 120 The figure below shows a plot of sin(x) [blue] and the above Taylor polynomial [red]. 0.8 0.6 0.4 0.2 1...
-
To eliminate service inconsistencies, companies rely on ___________ and ___________.
-
Overhead information for Cran-Mar Company for October follows: Data Total overhead cost incurred.. $30,000 Budgeted fixed overhead $7,125 Total standard overhead rate per machine hour (MH) $4.90...
-
Graph the first-octant portion of each plane. y = 4
-
Bank of America lent $100,000 to Christine Kleuters on a 90-day, 8% note. Record the following transactions for Bank of America (explanations are not required): 1. Lending the money on June 12. 2....
-
Elizabeth owns equipment that cost $500,000 and has an adjusted basis of $230,000. If the straight-line method of depreciation had been used, the adjusted basis would be $300,000. a. What is the...
-
Relating to a project about starting a commercial cleaning business, answer these questions: Why: What is the problem this project will solve? What is the purpose for it? Why is it important? When:...
-
Choice Designs Ltd operates a wholesale/retail carpet store. The statement of financial position of the business as at 31 May Year 8 is as follows: As a result of falling profits the directors of the...
-
X Automotive air bags inflate when sodium azide decomposes explosively to its constituent elements: 2NaN3(s) 2Na(s) + 3N2(g) How many moles of N are produced by the decomposition of 1.25 mol of...
-
Select any bank / firm of your choice. Take out its financial statements. Calculate the following ratios according to the information found in these statements? 1. Operating Cycle. Number of days of...
-
What is the solution set for the following inequality? 4x-3+6x5x+7
-
1. Which particular aspects of the web are especially well-suited to facilitate market segmentation for e-business when compared to the bricks-and-mortar setting 2. Describe three alternative ways in...
-
A current i(t)=50e-5 mA is applied to a capacitor C = 1000 F shown in Fig. P9.31. Figure P9.31 i(t) I C V(f) A current applied to a capacitor. (a) Knowing that i(t) = Cd and that the initial voltage...
-
A square bar used as a mechanical link in an automated packaging machine is subjected to a tensile force F. The force, dimensions and material are listed below. All answers are in SAE units. Force...
-
Fill in the blanks: The following is the abstract of the shareholders' equity of Shami Corporation before the declaration of cash dividends. 15% Preference share capital, par P50, 40,000 shares all...
-
Audrey purchases a riding lawnmower using a 2-year, no-interest deferred payment plan at Lawn Depot for x dollars. There was a down payment of d dollars and a monthly payment of m dollars. Express...
-
Many snooping coherence protocols have additional states, state transitions, or bus transactions to reduce the overhead of maintaining cache coherency. In Implementation 1 of Exercise 4.2, misses are...
-
In a server farm such as that used by Amazon or the Gap, a single failure does not cause the whole system to crash. Instead, it will reduce the number of requests that can be satisfied at any one...
-
Exercise 4.5 asks you to add the Exclusive state to the simple MSI snooping protocol. Discuss why this is much more difficult to do with the simple directory protocol. Give an example of the kinds of...
-
A system consisting of a gas confined in a cylinder undergoes a series of processes shown in Fig. 2.4. During the process A-1-B, \(60 \mathrm{~kJ}\) of heat is added while it does \(35 \mathrm{~kJ}\)...
-
What is the significance of Joule's experiment in finding out the change in internal energy of an ideal gas?
-
Define the term enthalpy. How does it relate to the internal energy?
Study smarter with the SolutionInn App