Utilizing a function with a passing value
Hi, I am a student and new to proramming. I just learn function last week and yesterday i got an assignment from my teacher that i can't solve. Here are the tasks: 1. Make a program using "nested if" with the following scenario: A shop give a discount to costumer that buy 3 items with condition, at least 2 items exceed $15 each. 2. Using the scenario above, make a "loop" which numbers of "loop" are inputed by user or as long as the user need to use the "loop". 3. Using scenario that mentioned in question number 1, make a program with "Discount" function with a "passing value". i can solve number 1 and 2 but i stuck at number 3. as what i understand with function with passing value is you change the value of variable by a process inside another function [[is it right?]]. but i don't seem to understand how to use that in question number 3. thanks beforehand for helping.