<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><code></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 < 100; row += 1)<br /> for (int col = 0; col < 100; col += 1)<br /> cout << balances[row][col] << endl;<br /> //end for<br />//end for<br />//needs work</p>
<p><code></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; rowRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.