8. Write an application that displays a series of at least five student ID numbers (that you have stored away in an array) and asks the user to enter a numeric test score for the student. Create a class, and throw a for the class if the user does not enter a valid score (less than or equal to 100). Catch the and the display an appropriate message. In addition, store a for the student\’s score. At the end of the application, display all the student IDs and scores. Save the file as and Due in Week 3 and worth 20 pointsComplete the weekly labs based on the following:
Last Completed Projects
| topic title | academic level | Writer | delivered |
|---|
jQuery(document).ready(function($) { var currentPage = 1; // Initialize current page
function reloadLatestPosts() { // Perform AJAX request $.ajax({ url: lpr_ajax.ajax_url, type: 'post', data: { action: 'lpr_get_latest_posts', paged: currentPage // Send current page number to server }, success: function(response) { // Clear existing content of the container $('#lpr-posts-container').empty();
// Append new posts and fade in $('#lpr-posts-container').append(response).hide().fadeIn('slow');
// Increment current page for next pagination currentPage++; }, error: function(xhr, status, error) { console.error('AJAX request error:', error); } }); }
// Initially load latest posts reloadLatestPosts();
// Example of subsequent reloads setInterval(function() { reloadLatestPosts(); }, 7000); // Reload every 7 seconds });

