Welcome! Log In Create A New Profile

Advanced

Assignment 1 - Question 4 Clarity (functions)

Posted by 40364445 
Announcements Last Post
Announcement myUnisa availability 21 to 24 March 2019 03/17/2019 02:24PM
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Assignment 1 - Question 4 Clarity (functions)
August 20, 2013 10:07AM
Hi

Just to confirm -
Question requires 1 drop down menu where the user accepts 5 arguments
or 5 drop downs where users select 1 argument each.

Thanks
avatar
Mac
Re: Assignment 1 - Question 4 Clarity (functions)
August 20, 2013 11:50AM
1 drop down
Re: Assignment 1 - Question 4 Clarity (functions)
August 20, 2013 02:10PM
Afternoon Mac,

The way I executed the function was that I used 5 drop-down menus for each argument.
"Create a function of your choice. The function must accept 5 arguments. Create a form that accepts 5 arguments, each via a drop-down menu, and echo the results back to the user."

Can you please confirm if it is just 1 drop-down menu like you replied where it is a multiple selection that selects 5 options simultaneously, or 5 drop-down menus where each drop-down menu selects 1 option and then passes it to the function? Does it matter how we do it?

Kind Regards,
Re: Assignment 1 - Question 4 Clarity (functions)
August 21, 2013 07:45AM
yes sorry...
if we are discussing the same questions (function.php) then
that is not how the question reads

The function must accept 5 arguments
so

Language: PHP
function myfunction($arg1,$arg2,$arg3,$arg4,$arg5){ .......some code }


but
Create a form that accepts 5 arguments, each via a drop-down menu.
says to me you need 1 drop down for each argument so at least 5....
they will have multiple options per dropdown (obviously)
but need 5
avatar
Mac
Re: Assignment 1 - Question 4 Clarity (functions)
August 21, 2013 08:33AM
I read the original question too fast - each drop down will have various options else there is no use in having a drop-down. 5 arguments is sent to the function.
Re: Assignment 1 - Question 4 Clarity (functions)
August 22, 2013 07:29PM
I also created 5 drop downs and once all 5 are selected they will echo a results in a from of a sentence to the user
Sorry, only registered users may post in this forum.

Click here to login