Menu

[Solved]-Question 19 Assuming User Inputs Twenty Input Output Following Code Snippet Int Num Employ Q37295206

QUESTION 19 Assuming that the user inputs twenty as the input, what is the output of the following code snippet? int num emQUESTION 19 Assuming that the user inputs “twenty” as the input, what is the output of the following code snippet? int num employees-0 cout <5 “Please enter the number of your employees: ” cin >> num-employees; if (cin.fail()) cout s “Invalid Data!”< end1 return 0 if (num employees k 10) cout k5 “Very small business!” return Q else cout 35 Small business” 5 endl if (num-employees > 100) cout: s5 ‘Mia size business” s endi else cout ss Large business3 endii return 0 OVery small business Small business Mid size business! Large business Invalid Data Show transcribed image text QUESTION 19 Assuming that the user inputs “twenty” as the input, what is the output of the following code snippet? int num employees-0 cout > num-employees; if (cin.fail()) cout s “Invalid Data!” 100) cout: s5 ‘Mia size business” s endi else cout ss Large business3 endii return 0 OVery small business Small business Mid size business! Large business Invalid Data

Expert Answer


Answer to QUESTION 19 Assuming that the user inputs “twenty” as the input, what is the output of the following code snippet? int n… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *