Answered step by step
Verified Expert Solution
Question
1 Approved Answer
THIS MUST BE DONE IN C++. Thank you 1. Write a function to search a value in an array of integers. If the integer is
THIS MUST BE DONE IN C++.
Thank you
1. Write a function to search a value in an array of integers. If the integer is found in the array, return true, else return false. The function prototype is as follows: Use linear search algorithm to solve this problem. (10 points) bool searchValue(intl, int, int); ("the three parameters are array, size of the array, value to be searched) 2. Declare a pointer variable bitArray which points to a newly allocated array of 50 boolean values. (4 points) 3. Declare a function prototype for a function calcSum, which has two parameters, one is of type pointer to an array of double, and the other is the size of the array. The function does return a pointer which points to the sum. (sum is a type of double). (4 points) 4. Declare a struct named Product. Product struct has 3 members as follows: (4 points) productlD - integer name string description- string 5. Declare an array of Product struct (created on Q4) and name it productList which contains 2 software products. (4 points)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started