Home /
Expert Answers /
Computer Science /
question-1-points-write-a-c-program-to-do-the-following-6-declare-1-dimensional-array-of-type-pa502
(Solved): QUESTION 1: POINTS] Write a C++ program to do the following: [6 Declare 1 dimensional array of type ...
QUESTION 1: POINTS] Write a C++ program to do the following: [6 Declare 1 dimensional array of type character with 6 elements. . Fill array elements from user (input Y or N). .User can enter only 'Y' or 'N' capital or small letter (not case sensitive), if the user input any other letter, then assume it as 'N'. . If number of Yess(Ys) is greater than number of Nos(Ns), then: Print that "array input is true ", otherwise, print that "array input is false" A sample run of the program: enter 6 characters, Y/y or N/n vnyyyn array input is true enter 6 characters, Y/y or N/n N Nyit Y array input is false
SOLUTION : Note: I have explained all the code using comments so that it's easy for you to understand and also explain each and every line with the attached output below. CODE : //import the library for input/output from user #include usi