/    Sign up×
Community /Pin to ProfileBookmark

Desperate help for a student

Hi guys. This is my first thread here and I really need help with Java. I know that what Im going to ask you is unethical and not very “legal’ but I got into a course in the university (web computing) that has nothing to do with my major and know the end of the course is approaching I dont know a thing.
I have this homework to hand in tomorrow and have no clue of how to do it. Will someone will be so kind to help me out?
I guess it shouldnt be very difficult for all you guys that are so good with this.
Here’s what we are supposed to do.
Thank you very much and if you can help me, please, send me a PM.

Thanks!!

Part 1: (10)

  • 1. Create an HTML document with a head, a title and a body with the
  • following name: part1.html

  • 2.

    Make the title JavaScript Assignment 4 Part 1.

  • 3.

    In the body, display the following message: “Welcome to the

  • temperature calculator!”

  • 4.

    Write a JavaScript program that does the following:

  • 5.

    Prompts the user for the temperature in Farenheit using a pop up

  • window with the text “Please enter temperature in Farenheit:”. The

    default text in the pop-up input field should be 0.

  • 6. The program converts the temperature to Celcius, closes the popup
  • window and displays the converted temperature in the original window

    with the text: “The corresponding temperature in Celsius is:” — no

    other buttons or text should be present. The converted temperature

    should be rounded off.

  • 7. The formula to do the conversion is:
  • Tc = (5/9)*(Tf-32);

    Tc = temperature in degrees Celsius,

    Tf = temperature in degrees Fahrenheit

    Part 2: (10)

  • 1. Create an HTML document with a head, a title and a body. with the
  • following name: part2.html,

  • 2.

    Make the title JavaScript Assignment 4 Part 2..

  • 3.

    In the body, display the following message “Welcome to the Grades

  • Report!”

  • 4.

    Write a JavaScript program that does the following:

  • 5.

    Prompt the user for the grades of 10 students with one prompt for

  • each grade with the prompting text being: “Enter grade between 1 and

    10 for student n:” where n varies from 1 to 10. If the grade input is

    not between 1 and 10, please prompt again for the grade.

  • 6. Once the user is done, it prints a report telling you the grade of
  • each individual student and the average of the ten grades. The

    individual student grade should be in different lines with the text

    “Grade for student n is x”. The average should also be in a different

    line with the text “Average grade is y”. The average grade should not

    be rounded off.

    Part 3: (20)

  • 1. Create an HTML document with a head, a title and a body with the
  • following name: part3.html.

  • 2.

    Make the title JavaScript Assignment 4 Part 3.

  • 3.

    In the body, display a welcome message like “Welcome to Switching

  • Images!”

  • 4. Write a JavaScript program that operates as follows: the document
  • displays an image when first loaded on the browser. When this image

    is clicked, the image is replaced by a second image. When the second

    image is clicked, the image is replaced by the first image. In other

    words, every time an image is clicked, the image is replaced by the

    other.

  • 5. Use the following two images:
  • (i) [url]http://www.bayoustatesportscards.com/Chucks/694px-star_wars_logosvg.png[/url]

    (ii) [url]http://www.bayoustatesportscards.com/Chucks/MechWarrior_Logo_Webstore.jpg[/url]

    Hint 1:

    In this example below, the document displays an image when first loaded on the browser. When this image is clicked, the image is replaced by a second image. However, in this example, when the second image is clicked, nothing further happens.

    <html>

    <head>

    <title>Image switch</title>

    <script language=”Javascript”>

    //The function is called when the image in the body is clicked. The function changes the image source of ‘picture’ to ‘a2.jpg’

    function rollover ()

    {

    document.picture.src = “a2.jpg”;

    }

    </script>

    </head>

    <body>

    <!– there is an image tag below with the name picture that displays ‘a1.jpg’. When the image is clicked, the ‘rollOver()’ function is called

    –>

    <img src=”a1.jpg” name=”picture” border=”0″ onClick=”rollover()”> </body> </html>

    Hint 2:

    Use string comparison to check the value of document.picture.src in order replace one image by another and vice versa.

    to post a comment
    JavaScript

    2 Comments(s)

    Copy linkTweet thisAlerts:
    @mrhooNov 25.2009 — Darn, I had it all done for you, and the dog pushed the delete button...
    Copy linkTweet thisAlerts:
    @musica89authorNov 25.2009 — hahaha... come on... I know its an unethical request but you would've wanted someone to help you someday in your school life.
    ×

    Success!

    Help @musica89 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...