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

  Implement a card game in java

In this assignment, you will be asked to implement a card game. You will need to make several design decisions for your code. It will be expected that all classes you write will utilize the principle of encapsulation.

  Write a java program called salesinfominer

Write a Java program called SalesInfoMiner that reads in a file of products, stored in text format. The program must then read in information about past sales transactions and output all the products to a new file, sorted by product description,..

  Java enumeration lettergrade represent letter grades

Write a java enumeration LetterGrade that represents letter grades A through F, including plus and minus grades. Define a private instance variable holding a boolean value.

  What position along the chord does minimum pressure occur

At what position along the chord does the minimum pressure occur? What is special about the point where C p is a maximum?

  Simulate some people catching fish in a lake in java program

In this project, you will simulate some people catching fish in a lake. The purpose of the assignment is to get used to using Arrays as well as getting more experience in having objects interact together.

  Develop java applet that will help elementary school student

Develop a Java applet that will help an elementary school student learn multiplication. Use the Math.random method or a Random object to produce two positive one-digit integers.

  Java application to permit user to enter ten numbers

Write down Java application which permits a user to enter 10 numbers (double precision) into the array and then sorts and displays numbers from lowest to highest.

  Client server monitoring system project design

client server monitoring system project design. The server adminstation can send messages to the clients and DESIGN WITH JAVA NETBEANS AND GUI.

  Design and implement a sorting algorithm

Your task is to design and implement a sorting algorithm and running time grows as a linear function of the array

  Write java program to reads ten values from user

Write the java program which reads 10 values from user and store them in 1 daimantion array. your program will ask the user wich operation he wants to perform:

  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 for line item application

This exercise explains you the process of testing and enhancing Line Item application. Open LineItemApp, Validator, Product, LineItem, and ProductDB classes that are in the c:java1.6ch06LineItem directory and review this code.

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