I've been working on an assignment that has been frustrating me like no other assignment ever. I spent a good 8 hours on it last Sunday and at least a few more over the last week. It's for an online class and I asked the teacher who gave me some advice but I still can't get it to work.
Essentially I need to setup a program that will find the lowest number out of 15 numbers entered. There are 2 requirements
1. Has to include a loop
2. Has to include an outside function that is "double smaller (double x, double y)"
I can actually figure out how to find the lowest number and use a loop, but I can't do it by including the "double smaller (double x, double y)" part of it. I asked the teacher for help and she advised to use the loop in main and gave me what I should put in the function "smaller". I'm having trouble trying to figure out how to get the information from "smaller" back into main. I've attached my code below.
Any more advise would be appreciated. The code she gave me to put in the function is different from the code I had when I figured out how to find the smallest number in main so that's confusing me a little too
Honestly, no idea. Right around there is where I know I lose comprehension of the problem.
I just put it in there so the program would compile.
This is the code I have that solves the problem, but just not doing what is asked of me 100%.
It's killing me how to get the input to go down into the function but when I only have 1 input and otherwise the program won't compile if I give a function with 2 parameters only 1 value.