Write A C++ program that ask the user to enter an array [3] [3], which include...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write A C++ program that ask the user to enter an array [3] [3], which include the following functions: [1] A function named Diag_Sum() to find the sum of both main and secondary diagonal elements for the array. [2] A function named Middle_array() to displays the elements of middle row and the elements of middle column of the array. [3] A function named Lower_half() that prints the lower half of the array. Write A C++ program that ask the user to enter an array [3] [3], which include the following functions: [1] A function named Diag_Sum() to find the sum of both main and secondary diagonal elements for the array. [2] A function named Middle_array() to displays the elements of middle row and the elements of middle column of the array. [3] A function named Lower_half() that prints the lower half of the array.
Expert Answer:
Answer rating: 100% (QA)
Heres a C program that fulfills your requirements cpp include using namespace std const int ROWS 3 c... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
In five sentences or more answer the following question: Was Japanese Internment necessary to protect Americas national security? Why / why not?
-
Figure P36.40 shows a thin glass (n = 1.50) converging lens for which the radii of curvature are R1 = 15.0 cm and R2 = -12.0 cm. To the left of the lens is a cube having a face area of 100 cm2. The...
-
Ricky is 35 years old. He plans to retire when he is 63. He has opened a retirement account that pays 3.2% interest compounded monthly. If he makes monthly deposits of $400, how much will he have in...
-
Choose a country from three of the regions presented in Table 6.7. Using the Internet, collect as much information as you believe is needed to identify the potential for market segments based on age,...
-
Having rejected a tariff on textiles (a tax on imports), the president of Isoland is now considering the same-sized tax on textile consumption (including both imported and domestically produced...
-
Nirmo Power and Light has two P1,000 par value bonds outstanding. Bond X matures in five years and Bond Y matures in 15 years. Both bonds pay P80 interest annually and currently sell at their par...
-
Project Alpha has two phases. You may invest in the first, in both, or in neither. The first phase requires an investment of $100 today. One year later, Alpha will deliver either $120 or $80, with...
-
Explain your solution? The Buckeye Trampoline Shop produces one size of trampolines. Out of the 100 trampolines that begin in production each month, only 75 percent pass inspection and are...
-
Urea (NH4CO), a common industrial fertilizer, is produced from ammonia (NH3) and carbon dioxide (CO). The reaction is given by 2NH3 + CO NH4CO + HO The ammonia contains nitrogen (N) which acts as an...
-
A specific protein kinase (PK) gene is speculated to be differentially spliced in muscle tissue. This gene comprises three exons and two intron sequences and in fibroblast cells encodes a 38.5-kD...
-
Question 1: A language L is said to be defined if there exists a positive integer k such that, for any string w, the membership of w in L depends solely on the last k symbols of w. (a) Provide a...
-
Problem 4: There are 5 languages and 5 grammars. Next to each language state the number of the grammar who's language it is a) {abn#m} b) {abn>m} c) {ab|n>2m} d) {abn>0} e) {ab|n>m>0} f) {ab|n=2m+1}...
-
1. Oxygen has 8 protons, 8 neutrons, and 8 electrons. What is the atomic number of oxygen? What is its atomic mass? 2. Draw an Oxygen atom. 3. Draw a Nitrogen atom (atomic number is 7; atomic mass is...
-
Lack of mutual agoncy is best describod as which of the following? A. The labilities of the corporation cannot be extended to the personal assets of the stockholder OB. Corporations pay income tiK on...
-
The Taylor's series expansion for cosx about x = 0 is given by: where x is in radians. Write a user-defined function that determines cosx using Taylor's series expansion. For function name and...
-
Scott Butterfield is self-employed as a CPA. He uses the cash method of accounting, and his Social Security number is 644-47-7833. His principal business code is 541211. Scott's CPA practice is...
-
Harold Conners (Social Security number 785-23-9873) lives at 13234 DeMilo Drive, Houston, TX 77052, and is self-employed for 2012. He estimates his required annual estimated tax payment for 2012 to...
-
Marty is a sales consultant. Marty incurs the following expenses related to entertainment of his clients in 2012: Dues to a country club......................................................$4,500...
-
Use the Ritz variational method for the harmonic oscillator, with trial wave functions \(\psi_{1}(x)=\) \(e^{-y^{2} / 2}, \psi_{2}(x)=e^{-y^{2}}, \psi_{3}(x)=e^{-2 y^{2}}\), where \(y=x \sqrt{m...
-
Consider a two-level system, with basis \(|1angle,|2angle\), and in this basis, a Hamiltonian with elements \(\left(\begin{array}{ll}1 & 1 \\ 1 & 1\end{array} ight)\). Use the first form of the...
-
Use the practical variational method for the same harmonic oscillator ground state energy, with trial wave function \(\psi_{a}(x)=e^{-a y^{2}}\).
Study smarter with the SolutionInn App