1. a) Create a js function, which converts a single word into a piglatin. b) Create a page with text area. Add a button to convert to piglatin. Convert each word to piglatin and show the updated...

1. a) Create a js function, which converts a single word into a piglatin.
b) Create a page with text area. Add a button to convert to piglatin. Convert each word
to piglatin and show the updated sentence in output div.
2. Use the following two arrays for states and capitals. Create a new array for a sorted list
of capital. Update/create a new array for states so that it is parallel to the sorted array
of capitals.

3. STATES = ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California',
4. 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia',
5. 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa',
6. 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland',
7. 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri',
8. 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey',
9. 'New Mexico', 'New York', 'North Carolina', 'North Dakota', 'Ohio',
10. 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina',
11. 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont',
12. 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming'];
13. CAPITALS = ['Montgomery', 'Juneau', 'Phoenix', 'Little Rock', 'Sacramento',
14. 'Denver', 'Hartford', 'Dover', 'Tallahassee', 'Atlanta',
15. 'Honolulu', 'Boise', 'Springfield', 'Indianapolis', 'Des Moines',
16. 'Topeka', 'Frankfort', 'Baton Rouge', 'Augusta', 'Annapolis',
17. 'Boston', 'Lansing', 'St. Paul', 'Jackson', 'Jefferson City',
18. 'Helena', 'Lincoln', 'Carson City', 'Concord', 'Trenton',
19. 'Santa Fe', 'Albany', 'Raleigh', 'Bismarck', 'Columbus',
20. 'Oklahoma City', 'Salem', 'Harrisburg', 'Providence', 'Columbia',
21. 'Pierre', 'Nashville', 'Austin', 'Salt Lake City', 'Montpelier',
22. 'Richmond', 'Olympia', 'Charleston', 'Madison', 'Cheyenne'];
20% of your Extra Credit Assignment goes towards validating your HTML and CSS code, and
properly indenting and documenting your JavaScript code. You will receive 10 points for this
Extra Credit. This will make up for an assignment that you may have missed.
PreviousNext
https://uwgby.instructure.com/courses/360163/modules/items/ XXXXXXXXXX
https://uwgby.instructure.com/courses/360163/modules/items/ XXXXXXXXXX
May 09, 2021

Submit New Assignment

Copy and Paste Your Assignment Here