0% found this document useful (0 votes)
92 views3 pages

Fall 2021 - CS101 - 2

The document provides instructions for Assignment #02 in CS101. It states that assignments must be submitted by the due date and in the correct file format to receive credit. It also outlines rules for plagiarism and contacting the instructor. The assignment asks students to [1] create an HTML webpage with their details and [2] perform logical operations on availability status strings for juice flavors. Students must submit their HTML code, output screenshot, and answers in a Word file.

Uploaded by

Hamza Naseer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views3 pages

Fall 2021 - CS101 - 2

The document provides instructions for Assignment #02 in CS101. It states that assignments must be submitted by the due date and in the correct file format to receive credit. It also outlines rules for plagiarism and contacting the instructor. The assignment asks students to [1] create an HTML webpage with their details and [2] perform logical operations on availability status strings for juice flavors. Students must submit their HTML code, output screenshot, and answers in a Word file.

Uploaded by

Hamza Naseer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Introduction to Computing (CS101)

Assignment # 02 Total marks = 20


Fall 2021
Due Date:
December 28, 2021

Please carefully read the following instructions before attempting assignment.

RULES FOR MARKING


It should be clear that your assignment would not get any credit if:
 The assignment is submitted after the due date.
 The submitted assignment does not open or file is corrupt.
 Strict action will be taken if submitted solution is copied from any other student
or from the internet.

You should consult the recommended books to clarify your concepts as handouts are not
sufficient.

You are supposed to submit your assignment in .doc or docx format.


Any other formats like scan images, PDF, zip, rar, ppt, html and bmp etc will not be accepted.

Objectives:
 To understand the concepts of logical operators.
 To understand the concepts and working of basic HTML tags.
 To understand the basic concepts of a webpage development.

NOTE

No assignment will be accepted after the due date via email in any case (whether it is the
case of load shedding or internet malfunctioning etc.). Hence refrain from uploading
assignment in the last hour of deadline. It is recommended to upload solution file at least
two days before its closing date.

If you find any mistake or confusion in assignment (Question statement), please consult
with your instructor before the deadline. After the deadline no queries will be
entertained in this regard.

For any query, feel free to email at:


cs101@vu.edu.pk
Questions no. 01 Marks (15)

Write the HTML code to make a webpage as depicted in the following diagram (Sample output).

Sample Output:

Note:
 Use your VUID as the title of the web page and the contact information should contain
your VU email id that is given at the end of the sample page.
 The VU logo should have a link to open the VU website “https://www.vu.edu.pk/”. You
can include the VU logo in your webpage from the following URL:
https://www.vu.edu.pk/App_Themes/Default/Images/menu-img/logo.png
 You have to write your marks, percentage and grade obtained in the intermediate degree.
 Also add a list of your enrolled courses in the current semester as depicted in the
diagram.

Write the HTML code in the Notepad editor. Name the Notepad file your VU-ID and save the
file with .html extension. Open the .html file and take a screenshot of your output.
Paste your HTML code and output screenshot in the solution file that should be a
Microsoft Word document (.doc or .docx).
Questions no. 02 Marks (5)

Suppose a refreshment center is offering the following 8 flavors of juices and shakes.

Sr. No. Juice

0 Pena Colada

1 Strawberry

2 Pineapple

3 Mango

4 Orange

5 Cookies and cream Milk shake

6 Coffee Milkshake

7 Candy Flavor Milkshake

The availability of these 8 flavors can be represented in the form of an 8-bit status string e.g.
“11111111” where each bit “1” from left to right represents the availability of each flavor in the
table from top to bottom respectively. The left-most bit represents the availability status of Pena
Colada and the right-most bit represents the availability of Candy Flavor Milkshake. In the
status string, “1” means the flavor is available and the unavailability of a flavor will be
represented by “0” at the respective bit position.

Considering the above scenario, perform the following operations:

A. Assuming that all the flavors were available in the morning. If the juices at serial no. 3
and 5 in the table are finished at 2:00 PM, compute the new status string by using the
appropriate logical operation.

B. If the availability status string of juices and shakes is “10101001” at 4:00 PM, check the
availability of the “Coffee Milk Shake” using the appropriate logical operation:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy