Question: in C + + Write a program that reads a list of integers, and outputs whether the list contains all multiples of 1 0 ,
in C Write a program that reads a list of integers, and outputs whether the list contains all multiples of no multiples of or mixed values. Define a function named IsVectorMult that takes a vector as a parameter, representing the list, and returns a boolean that represents whether the list contains all multiples of ten. Define a function named IsVectorNoMult that takes a vector as a parameter, representing the list, and returns a boolean that represents whether the list contains no multiples of ten.
Then, write a main program that takes an integer, representing the size of the list, followed by the list values. The first integer is not in the list.
Ex: If the input is:
the output is:
all multiples of
Ex: If the input is:
the output is:
no multiples of
Ex: If the input is:
the output is:
mixed values
The program must define and call the following two functions. IsVectorMult returns true if all integers in the vector are multiples of and false otherwise. IsVectorNoMult returns true if no integers in the vector are multiples of and false otherwise.
bool IsVectorMultvector myVec
bool IsVectorNoMultvector myVec
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
