List in sequential order, the steps to buying a soda in a ve…

List in sequential order, the steps to buying a soda in a vending machine using the Procedural Task Analysis Method. 1 point for each correct step for a total of 10 points. Assume you are standing in front of the vending machine. Assume you will use a credit card to pay for the soda. Include the following for each step: Action verb How the action takes place Objects used (# and what they are) Time to complete the task Amount  and type of supplies used.

A numeric prediction model X was applied to a validation dat…

A numeric prediction model X was applied to a validation dataset consisting of 5 records. Calculate the MAE, MSE, and R-squared of model X on this test dataset.  (Keep two decimal places and don’t round up. For instance, if your result is 0.926, write 0.92) MAE: MSE: R-squared:

Given the following code, answer the questions. const expr…

Given the following code, answer the questions. const express = require(‘express’); const cookieParser = require(‘cookie-parser’); const app = express(); const port = 3000; app.use(cookieParser()); // Simulate user login and set session cookie securely app.get(‘/login’, (req, res) => {     res.cookie(‘session’, ‘user123token’, {         httpOnly: true,  // Prevent JavaScript access         secure: true,    // Send cookie only over HTTPS         sameSite: ‘Strict’, // Prevent cross-site requests         path: ‘/’     });     res.send(‘Logged in with secure session’); }); // Dashboard now protected from cookie theft app.get(‘/dashboard’, (req, res) => {     res.send(‘Welcome to your secure dashboard!’); }); app.listen(port, () => {     console.log(`App running at https://localhost:${port}`); }); a) Please explain which feature you can add to mitigate the CSRF vulnerability and ensure that the cookie is inaccessible to JavaScript, preventing it from being accessed through document.cookie, and the cookie is only sent over HTTPS connections (15 points).   b) Fix the previous code by adding the features required to protect the system (10 points).   Rubric

After you submit the test and exit Honorlock, please upload…

After you submit the test and exit Honorlock, please upload photos of your scratch paper in the assignment titled “Test 2 Scratch Work” found in the Unit2 Assessments Module.  Anything that you wrote down during the test must be submitted for review, even for questions that did not require you to show your work to the camera.  Failure to upload your scratch work in a timely manner could result in a score of 0 points for this question.