Write html page to enter city current temperature

Assignment Help Programming Languages
Reference no: EM1370997

Write HTML page that asks the user to enter the city current temperature and changes the background color depending on that temperature:

• Use HTML form to display textbox as temperature field and a button to change the background color (Use HTML form, do not use JavaScript prompt messages to get user input).

• Change background color according to:

?if temperature<20 change background color to "Blue".
?If 20< temperature <40 change background color to "Yellow".
?if temperature>40 change background color to "Red".

• Validate the temperature textbox and make sure it is not empty, Otherwise display an alert message.

Reference no: EM1370997

Questions Cloud

Illustrate what impact will shift have on equilibrium gdp : Explain different conditions that can make aggregate supply curve shift to right. Explain how this shift on a graph. Illustrate what impact will shift have on equilibrium GDP.
Prepare an income statement and balance sheet : Give a brief written evaluation of Kissick Corporation 's results from operations for the year and its financial position at the end of the year.
Find the time taken to reach the window : If the ball was thrown from the street, when does it reach the street again after it passes by window on the way up.
Explain area that represents profit or loss this firm earn : On a single graph draw marginal cost curve, average total cost curve and average variable cost curve for a typical firm. Explain how area that represents profit or loss this firm will earn.
Write html page to enter city current temperature : Write HTML page that asks user to enter city current temperature and changes background color depending on that temperature.
Difference in the effective annual rates : Bank A offers to lend $10,00 at a nominal rate of 7 percent, compounded monthly. The loan must be repaid at the end of the year.
Advertising between competition and oligopoly : Consider some of products which are widely advertised on television. By what type of firm is each produced the perfectly competitive firm, an oligopolistic firm, or another kind of firm? How many major products can you think of that are not advert..
Explain how that influences marginal benefits : Provide an example for each about decision-making, interaction and workings of economy. Explain how that influences marginal benefits and marginal costs associated with decision to purchase a house.
How numerous cubic centimeters of ice antarctica contain : A pendulum clock with a brass suspension system m is calibrated so that its period is 1s. at 11*C (degree Celsius). If the temperature increases to 44oC, by how much does period change.

Reviews

Write a Review

Programming Languages Questions & Answers

  Design program which ask the user for positive interger

Design a program which ask the user which application to do: after choosing from factorial or triangle(magicSquare), the program must then ask again the user for a positive interger.

  Create a class for performing arithmetic with fractions

Create a class called Rational for performing arithmetic with fractions. Write a program to test your class. 1/2+2/3+3/4.......+98/99+99/100.Use integer variables to represent the private data of the class

  Create new method for random turning

Create new method named randomTurn (this method has no parameters and returns nothing). Select the code that does the random turning.

  Program in visual basic to calculate area of triangle

Write a program in visual basic to calculate area of a triangle.

  Expression evaluate to true if string variable equals string

Write an expression that evaluates to true if and only if the string variable equals the string "end". Suppose that the value of s were "friend".

  Sequence of statements to find first comma in string line

Write a sequence of statements that finds first comma in String line , and assigns to variable clause portion of line up to, but not including the comma.

  Application to convert kilometers in miles

Application will input number of kilometers, compute number of miles, and display number of miles. You will use a constant to store the kilometers-to-miles conversion factor.

  Design classes account-checkingaccount and savingsaccount

Design and write 3 classes - Account, CheckingAccount, and SavingsAccount. Have CheckingAccount and SavingsAccount inherit from Account.

  Write program to accept a list of student-s name

Write a program that will accepts a list of student's name, individual scores for quiz1, quiz2 and quiz3. Your program should then compute for the average of 3 quizzes.

  Create a function that takes a one dimentional array

Create a function that takes a one dimentional array us a argument the function should return only these members from the array which are divisible by 4.

  Write program to establish two savings accounts

Write program which establishes two savings accounts with saver1 having account number 10002 with initial balance of $2,000, and saver2 having account 10003 with initial balance of $3,000.

  Values of variables of logical section of the pseudocode

What are the values of variables a, b, and c after each line of code of each logical section of the pseudocode. Show why the logical section is running.

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