Question: Use the Online C++ Compiler; httpsidwowy.onlintsdb comvonline cu+_compiler Delete all the existing code from maincpp. You wit write the code in the flle main.cpp. input

 Use the Online C++ Compiler; httpsidwowy.onlintsdb comvonline cu+_compiler Delete all the

Use the Online C++ Compiler; httpsidwowy.onlintsdb comvonline cu+_compiler Delete all the existing code from maincpp. You wit write the code in the flle main.cpp. input the age (int) and system type (char) of the user inside a do-while loop. The age should >0, and the system type should ether be F, ' p ', ' C, or ' C '. For any other input output "Incorrect input" and use the continue statement to repeat the iteration. The system type ' P ' or ' P ' designates PC gamers, whereas the system type ' C or ' C ' designates Console gamers. After each input asks if the user would like to continue. Stop the repeatition if the use inputs ' N ' or ' n '. Find the count of PC players, and console players, and their average age at the end of the input as shown in the sample output. When you are donet Download your code. It will save the file maif. cpp and renare the file to Lab8_Ex2. Spp. This is very impottant so that you can always access the code later. How to subkit: select all the eode uaisg ctrl + C/cod+A. Copy the code wiling ctrl+c, cind + c. Paste the code in the snswer box usieg ctri + V/C Ced +V an the blackboard. Ignore if the formating of the code in different. Move to the next quention of prens the save and subeit bucoon

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below is a solution to the problem outlined This C program will read the users age and system type e... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!