Web Programming

Web Programming is the category for programming for the Internet and World Wide Web. Q&A's include coding in technologies used for Browser, applet based applications, and more.

2,056 Questions
Web Programming
Java Programming

Write a java program to create a shopping bill?

import java.io.*;

class ShopReceipt

{

protected static void main()throws IOException

{

BufferedReader in=new BufferedReader(new InputStreamReader(System.in));

System.out.print("Enter the no. of types of Items Purchased: ");

byte z=Byte.parseByte(in.readLine());

String n[]=new String[z];

byte q[]=new byte[z];

float r[]=new float[z];

float pr[]=new float[z];

System.out.println("PLEASE ENTER::");

for(byte i=0;i<z;i++)

{

pr[i]=0;

System.out.print("Name of Item: ");

n[i]=in.readLine();

System.out.print("Rate of Item: ");

r[i]=Float.parseFloat(in.readLine());

System.out.print("Quantity of Items: ");

q[i]=Byte.parseByte(in.readLine());

pr[i]=r[i]*q[i];

}

double t=0;

for(byte i=0;i<z;i++)

t+=pr[i];

for(byte i=0;i<z;i++)

System.out.print("Item: "+n[i]+"\tQuantity: "+q[i]+"\tTotal Cost: "+pr[i]+"\n");

System.out.print("\nBill:"+t);

if(t>=100&&t<500)

System.out.print("\nGift::\nA Key Ring");

else if(t>=500&&t<1000)

System.out.print("\nGift::\nA Leather Purse");

else if(t>=1000)

System.out.print("\nGift::\nA Pocket Calculator");

}}

342343344
Web Programming

Is XML a scripting language?

XML is not a scripting language.It's a Markup language.

301302303
History, Politics & Society
Entertainment & Arts
Web Programming
Computer Keyboards

Advantages of computers in entertainment?

The proportion of advantages to disadvantages, we can say it as 1:2.

We can play puzzle games, learning games which provides some knowledge. Even we should not play them for more time.

A wide question with a big answer, computers and their interactivity have opened many new kinds of entertainment, games, massively multi-player games, WII, Conect, Xbox, Nintendo, computer games. The computer has also added a myriad of different ways of producing entertainment with motion capture, CGI , computer generated video and sound and animation.

FACEBOOK and other social media could be classed as entertainment. The computer has decimate the music CD business in favor of downloads, they same is happening to cable tv and dvd sales.

275276277
Social Network Websites
Web Programming
Neopets

How do you make a scroll box on Neopets?

If you are looking for a box that holds the neopets website:

<!--Note: The width and height can be changed to fit it how you wish. --->

<iframe src="http://www.neopets.com" width="200" height="200" scrolling="yes"></iframe>

-------------

The other way.

<div style="width: 100px; height: 100px; overflow: auto;"> text </div>

237238239
Web Programming
Visual Basic Programming
Computer Science

What is meant by BASIC in visual basic?

BASIC stands for Beginner's All-purpose Symbolic Instruction Code.

189190191
Web Programming
JavaScript

OR syntax in javascript?

x=10;

y=10;

if (x >= 10 y >= 10) { //dostuff }

OR:

AND: &&

greater than: >

greater than or equals to: >=

less than: <

less than or equal to: <=

equals:

NOT: !

175176177
Web Programming
Computer Programming

Are private class-level variables inherited?

All fields and methods of a class are inherited:

public class A

{private int x =10;public int XVal{get{return x;}}}

public class B:A

{public B(){x = 20;}}

175176177
Jobs & Education
Web Programming

Who is eligible for doing Mtech?

Students who have done their Bachelors (Engineering) can do Mtech.

Those who have completed their 3 year bachelors course like BSc or BCom can go for Masters courses. For Mtech one needs to have a B.E. or a Btech degree.

164165166
Web Design and Publishing
Web Programming
JavaScript

What are client side and server side scripting?

Client side scripting is a script, (ex. Javascript, VB script), that is executed by the browser (i.e. Firefox, Internet Explorer, Safari, Opera, etc.) that resides at the user computer.

Server side scripting, (ex. ASP.Net, ASP, JSP, PHP, Ruby, or others), is executed by the server (Web Server), and the page that is sent to the browser is produced by the serve-side scripting.

So when a server sends out a page, it executes server-side scripts, but does not execute client-side scripts. Once the browser receives the page, it executes the client-side scripts.

Server side scripting can connect to databases that reside on the web server or another server reachable from web server. Client side scripting cannot do that.

Server side scripting can access the file system that reside at the web server, client side cannot.

Server side scripting can access settings belong to Web server while client side cannot.

Client side scripting can access files and settings that are local at the user computer.

Client side scripting consumes cycles from user's computer not web server one, while server side scripting consumes cycles form web server one.

575859
Web Programming

What is the full name of WYSIWYG?

What -you-see-is-what-you-give

99100101
Web Programming

What is a freeform field?

It is a TextBox.

135136137
Web Programming
PHP Programming

What are tokens in drupal?

The tokens available depends on what modules you have enabled on your Drupal site. To view a list of the currently available tokens on your site, you can navigate to the Help > Token (admin/help/token) page.

If the above path is not available on your system be sure that the core help.module is enabled.

133134135
Web Programming

What is the difference between web design and web programming?

Web design concerns the so called 'front-end' of a website ie. the aesthetics and layout. This is usually achieved through HTML, CSS and Javascript. Web programming deals with the 'back-end' of a website ie. the functionality and database. For example, a shopping cart function would require web programming. This is usually achieved through a scripting language such as PHP or Coldfusion.

---

A web designer creates what the website will look like, either on paper or in Photoshop.

A web developer/programmer puts that image into a fully functional website.

127128129
Web Design and Publishing
Web Programming
Microsoft Word

Automatically inserted when you exceed one page?

Automatic Page Break

99100101
Web Programming

How do you make a link on a website?

in HTML you can make a link by using

<A HREF="www.example.com">nameofthelink </a>

919293
Computer Programming
Web Programming

What programming language is used for webOS applications?

HTML5, JavaScript, CSS

858687
Web Programming
JavaScript
HTML

What does HTML stand for and what is it used for?

HTML stands for hyper-text markup language and is a popular language to create websites with. Think of HTML as another language, just like English or Spanish, which tells the computer how to show and render the website you created.

Although there are alot of other languages the computer understands, most people use HTML since it is more popular (think of the popularity of the English language around the world).

515253
Web Design and Publishing
Web Programming
JavaScript

What is mean by Server side and client side scripting?

Server side scripting refers to scripts written to access the server. Server side scripting is used in dynamic websites that are connected databases and websites that potentially run a store per say. Client side scripting is used to run programs on clients web browser. There is no need to access server side for lightweight programs. JavaScript is used for client side and PHP for server side.

818283
Computer Networking
Internet
English Language
Web Programming
Definitions

What is the definition of internet programming?

AnswerThe client server communication established with the help of scripting and markup languages following all the communication protocols and transmission protocols can be defined as Internet programming.
616263
Search Engine Optimization
Web Programming
Human Anatomy and Physiology

Why are boogers green?

They aren't always. It depends on what is in the air you are breathing. They are green because all the mucus and dirt that you breath in is forming together so it makes a weird green color.

636465
Web Programming
HTML

What is HTML?

Hypertext Markup Language (HTML) is the standard language for documents designed to be displayed in a web. It can be assisted by technologies such as (CSS).

525354
Web Programming
Mozilla Firefox
Websites

Why is MediaWiki Sidebar displaced downward in Firefox - but displays normally in IE and Chrome?

I think it may have to do with the latest upgrade of Firefox (9.0.1). This version was released December 21.

But why this upgrade should affect the MediaWiki Sidebar is still unclear to me.

Anyone know what's wrong? See the added related link as an example.

The same displacement of the sidebar happens in several other wikis I'm running (but not all), and many might have the same problem - so please post a quick fix to the problem if you have one!

717273
Web Programming
PHP Programming

How do you retrieve external webpages using PHP?

Use the URL to open the resource as a stream (like you would open any local file by name)

$file = fopen("http://www.google.com/", "r");

fpassthru($file); // or fgets etc...

fclose($file);

see .

697071
Web Programming
Software Engineering

What is p code compiler and it's working?

BEST ANSWER : A translator which generates code for a virtual stack machine.

656667
Web Hosting
Web Programming
HTML

What is VRML and XML?

==VRML and XML== ==VRML== VRML stands for Virtual Reality Modeling Language, anteriorly Virtual Reality Markup Language. VRML is to create 2D and 3D objects to be viewed on the web. ==XML== XML stands for Extensible Markup Language. It's the base of numbers of web desing codes as HTML or XHTML

656667

Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.