Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    ARRAY for note pad ++ PLEASE HELP!!

    Help wanted · · · – – – · · ·
    2
    5
    591
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T- BONE TUBE
      T- BONE TUBE last edited by

      Hello just hoping to be able to get some help on this really need it

      ARRAYS/DOM

      1. Write an JS application that reads numbers separated by space(s) for input and for output displays
        the smallest, largest, and average values based on the button pressed. Make sure to also add sort
        functionality. See sample below:
      2. Write a JS application that reads names separated by space(s) and for output lists the names with
        the first letter of every name converted to uppercase and the rest to lowercase. Make sure to also sort
        the outputted list. NOTE: The spacing between names should only be 1 space. See sample below:
      3. Write a JS application that displays the lists of grades in their corresponding letter grade
        textbox. Each grade list should also be sorted. See sample below:
      4. Create the following form that calculates the increment value only using DHTML(DOM). See

      I was able to start but i cant seem to get it this is FILE #1 for the first question.
      <!DOCTYPE>
      <html>
      <head>
      <title>EXAM01_01</title>
      <style type=“text/css”>
      form{color:black;background-color:lightgray;border:6px solid black;border-width:4px;width:450px;margin:1px;padding:1px;}
      #ans1,#ans2,#ans3,#ans4,#numbers{background-color:white;border:4px solid black;}
      input[type=“button”]{color:black;background-color:red;border:4px solid black;}
      input[type=“text”]{margin:2px;}
      div.title{color:white;background-color:black;float: left; width: 450px; text-align:center;}
      </style>
      </head>
      <body>
      <form>
      <div class=“title”><label>EXAM01_01</label></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>Enter Numbers:</label></div><div style=“float:left;”><input type=“text” id=“numbers” /></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>Sorted List:</label></div><div style=“float:left;”><input type=“text” id=“ans4” /></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>Lowest:</label></div><div style=“float:left;”><input type=“text” id=“ans1” /></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>Highest:</label></div><div style=“float:left;”><input type=“text” id=“ans2” /></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>Average:</label></div><div style=“float:left;”><input type=“text” id=“ans3” /></div>
      <p style=“clear:both;” />
      <div style=“text-align:center;”>
      <input type=“button” value=“Lowest” />
      <input type=“button” value=“Highest” />
      <input type=“button” value=“Average” />
      <input type=“button” value=“Sort” />
      <input type=“button” value=“Clear” />
      </div>
      </form>
      </body>
      </html>

      this is FILE #2 for the second question.
      <!DOCTYPE>
      <html>
      <head>
      <title>EXAM01_02</title>
      <style type=“text/css”>
      form{color:black;background-color:lightgray;border:6px solid black;border-width:4px;width:450px;margin:1px;padding:1px;}
      #ans1,#ans2,#ans3,#names{background-color:white;border:4px solid black;}
      input[type=“button”]{color:black;background-color:red;border:4px solid black;}
      input[type=“text”]{margin:2px;}
      div.title{color:white;background-color:black;float: left; width: 450px; text-align:center;}
      </style>
      </head>
      <body>
      <form>
      <div class=“title”><label>EXAM01_02</label></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>Enter Name List:</label></div><div style=“float:left;”><input type=“text” id=“names” /></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>Answer:</label></div><div style=“float:left;”><input type=“text” id=“ans1” /></div>
      <p style=“clear:both;” />
      <div style=“text-align:center;”>
      <input type=“button” value=“Enter” />
      <input type=“button” value=“Clear” />
      </div>
      </form>
      </body>
      </html>

      this is FILE #3 for the third question.
      <!DOCTYPE>
      <html>
      <head>
      <title>EXAM01_03</title>
      <style type=“text/css”>
      form{color:black;background-color:lightgray;border:6px solid black;border-width:4px;width:450px;margin:1px;padding:1px;}
      #ans1,#ans2,#ans3,#ans4,#ans5,#numbers{background-color:white;border:4px solid black;}
      input[type=“button”]{color:black;background-color:red;border:4px solid black;}
      input[type=“text”]{margin:2px;}
      div.title{color:white;background-color:black;float: left; width: 450px; text-align:center;}
      </style>
      </head>
      <body>
      <form>
      <div class=“title”><label>EXAM01_03</label></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>Enter Grade List:</label></div><div style=“float:left;”><input type=“text” id=“numbers” /></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>A:</label></div><div style=“float:left;”><input type=“text” id=“ans1” /></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>B:</label></div><div style=“float:left;”><input type=“text” id=“ans2” /></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>C:</label></div><div style=“float:left;”><input type=“text” id=“ans3” /></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>D:</label></div><div style=“float:left;”><input type=“text” id=“ans4” /></div>
      <p style=“clear:both;” />
      <div style=“float:left;width:150px;”><label>F:</label></div><div style=“float:left;”><input type=“text” id=“ans5” /></div>
      <p style=“clear:both;” />
      <div style=“text-align:center;”>
      <input type=“button” value=“Enter” />
      <input type=“button” value=“Clear” />
      </div>
      </form>
      </body>
      </html>

      this is FILE #4 for the fourth question.
      <html>
      <head>
      <script>
      function DOM()
      {
      var form=document.createElement(“FORM”);
      form.setAttribute(“style”,“width:400px;background:purple;color:white”);
      var label0=document.createElement(“label”);
      label0.setAttribute(“style”,“display:inline-block;width:400px;text-align:center;background:black”);
      var textTitle=document.createTextNode(“INC PROBLEM”);
      label0.appendChild(textTitle);
      label1=document.createElement(“label”);
      text1=document.createTextNode(“Enter Value:”);
      textbox1=document.createElement(“input”);
      textbox1.setAttribute(“type”,“text”);
      label1.appendChild(text1);
      form.appendChild(label0);
      form.appendChild(label1);
      form.appendChild(textbox1);
      document.body.appendChild(form);

      }
      </script>
      <title>My Title</title>
      </head>
      <body onload=“DOM();”>
      </body>
      </html>

      PLEASE HELP ME!!!

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @T- BONE TUBE last edited by

        @T-BONE-TUBE

        Dude, you are in luck. What you are looking for is here.

        1 Reply Last reply Reply Quote 1
        • T- BONE TUBE
          T- BONE TUBE last edited by

          Would you be able to help me along the way?? really could use help. Think we can exchange emails?? to exchange info???

          Alan Kilborn 1 Reply Last reply Reply Quote 0
          • Alan Kilborn
            Alan Kilborn @T- BONE TUBE last edited by

            @T-BONE-TUBE

            exchange emails

            Not a chance in hell. :)

            1 Reply Last reply Reply Quote 0
            • T- BONE TUBE
              T- BONE TUBE last edited by

              lol im willing you to give u my email??? u cant help me out at all??? ill pay you too

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors