Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

<p><span style=\"font-family: times new roman,times; font-size: medium;\">in c++

ID: 3635442 • Letter: #

Question

<p><span>in c++</span></p>
<p><span>This is what I have but not sure.</span></p>
<p>&lt;code&gt;</p>
<p>//write the code to store the number 100 in each element in the balances array. Use two for statements.<br />double balances[4][6] = {0.0};<br />for (int row = 0; row &lt; 100; row += 1)<br />&#160;for (int col = 0; col &lt; 100; col += 1)<br />&#160;cout &lt;&lt; balances[row][col] &lt;&lt; endl;<br />&#160;//end for<br />//end for<br />//needs work</p>
<p>&lt;code&gt;</p>
<p>Thanks</p>

Explanation / Answer

Please rate: Thanks.. #include using namespace std; int main() { //double rates[5] = {6.5, 8.3, 4.0, 2.0,10.5}; double balances[4][6] = {0.0}; //storing element values in array for (int row = 0; row
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote