PF Lab Final Spring 2023 Slot 2
PF Lab Final Spring 2023 Slot 2
Question 1: Write a C++ program which reads positive integers that are greater
than 1 from standard input in a dynamic integer array whose size will be input by
user.
Write a function that should create another array dynamically and store in only
those values from input array which are not exactly divisible by any other of the
value in that array. The function should return the output array.
Display the resultant array using display function.
Note:
Sample Run 2:
Input size: 3
Input array values: 5 5 25
Output array contains zero elements.
Question 2:
An Input file contains multiple words, where each word stored in a separate line.
Write a function in C++ that reads words from file in a dynamic two D array of
characters. Display the total number of vowels in each row. Also tell the row
number with the maximum number of vowels. (Note: There may have multiple
rows with the maximum vowel count)
Java
Python
C++
HTML
Cobol