HTML/JavaScript Web Application Answers

Questions answered by Experts: 588

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Write a Javascript Program (1 HTML File) that will input an integer value n and display (upon a button click) the following:

     1. The nth factorial (Using a While Loop)

     2. The sum of the first n numbers (Using a Do While Loop)

     3. The Average of the first n numbers (Using a For Loop)


Income Tax Calculator Program


Input the Taxable Income and Compute the income tax using the following table:

*Note: Do not use prompts for user inputs. Use the HTML input tag.



over but not over Rate

--- 250,000 0%

250,000 400,000 20% of the excess over 250,000

400,000 800,000 30,000+25% of the excess over 400,000

800,000 2,000,000 130,000+30% of the excess over 800,000

2,000,000 8,000,000 490,000+32% of the excess over 2,000,000

8,000,000 ---- 2,410,000+35% of the excess over 8,000,000



Ex)

Taxable Income Income Tax

180,000 0

320,000 14,000

520,000 60,000

930,000 169,000

2,400,000 618,000

10,000,000 3,110,000



A School District has its own internal mail. However, it can’t accept packages that

weigh more than 0.5 kg or are larger than 0.2 cubic meters. Write a program that asks the user

to input the weight of a package and its three dimensions (length, width, and height) in meters.

If the package doesn’t meet the requirements, it should say why it failed, otherwise give a

success message.


(a) Use the eight-decimal digit floating point representation as given in


your Block 1, Unit 1, Section 1.3.1 page 29 to perform the following


operations:


(i) Represent 0.000001235432 and 257890000012 as floating


point numbers in normalised form using chopping for first


number and rounding for second number.

d) Create a database for a Student management system consisting of the following two tables:


Student (SID, name, highest qualification, Pcode)


Programme (Pcode, ProgrammeName, Duration, Fee)


Develop and deploy a web based “Programme Information System” using JSP, any database


backend and any web server. Your system should use JDBC for input of information to both


the tables. In addition, this system should output Programme wise list of students on the


screen.


Submit the JSP program, screens and database for the system. You must demonstrate this


system at the time of viva voce.


Make and state suitable assumptions, if any.

c) Write JSP programs which can perform the following tasks: (you may create a single or


multiple web pages for these tasks):


(i) A page requires input of three variables a, b, and c, it then finds and displays the largest


of these three variables. Write the JSP code for the above.


(ii) Create a login page for students which should create two cookies namely userID and


password on successful login by a student.

b) Explain with the help of an example/diagram or write code for the following using JSP:


a) The purpose of using implicit objects in JSP with the help of an example.

b) Explain with the help of an example/diagram or write code for the following using JSP:


a) The role of action elements in JSP with the help of an example of <jsp:usebean)



b) Explain with the help of an example/diagram or write code for the following using JSP:


a) Use of scriptlet with the help of an example on displaying a number series from 1 to 10



b) Explain with the help of an example/diagram or write code for the following using JSP:


a) b) Need of Directives in JSP with the help of taglib directive.

LATEST TUTORIALS
APPROVED BY CLIENTS