Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Project help

  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Project help

    Hi,

    I am a student in Mobile Application Design, and currently am taking classes online. Up until this past week, I have had no trouble with my coding classes, and then JavaScript was introduced. I do not know if it is the bad instructional videos or weird projects. I have spent countless hours on this project, and nothing comes out right.

    I was wanting to know if someone knew where I could find a completed example of this template, so I can better understand it. I have already passed the deadline on the project, and have received a 0, but I need to understand this for this upcoming project. By the way, we were supposed to portray a story within this code. Also, I uploaded a Flowchart that was provided in the folder. Not even Lynda.com could help me...

    Any help you may be able to provide would be greatly appreciated.



    Code:
    //procedure
    var procFunction  function(argument){
    	// your code completes the procedure
    };
    
    //boolean function
    var booFunction = function(argument){
    	//your code completes the Boolean function
    };
    
    //number function
    var numFunction = function(arg1, arg2){
    	//your code goes here
    }
    
    //string function
    var strFunction = function(argument){
    	//your code here completes the string function
    };
    
    //array function
    var arrFunction = function(arrArgument, numArgument){
    	// your code here completes the array function
    }
    
    //Your function calls go here
    procFunction("some value"); //calls the procFunction and
    							//passes some value as the argument.
    
    numFunction(10,2); //calls the numFunction and passes 10 and 2 to
    				   // the arg1 and arg2 variables in the function
    Attached Files Attached Files
    Last edited by VIPStephan; 11-04-2012 at 11:02 PM. Reason: fixed code BB tags

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,121
    Thanks
    75
    Thanked 4,338 Times in 4,304 Posts
    It would probably help tons if you bothered to tell us what each of those functions is supposed to *DO*.

    For example, we see that there is a call to numFunction(10,2) but we have no idea if numFunction is supposed to add 10 and 2, multiply 10 by 2, or compare 10 vs. 2 to find the larger. Or something completely different.

    If you didn't understand the assignment and can't tell us what is is, we can't very well help you.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •