Describe the steps to program development

Assignment Help JAVA Programming
Reference no: EM13136771

Task 1

A. Define and describe the steps to program development.

B. What is an Algorithm? Discuss and provide examples (using psuedocode).

C. How do you put JavaScript into a web page? Explain.

Task 2

A program is required to read in the maximum and minimum temperatures on a particular day and calculate and print the average temperature. Develop the psuedocode to perform this task. Desk Check your solution.

Task 3

A program is required by a company to read an employee's number, pay rate and the number of hours worked in a week. The program is then to compute the employee's weekly pay and print it along with the input data. According to the company's rules, no employee may be paid for more than 60 hours per week and the maximum hourly rate is $25.00 per hour. If more than 35 hours are worked then payment for the overtime hours worked is calculated at time a half. If the hours worked field or the hourly rate field is out of range, then the input data and an appropriate message is to be printed and the employee's pay is not to be calculated

Task 4

A temperature file consists of fifteen records, each containing a temperature in degrees Fahrenheit. A program is to be written which will read and print both temperatures in two columns on a report. Column headings, which read ‘Degrees F' and ‘Degrees C', are to be
printed at the top of the page.

Task 5

Develop JavaScript code that prints current date in the top right corner of your Web page

Task 6

Outline what each of the following code segments does:

A.
<script type="text/javascript">
// Popup window code
function newPopup(url) {
popupWindow = window.open(

url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>

<script language="javascript" type="text/javascript" >
<!-- hide
function jumpto(x){

if (document.form1.jumpmenu.value != "null") {
document.location.href = x
}
}

// end hide -->
</script>
<form name="form1">
<select name="jumpmenu"
onChange="jumpto(document.form1.jumpmenu.options[document.form1.jumpmenu.options.s
electedIndex].value)">
<option>Jump to...</option>
<option value=https://www.test.com> Homepage</option>
<option value=https://www.test.com/javascript/>JavaScript</option>
<option value=https://www.test.com/html/>HTML</option>
<option value=https://www.test.com/css/>CSS</option>
<option value=https://www.test.com/sql/tutorial/>SQL</option>
<option value=https://www.test.com/database/tutorial/>Database Tutorial</option>
<option value=https://www.test.com/web_hosting/>Web Hosting Tutorial</option>
</select>
</form>
<p style="font-family:verdana,arial,sans-serif;font-size:10px;color:#999;">Codes by <a
href="https://www.test.com">Test</a>

C.
<a href="JavaScript:window.print();">Print this page</a>

D.
<a href="JavaScript:window.print();"><img src="/pix/printer_icon.gif" border="0" width="17"
height="17" align="middle" alt="Print Version" /></a>

E.
<input type="button" onclick="alert('Wow... you sure do know how to click!');" value="Click
me..." />

F.
<script type="text/javascript">
function confirmHappy()
{
var happiness=confirm("Are you sure you're happy?");
if (happiness==true)
{
alert("Wow! You seem really happy!");


}
else
{
alert("You should get out more!");
}
}
</script>
<input type="button" onclick="confirmHappy()" value="If you're happy and you know it, click me..." />

G.
<script type="text/javascript">
function displayPrompt()
{
var name=prompt("What's your name?","Homer");
if (name!=null && name!="")
{
alert("Well " + name + ". You seem very daring!");
}
else
{
alert("Hey, I asked you your name!");
}
}
</script>
<input type="button" onclick="displayPrompt()" value="I dare you to click me!" />

H.
<a href="https://www.test.com/html/codes/" onMouseover="JavaScript:window.status='Get your HTML codes here!'; return true;"onMouseout="JavaScript:window.status=''; return true">Hover over me!</a>

I.
<script type="text/JavaScript">
<!--
function timedRedirect(redirectTo, timeoutPeriod) {
setTimeout("location.href = redirectTo;",timeoutPeriod);
}
// -->
</script>
<a href="JavaScript:void(0);"
onclick="JavaScript:timedRedirect(redirectTo='https://www.test.com/html/examples/', timeoutPeriod='2000')">Redirect in 2 seconds...</a>

J.
<script type="text/JavaScript">

function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}
// -->
</script>
<p><a href="javascript:timedRefresh(3000)">Refresh this page in 3 seconds...</a></p>

Task 7
Create a JavaScript clock using functions where appropriate.

Task 8

Create a Multiplication Table Using Nested Loops.

Task 9

Given the following code:
var n = prompt("Check your number", "Type your number here");
n = parseInt(n);
if (isNaN(n))
{
alert("The input cannot be parsed to a number");
}
else
{
if (n == 0)
{
alert("The number is zero");
}
else if (n%2)
{
alert("The number is odd");
}
else
{
alert("The number is even");
}
}

Answer the following questions:

1. With which object would you associate the prompt() method?

2. Prompt() takes two arguments. Where are they displayed?

3. The input from a prompt() is of which data type?

4. What is the function of parseFloat() and parseInt()?

5. What will be result if we send "abcd" through a prompt() input and pass it through parseInt()?

6. What is the use of isNaN()?

Reference no: EM13136771

Questions Cloud

Determine pension expense for the year : Pension data for Goldman Company included the following for the current calendar year: service cost $100,000 PBO, January 1 750,000 plan assets, Janauary 800,000
"push-down accounting and bargain acquisitions" : "Push-Down Accounting and Bargain Acquisitions" Please respond to the following: The accounting profession has engendered much debate on the pros and cons of push- down accounting. Create an argument that push-down accounting provides the most releva..
What volume of the liquid should he use : An experiment requires 45.8 g of ethylene glycol, a liquid whose density is 1.114 g/mL. Rather than weigh the sample on a balance, a chemist chooses to dispense the liquid using a graduated cylinder.
Find cutoff and the score of the sample : Using the .05 level, what should the researcher conclude? Solve this problem explicitly using all five steps of hypothesis testing.
Describe the steps to program development : What is the function of parseFloat and parseInt and what will be result if we send "abcd" through a prompt() input and pass it through parseInt()?
Appropriate use of formatting : Little or no attempt to make appropriate use of formatting, spacing, paragraphs, Tables and diagrams, to address writing style, grammar and spelling.
Determine the appropriate required return on this capital : China is a manufacturing superpower. Assume that you are CFO of an automobile manufacturer looking to build a $U.S.800 million plant in China. You are discussing this project with your spouse, who is intelligent, but has no background in finance.
Select a specific example of life in ancient greece : Discussion 2: Greek Legacy Select a specific example of life in Ancient Greece or the Hellenic world that you believe shows a clear break from the cultures we studied in the last two weeks
Prepare adjusting entry for company to recognize bad debts : Prepare adjusting entry for this company to recognize bad debts under each of the following independent asumptions. Bad debts are estimated to be 2% of credit sales.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Java program to compare two variables if they are equal

Write down program which will ask user to initialize two character arrays, program must compare two variables if they are equal.

  Recognize one high severity vulnerability for computer

Recognize one high severity vulnerability for each computer (if there is one). Explain vulnerability and describe control(s) to minimize risk from vulnerability.

  Implement avl tree

Implement AVL trees that allows both iterative traversal and recursive traversal.

  Prepare executable program and a dictionary program

Prepare executable program and a dictionary Program.

  Implement security so that all users can view the informatio

Implement security so that all users can view the information about the projects, but only authenticated users

  Using a linked implementation of graph write a method

Write a method that takes two nodes as input and returns true if joining an edge between these two nodes, forms a duplicate path to one of the input nodes within the graph.

  Write down java console application to add new student

Write down java console application presents the following menu. Add new student and scores in Biology, Physics and chemistry Search for a given student.

  Implement the application using a singly linked list

Implement the following application using a singly linked list. This application accepts from console and stores a list of 10 names of your friends in the singly linked list

  Create java application-input miles driven and gallons used

Create Java application which will input miles driven and gallons used (both as integers) for each tankful. Program must compute and display miles per gallon obtained for each tankful.

  Understand actual communication with an smtp server

Understand actual communication with an SMTP server can be achieved using TCP Sockets and understand the development of a graphical user interface (GUI) and use of event handling.

  Java threads

This is an introductory assignment on Java synchronization. You will use Java Threads while learning more about concurrency and achieving atomicity using Java’s inbuilt mechanisms.

  Java program to print strings given at command line

Write down program Average.java to print strings which it is given at command line, one per line. If nothing is given at command line, then print "No arguments".

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd