Question: languague C You will be writing only the function definition. Write the function definition for DiscountPrice. The function will take two arguments, a double array
You will be writing only the function definition. Write the function definition for DiscountPrice. The function will take two arguments, a double array called ItemPrice and an integer called numitems. numitems is the count of how many ItemPrice doubles are in the array This function will hava void return type. Inside the DiscountPrice function: - Declare a file pointer and a double variable and connect to a file called "input.txt" - read one double value from the file - subtract the double value that was read from the file from all the ItemPrice doubles in the array that are greater than 50.00 - Assume the file has the correct name and data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
