Answer:
umm okay for starters I have no clue lol.
Answer:
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
int main() {
string name[5];
int age[5];
int i,j;
for ( i = 0; i<=4; i++ ) {
cout << "Please enter student's name:";
cin >> name[i];
cout << "Please enter student's age:";
cin >> age[i];
}
for (i=0;i<=4;i++){
cout<<"Age of "<< name[i]<<" is "<<age[i]<<endl;
}
}
Output of above program is displayed in figure attached.
Answer:
Didn't do what, there are no women as answers. Contact me and give me the women.
Explanation:
Answer:
sum2 = 0
counter = 0
lst = [65, 78, 21, 33]
while counter < len(lst):
sum2 = sum2 + lst[counter]
counter += 1
Explanation:
The counter variable is initialized to control the while loop and access the numbers in <em>lst</em>
While there are numbers in the <em>lst</em>, loop through <em>lst</em>
Add the numbers in <em>lst</em> to the sum2
Increment <em>counter</em> by 1 after each iteration