CIS 371 |
Practice Coding Final |
Winter 2020 |
Below are several practice problems for the coding portion of the final exam. They are not due for credit.
GitHub Classroom link: classroom.github.com/a/LmV8uD1m
For the real exam, you will be expected to use GitHub Classroom to retrieve and submit the problems.
Make sure your code works on several different files. For the real exam, I will test your code on HTML files that you don't have access to.
Add JavaScript to getteysburg.html
so that when the "Decorate" button is pushed
all-caps
class become ALL CAPS, andupcase
class Begin With A Capital Letter.Add JavaScript to maxMin.html
compute and display the maximum, minimum, and average of a
list of test values. When the page loads, it should display 10 input fields for 10 test scores. There should also be a "Submit" button and a "More" button.
Bonus: Add a "Remove" button that, when clicked, will display a small, clickable "x" next to each input field. Clicking an "x" will remove the corresponding input field.
Write a JavaScript function (or class) that will let you show and hide the contents of a list. Specifically, look for
a container with a class of hideableList
. That container will have another container with a class of
hl-header
.
Clicking on the header should toggle whether the list below is visible. You can use hideableLists.html
for testing.
A list of states
Hints:
hideableList
. You can use a local variable in that function to keep track of whether the list is visible or hidden.block
, inline-block
, etc.)
hl-header
container.'\u25BC'
.
'\u25B6'
.
element1.insertBefore(element2,element1.childNodes[0]);
Write a web page using only HTML, CSS, and JavaScript that displays a receipt for an online order.
https://www.cis.gvsu.edu/~kurmasz/Orders/:id
(where :id
is the order number).Repeat Problem 4. This time, use React
Updated Monday, 6 April 2020, 2:00 PM