Question

ASSIGNMENT DUE TODAY!!! In HTLML5/JAVASCRIPT/CSS write a script that inputs a dollar amount (using a button)to...

ASSIGNMENT DUE TODAY!!!

In HTLML5/JAVASCRIPT/CSS write a script that inputs a dollar amount (using a button)to be printed on a check, then prints the amount in check-protected format with leading asterisks if necessary. Assume that nine spaces are available for printing the amount. AND write a script that inputs a numeric check amount (using a button)and writes the word equivalent of the amount. For example, the amount 112.43 should be written as ONE HUNDRED TWELVE and 43/100

This all should be one code in HTML5/JAVASCRIPT/CSS ONLY!!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

.currencyinput {
    border: 1px inset #ccc;
}
.currencyinput input {
    border: 0;
}


<span class="currencyinput">$<input type="text" name="currency"></span>
<button onclick="myFunction()">Click me</button>

<script>
function myFunction() {
    var amount=document.getElementById("currency");
var size=amount.length;
if(size==1)
document.write("*********"+amount);
else if(size==2)
document.write("********"+amount);
<<Continue like this for all 9 Values>>
}
</script>

Add a comment
Know the answer?
Add Answer to:
ASSIGNMENT DUE TODAY!!! In HTLML5/JAVASCRIPT/CSS write a script that inputs a dollar amount (using a button)to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT