Question: C++ please Question #2 Expected time for completion: 30 mins (8 Marks) Write a C++ program which accepts a set ofmmbers from user and calculate
Question #2 Expected time for completion: 30 mins (8 Marks) Write a C++ program which accepts a set ofmmbers from user and calculate the sum of all even and odd mumbers separately and display them. Use vector to store and display the umbers. Figure below illustrates the expected output of the program nter a number to push (0 to quit) :1 nter a number to push (0 to quit) 2 Enter a number to push (0 to quit) : 3 nter a number to push (0 to quit) :4 Enter a number to push (O to quit) :5 Enter a number to push (0 to quit)6 nter a number to push (0 to quit) : 7 nter a number to push (O to quit):8 nter a number to push (O to quit) 9 Enter a number to push (O to quit) nter a number to pu C0 to quit) :0 ven sum 30 10 Pdess mny Rey to continu Press any key to continue . . . Expected output of the program Solutiorn Desktop
Step by Step Solution
There are 3 Steps involved in it
To solve this problem in C you need to create a program that collects numbers from the user and calc... View full answer
Get step-by-step solutions from verified subject matter experts
