Sponsored Links


Results 1 to 5 of 5

Thread: CS101 Introduction to Computing Assignment No.2 Solution Spring Semester 2013

  1. #1
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    8,835

    18 CS101 Introduction to Computing Assignment No.2 Solution Spring Semester 2013

    Sponsored Links




    CS101 Introduction to Computing Assignment No.2 Solution Spring Semester 2013


    Assignment Statement:
    You are required to design an HTML page. This page must include:

    Table
    Textbox
    Text area
    Radio button
    List box
    Select box
    Submit and reset buttons

    Your designed page must be exactly same as image given below.
    Detailed Description of Assignment Requirements:
    Please read given requirements carefully and follow them as they are mandatory and each of them carries some marks. Marks will be deducted if any one of the basic requirement is missing.

    CS101IntroductiontoComputingAssignmentNo.02SolutionSpring2013.jpg

    The size of “user detail” and “profile” table border should be “3”.
    The background color should be “Gray shade”.
    All contents of form should be center aligned.
    Form heading should be “Registration Form”.
    Table subtitles should be “User Details” and “Profile”.
    User Details will have Name and Password Field.
    Name will be a text area which will provide option to take names.
    Password field will show password in the form of asterisks (*).
    In Profile part there will be Languages, Gender, Qualification, Description, Additional Info and Submit and Reset Buttons.

    Languages will be shown as Check box and these will include checkbox of English, Urdu, Punjabi and Arabic.
    Radio button should be used to select Gender option i.e. Male or Female.
    Drop down list will show qualification. This will include MCS, MBA, M.COM, BBA, BIT, and BCS. From these six MCS will be selected as default. Along with this your student id should be shown as given in image.
    Description will be a text area.
    Additional Info will be also a text area. In this text area you will write your next 10 year future plan. This must not exceed more than 500 words.
    On submit button when any user will click then user will move on to the following link:
    When user will click on Reset button, all fields should be reset to blank.
    The assignment should be prepared using HTML only; no JavaScript is required in any part of the assignment.

  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    8,835
    Idea Solution


    <HTML>
    </Head>
    <body onunload="dontcloseme()">
    <form name="frm" method="post" action="http://www.vu.edu.pk">
    <Table align="center" bgcolor="lightgray" height="100" width="100">
    <TD>
    <Table align="center" border="0" bgcolor="lightgray">


    <table>
    <TD>
    <Table valign="center" border="3">
    <P align="center"><B>Registration Form</B></P>
    <ExpenseTitle type="title" group="1" enablehtml="0" required="0" readonly="0" savelabel="0">
    <en>User Details</en>
    </ExpenseTitle>
    <TR>
    <TD width="150" align="left"><B>Name: </B></td>
    <TD width="200"> <input type="text" name="Sender" size="15"</td>
    <Tr>
    <TR>
    <TD width="150" align="left"><B>Password:</B></td>
    <TD width="200"><input type="password" name="ID" size="15" maxlength="11"></td>
    </tr>
    </table>

    <br>
    <br>
    <ExpenseTitle type="title" group="1" enablehtml="0" required="0" readonly="0" savelabel="0">
    <en>Profile</en>
    </ExpenseTitle>
    <Table valign="top" border="3">
    <Tr>
    <TD width="150" align="Left"><B>Languages:</B></td>
    <TD width="200">
    <input type="checkbox" name="format" value="English"> English
    <br>
    <input type="checkbox" name="format" value="Urdu"> Urdu
    <br>
    <input type="checkbox" name="format" value="Punjabi"> Punjabi
    <br>
    <input type="checkbox" name="format" value="Arabic"> Arabic
    </td>
    </tr>
    <TR>
    <TD width="150" align="left"><B>Gender:</B></td>
    <TD width="200">
    <input type="Radio" name="format" value="Male"> Male
    <br>
    <input type="radio" name="format" value="Female" checked> Female
    </td>
    </tr>
    <Tr>

    <TD width="150" align="left"><B>Qualification:</B></td>

    <TD width="200">
    <select size="1" name="Qualification">
    <option value="Select" Selected>MCS
    <option value="Qualification1">MBA
    <option value="qualification2">M.COM
    <option value="qualification3">BBA
    <option value="qualification4">BIT
    <option value="qualification5">BCS </select>
    <b>Student ID</b></TD>
    </Tr>
    <Tr>
    <TD width="150" align="left"><B>Description:</B></td>
    <TD><Textarea name="address" cols="20" rows="3"></textarea></td>
    </tr>
    <Tr>
    <TD width="150" align="left"><B>Additional Info:</B></td>
    <TD><Textarea name="address" cols="20" rows="3"></textarea></td>
    </tr>
    <Tr>
    <Td width="150" align="right"> </td>
    <TD>
    <input type="submit" name="order" value="Submit">
    <input type="reset" value="Reset">
    </td>
    </tr>
    </table>
    <tr>
    </TD>
    </table>
    </td>
    </table>
    </td>
    </table>
    </td>

    </body>
    </html>

  3. #3
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    8,835
    Question 1 Marks 10
    Suppose you are a part of a software development team and you are asked to draw a flow chart of algorithm given below.
    Algorithm’s Details:
    The given algorithm is taking a number ‘n’ as input from user and print the sum of even and odd numbers from 1 to n. The algorithm scans from n to 1(or 1 to n). It checks whether the number is even or odd. If number is even, add that number in SUM_EVEN and if it is odd, then add it in SUM_ODD and decrement the value of n by 1.
    Algorithm:
    1. Start
    2. Declare two variables and initialize them with 0( SUM_ODD=0, and SUM_EVEN=0)
    3. Input “n”
    4. Repeat while n>0
    If(n%2==0)
    SUM_EVEN=SUM_EVEN + n
    else
    SUM_ODD=SUM_ODD + n
    n=n-1
    5. Print SUM_EVEN and SUM_ODD
    6. Stop

  4. #4
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    8,835
    N" v:shapes="Flowchart_x003a__x0020_Decision_x0020_7" >
    Algorithm’s Details:

    The given algorithm is taking a number ‘n’ as input from user and print the sum of even and odd numbers from 1 to n. The algorithm scans from n to 1(or 1 to n). It checks whether the number is even or odd. If number is even, add that number in SUM_EVEN and if it is odd, then add it in SUM_ODD and decrement the value of n by 1.
    Flowchart:

  5. #5
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    8,835
    Draw flowchart to find the largest among three different numbers entered by user.



    123.jpg

    Sponsored Links

  6. Sponsored Links

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 07-09-2013, 10:37 PM
  2. Replies: 0
    Last Post: 05-20-2013, 10:15 PM
  3. Replies: 1
    Last Post: 04-25-2013, 05:57 PM
  4. Replies: 1
    Last Post: 07-02-2012, 03:24 PM
  5. Replies: 3
    Last Post: 06-28-2011, 10:49 PM

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.
Online Education | JhelumSoft