Google Groups
Subscribe to Vuhelps
Email:
Visit this group
+ Reply to Thread
Results 1 to 5 of 5
dqw
  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post

    Icon51 CS101 Assignment#4( help required plz)

    Cheap Webhosting
    Please help me to solve this assignment as soon as possible. Thanking in anticipation..........

    Attached Files

  2. The Following User Says Thank You to hasnatahmed For This Useful Post:

    tubasafdar (01-23-2012)

  3. #2
    Super Moderator Vuhelper's Avatar Users Flag!
    Join Date
    Apr 2011
    Posts
    17,438
    Thanks
    15
    Thanked 96 Times in 87 Posts
    Code:
    <html>
    <head>
    <script type="text/javascript">
    function multi() {
    var par_elem = document.getElementById("table");
    while(par_elem.childNodes.length) {
    par_elem.removeChild(par_elem.childNodes[0]);
    }
    var input = 0.5;
    while(input < 1 || input > 12 || parseInt(input) != input) {
    if(input_str === null) {
    create_button();
    return;
    }
    var error = (typeof(input_str) != "undefined") ? "Your input is not a value between 1 and 12 or is not an integer. Try again.\n" : "";
    var input_str = window.prompt(error + "Enter a value between 1 and 12 (inclusive, integer only)", "");
    var input = new Number(input_str);
    }
    var table = document.createElement("table");
    table.style.border = "1px solid #000000";
    table.style.borderCollapse = "collapse";
    var hrow = document.createElement("tr");
    var heading = document.createElement("td");
    heading.colSpan = 5;
    heading.style.backgroundColor = "#C0C0C0";
    heading.appendChild(document.createTextNode("multiplication table for: " + input));
    hrow.appendChild(heading);
    table.appendChild(hrow);
    for(var i = 1; i < 13; i++) {
    var color = (i / 2 == Math.floor(i / 2)) ? "#E0E0FF" : "#F0F000";
    var tr = document.createElement("tr");
    var value = document.createElement("td");
    value.style.backgroundColor = color;
    value.appendChild(document.createTextNode(i));
    var times = document.createElement("td");
    times.style.backgroundColor = color;
    times.appendChild(document.createTextNode("times"));
    var inp_cell = document.createElement("td");
    inp_cell.style.backgroundColor = color;
    inp_cell.appendChild(document.createTextNode(input));
    var equals = document.createElement("td");
    equals.style.backgroundColor = color;
    equals.appendChild(document.createTextNode("equals"));
    var result = document.createElement("td");
    result.style.backgroundColor = color;
    result.appendChild(document.createTextNode(i * input));
    tr.appendChild(value);
    tr.appendChild(times);
    tr.appendChild(inp_cell);
    tr.appendChild(equals);
    tr.appendChild(result);
    table.appendChild(tr);
    }
    par_elem.appendChild(table);
    if(document.all && !window.opera) par_elem.innerHTML = par_elem.innerHTML;
    create_button();
    }
    function create_button() {
    var ie = (document.all && !window.opera);
    if(ie) var button = document.createElement("<input type='button' value='new multiplication table'>");
    else {
    var button = document.createElement("input");
    button.type = "button";
    button.value = "new multiplication table";
    }
    button.onclick = multi;
    document.getElementById("table").appendChild(button);
    }
    window.onload = multi;
    </script>
    </head>
    <body>
    <div id="table"></div>
    </body>

  4. #3
    Junior Member
    Join Date
    Dec 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    plz send me 4 assingment of cs201.

  5. #4
    Administrator
    Join Date
    Oct 2011
    Posts
    494
    Thanks
    1
    Thanked 30 Times in 21 Posts
    you can check the code of html provided by vuhelper
    03009520262
    Rabeel Website

  6. #5
    Junior Member
    Join Date
    Dec 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    but sir i need solution of cs201 assignment no 4 plz help me

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. CS101 Assignment#4( help required plz)
    By hasnatahmed in forum Mcs
    Replies: 0
    Last Post: 01-12-2012, 08:55 PM
  2. cs101 assignment
    By suleman in forum MBA
    Replies: 5
    Last Post: 12-25-2011, 10:37 PM
  3. solution of cs101 assignment # 2 :-)
    By Nazeer Ahmad khan in forum Get Solution In 24 Hour
    Replies: 1
    Last Post: 11-14-2011, 09:23 PM
  4. cs502 assignment solution required assignment no 1
    By mc100200446 in forum Get Solution In 24 Hour
    Replies: 0
    Last Post: 10-31-2011, 09:58 PM
  5. Assignment No. 1 CS101 Need Solution ????
    By a.1i_x in forum Assignments & Solutions
    Replies: 7
    Last Post: 10-28-2011, 10:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Desitoon |Vugurus|Urducell|Online Education|Indian Dramas