Read without ads and support Scribd by becoming a Scribd Premium Reader.
 
MBA IS- 4th SEM MI0041  Java & Web Design
Assignment Set- 2
Q.
1 Give one example each for the following and explain the uses1
.
Web Design Tools, 2
.
HTML Editors, 3
.
Adobe Photoshop, 4
.
Adobe Flash, & 5
.
Firebug Browser1
.
Web Design Tools:
Design for the Web is one of the most significant areas that are emerging in thedevelopment of websites. Web design refers to the task of developing a Web page or the user interfaceof the Web page. The design of a Web page acts as a medium between people and information. Themajor intention of Web design is in the development of attractive Web pages that reside on Webservers. Web design tools concentrates more on the presentation of contents using hypertext, images,videos, and so on.There are various tools available today that help us develop and design Web pages. We can term theseas design tools. Design tools help us to design attractive Web pages easily and quickly. Some of thepopular Web design tools are as follows:HTML Editors.Adobe Photoshop.Adobe Flash.Firebug Browser.
2
.
HTML Editors:
HTML editor refers to a software application that we can use to create Web pages. Itprovides us with various tools that are required to design a Website. Even though the HTML files can bewritten using any text editor such as notepad or textpad, specialised HTML editors can provideconvenience and additional functionalities. It not only offers support to work with HTML tags but alsoprovides support to work with technologies such as Cascading Style Sheets (CSS), Extensible Mark-upLanguage (XML) and JavaScript. They even help us to handle the interactions that happen with remoteWeb server through the File Transfer Protocol (FTP) and Web-based Distributed Authoring andVersioning (WebDAV). HTML Editor is useful as we need not have to type or remember all the HTMLtags. We can say that it is just like the word processor where we type the content and apply the requiredformats. We can see the HTML source as well as view how the Webpage would look like when viewedon the Web browser, by switching to the display format.
3
.
Adobe Photoshop:
Adobe Photoshop is a software application package useful in editing images and isconsidered as an important tool for Web designing. It is an excellent tool to create attractive Websites.Photoshop can read and write raster and vector image formats. For example, gif, jpeg and png. An imagein raster format is described in a table of pixels, where each pixel has a specific color.
Adobe Photoshop is considered as an image editing tool for Web design as it useful in the followingways:
1.
 
It helps you to tune your art work to the design of your a Web page on your Website.2.
 
It can be used to add graphics to your videos that you might have uploaded on your Website.3.
 
It helps to create different types of web banners and buttons that would enhance the look of your Website.4.
 
It also helps us to turn an image or photograph look like a work of art, that is, to look like apainting.5.
 
It can be used to create a rollover effect to the images or button on your Web pages easilywithout writing any code by just adding different behaviours to different images or buttons.Here, by rollover effect we mean that we can make a particular area of an image to changewhen you click or move the mouse over an image.
 
4
.
Adobe Flash:
Adobe Flash is a multimedia graphics program that is used to create interactive Webpages, videos and animations. It can be embedded inside any HTML program to create interactive Webpages. Other than being used for creating interactive Web pages it is also widely used in games andadvertisements.Adobe Flash helps you to create interactive videos on the Web. It uses vector graphics. Here, vectorgraphics refers to graphics that can be scaled to any size of our choice without any loss in quality orclarity. We need not have any kind of programming knowledge to use this software as it is very easy tolearn. It captures user input through keyboard, mouse, microphone and camera.
We will now look into some of the uses of Adobe Flash
.
Some of the uses of Adobe Flash are asfollows:
1.
 
It helps us to load Flash movies at a faster pace when compared to animated GIF's. This isbecause animated GIF's includes numerous images saved in one image. Thus when a Webbrowser loads such an image, the browser may need to load all the frames of the image beforedisplay. Therefore, it takes longer time for a GIF image to load.2.
 
It helps to create simple animations and buttons quickly and easily.3.
 
It supports interactivity. Thus, it helps us to control animations using Flash software. Forexample, we can begin animating an image after the user clicks on a button.4.
 
It is possible to embed the animations created using Flash into a Web page.5.
 
It is mostly used in the creation of vector based animations and helps in reducing the file sizes.Reduction in the file size helps to quickly download and play movies on the Web pages.
5
.
Firebug Browser:
Firebug is also an excellent Web development tool, which is an add-on for MozillaFirefox. It provides us with various tools to inspect, edit, and debug Web pages. This add-on provides usa tabbed interface that facilitates us to edit as well as debug HTML, CSS and JavaScript codes in any Webpage. It also offers DOM (Document Object Model) inspection and appraisal related to the performanceof Websites.
Some of the uses of Firebug Browser are as follows:
1.
 
It is very easy to learn the tool as it is user friendly. It also provides you the facility to open theFirebug window within your Web browser, as you saw in Figure 10.1, or as a separate window.2.
 
It lets us examine and edit the HTML tags. Whenever there is any change in the HTML code theFirebug highlights the modifications made in yellow.3.
 
It even lets you make modifications to the code and see the output of the change instantly.
Q.
2 Write a Java program to demonstrate the use of control statements (all three statemnts) in Java
.
 Answer:
 We know that a program is a collection of statements that are carried out to accomplish a task whichwas decided in advance. And, in a program, normally the statements are executed in sequential order,which is called sequential execution or sequential control flow. Thus, you can define Control statementsas the statements which are used for controlling the execution flow in a program. In Java, we can classifythe control statements into three categories namely, looping statements, conditional statements, andspecial control statements, as depicted in the figure below:
 
 
Java Control Statements1
.
Looping statements:
Looping statements are those statements, which enables you to execute groupof statements frequently. They are also called as iteration statements. You will notice that the JAVAprogramming language has three types of looping statements/constructs, namely, for, while, and do-while. Let us briefly describe them.
For loop:
For loop is the most flexible looping statement, used for the continuous execution of a piece of code until a specific condition is satisfied. We use the following syntax of for loop.
While loop:
While loop is a looping statement which frequently executes a block of statements as longas a condition remains true, look at the syntax of while loop.
Do-while loop:
Do-while loop is a looping statement, which is used like while loop (which frequentlyexecutes a block of statements as long as a condition remains true). The difference between the do-while and while loops is that, in the do-while loop, the statements within the loop are guaranteed to beexecuted at least once regardless of the condition evaluation, do-while loop below:
Search History:
Searching...
Result 00 of 00
00 results for result for
  • p.
  • Notes
    Load more