Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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.





Codes by href="http://www.test.com">Test

C.
Print this page

D.
height="17" align="middle" alt="Print Version" />

E.


F.



G.



H.
Hover over me!

I.

onclick="JavaScript:timedRedirect(redirectTo='http://www.test.com/html/examples/', timeoutPeriod='2000')">Redirect in 2 seconds...

J.

Refresh this page in 3 seconds...



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()?

Java, Programming

  • Category:- Java
  • Reference No.:- M9744485

Have any Question?


Related Questions in Java

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Answer the following question whats the difference public

Answer the following Question : What's the difference public inheritance and private inheritance? What can derived classes inherit from base classes? What cannot be inherited from base classes?

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a spe ...

Can someone help me please with those question1what is the

Can someone help me please with those question 1:what is the best data type for student id datatime,currency,number,decimal 2:which relationshipis preferable? one to one,one to many,many to many 3:if you add table A's pr ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

Assessment instructionsin this assessment you will complete

Assessment Instructions In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using th ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As