SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 4 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 13 Dec 2017 My Price 10.00

Lab 8 Requirements You are currently working as a developer

I'm having some trouble with this Javascript program. I need to make it display whether a valid number (non negative and not a string) has been placed into the text box but I cannot figure out how. Any and all help is appreciated.

  • CMSY 172 – Lab 8 Requirements You are currently working as a developer at a small web development firm. The design team has developed a prototype
    interface for numeric input that needs to be tested. You have been assigned to write a test script that validates the
    numeric input when input is entered and the check number button is clicked. Figure 1 - Prototype Interface The design team has provided you with a project folder that includes all of the necessary resource files. Use the lab8.js
    file located in the js sub-folder to write your test script. Do not modify any other resource files.
    The test script has the following processing requirements:
    1. It must verify that the user has input a value before further processing.
    a. Display an error message if there is no input value. ( Page 3 - figure 2)
    2. The value entered must then be tested to ensure it is a number.
    3. Based on the result of the number test: display a message that states whether or not the input is a valid
    number. (Page 3 - figure 3 & 4) The script must employ the following JavaScript & DOM functions, methods, and properties:
    - getElementById() method (DOM) Use the HTML form input control with the id valueToCheck to get the input value using the control's value
    property. Use the HTML paragraph element with the id output to display your valid/invalid message using the
    innerHTML property.
    - value property
    - string trim method
    - isNaN function
    - innerHTML property (DOM)
    (JS)
    (JS)
    (DOM) - used by the getValue function to get the input value from the form field
    - used to trim whitespace from beginning/end of input value
    - used to test if the input value is a numeric value
    - used by the outputMessage function to display output messages The script must include the following functions for processing (stubs are provided in the lab8.js file):
    • getValue() form event handler function: used to get the input value from the form and then pass the input
    value to the validInput function. Trim all white space from the input value before passing it to the validInput
    function. • validInput() function – used to validate that the input value is not empty and is a numeric data type. Has one parameter: the input value to verify Called from the getValue function. Uses the outputMessage function for output messages. • outputMessage() function – used to display valid/invalid input messages. Has one parameter which will hold a string passed in by the validInput function. The string will be one of
    the three messages indicated below in figures: 2, 3, and 4. Figure 2 Error message: No Input Figure 3 Valid input message Figure 4 Invalid input message

Attachments:

Answers

(5)
Status NEW Posted 13 Dec 2017 09:12 AM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)