Question: JAVASCRIPT: Need help with this assignment - Please give scrreen shots showing indentation for working coding. Thank you - Finish the code below to create

JAVASCRIPT: Need help with this assignment - Please give scrreen shots showing indentation for working coding. Thank you -

Finish the code below to create a programmer's conversion calculator. When finished, the form-based calculator should have:

A row of buttons for ASCII conversion:

Decimal to ASCII

ASCII to Decimal

A row of buttons for Decimal conversion:

Decimal to Binary

Decimal to Octal

Decimal to Hexadecimal

A row of buttons for Binary conversion:

Binary to Decimal

Binary to Octal

Binary to Hex

A row of buttons for Octal conversion:

Octal to Decimal

Octal to Binary

Octal to Hex

A row of buttons for Hex conversion:

Hex to Decimal

Hex to Binary

Hex to Octal

Remember that decimal is base 10, binary base 2, octal base 8, and hexadecimal base 16. To check your work, use your computer's calculator (using programmer's view), and also do round-trip conversions (e.g., 23 decimal is 10111 in binary, 10111 binary should convert to 23 decimal, of course).

The code introduces a some functions and methods we haven't seen. These include String.fromCharCode (which converts a number to ASCII), .charCodeAt (which converts from ASCII to a number), parseInt (which reads a string and interprets a number out of it, in the specified number base), and .toString (which converts a number to a new base, and turns it into a string). These are all already in the code; you just need to use and add to what's there.

P.S. Does all this repeated code bother you? It should! We'll solve this, soon...

   Conversions    

Conversions

Value:






Result:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!