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

Write a program that reads a set ofintegers, and then finds and displays the sum

ID: 3615161 • Letter: W

Question

Write a program that reads a set ofintegers, and then finds and displays the sum of the even and oddintegers. You will actually write and submit 3 differentprograms: 1) write this program using a while statement 2) writethe program using a for statement and 3) write the program using ado-while statment set. Submit your .cpp files via D2L. Make surethat you name each of your .cpp files so that I can distinguish thecontrol structure that is being used by each particular programjust by looking at the name of the program. Write a program that reads a set ofintegers, and then finds and displays the sum of the even and oddintegers. You will actually write and submit 3 differentprograms: 1) write this program using a while statement 2) writethe program using a for statement and 3) write the program using ado-while statment set. Submit your .cpp files via D2L. Make surethat you name each of your .cpp files so that I can distinguish thecontrol structure that is being used by each particular programjust by looking at the name of the program.

Explanation / Answer

please rate - thanks FOR - no break #include using namespace std; int main() {int i,sumodd=0,sumeven=0,num; for(i=0;i0)         {if(num%2==0)            sumeven+=num;         else            sumodd+=num;          }      else          {cout
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