John Paul Manuel

This website is still under development. Expect some bugs and errors may occur any time. As of now, you can create profile, post updates and follow each other

- John Paul M. Manuel

Feed

Profile Image
John Paul Manuel (JP)
3 days ago

const students = [
{ lastName: "Agulo", firstName: "Marielle", grades: { math: 89, english: 93, science: 90, history: 85, pe: 95 } },
{ lastName: "Anical", firstName: "Meanalina", grades: { math: 84, english: 91, science: 88, history: 87, pe: 92 } },
{ lastName: "Argosino", firstName: "Yiam", grades: { math: 90, english: 92, science: 89, history: 90, pe: 94 } },
{ lastName: "Badayos", firstName: "Samvea", grades: { math: 88, english: 86, science: 90, history: 84, pe: 91 } },
{ lastName: "Balagtas", firstName: "Armand", grades: { math: 92, english: 89, science: 91, history: 87, pe: 93 } },
{ lastName: "Ballesteros", firstName: "Fer", grades: { math: 85, english: 88, science: 86, history: 83, pe: 90 } },
{ lastName: "Barcelona", firstName: "John", grades: { math: 91, english: 87, science: 90, history: 86, pe: 89 } },
{ lastName: "Chua", firstName: "John", grades: { math: 87, english: 90, science: 88, history: 89, pe: 92 } },
{ lastName: "Dela Cruz", firstName: "Jasmine", grades: { math: 88, english: 92, science: 91, history: 90, pe: 93 } },
{ lastName: "Distor", firstName: "Angel", grades: { math: 84, english: 86, science: 85, history: 82, pe: 89 } },
{ lastName: "Ditchon", firstName: "Lawrence", grades: { math: 90, english: 89, science: 87, history: 85, pe: 90 } },
{ lastName: "Dominguez", firstName: "Lemuel", grades: { math: 93, english: 91, science: 92, history: 88, pe: 96 } },
{ lastName: "Enciso", firstName: "June", grades: { math: 85, english: 87, science: 86, history: 84, pe: 88 } },
{ lastName: "Famorca", firstName: "Angelica", grades: { math: 86, english: 88, science: 87, history: 85, pe: 90 } },
{ lastName: "Godoy", firstName: "Christian", grades: { math: 89, english: 85, science: 88, history: 87, pe: 91 } },
{ lastName: "Jimenez", firstName: "Karl", grades: { math: 90, english: 91, science: 89, history: 86, pe: 92 } },
{ lastName: "Lacpao", firstName: "Rosabie", grades: { math: 83, english: 86, science: 85, history: 82, pe: 88 } },
{ lastName: "Laguidao", firstName: "Andre", grades: { math: 88, english: 90, science: 87, history: 84, pe: 90 } },
{ lastName: "Larangjo", firstName: "Lhance", grades: { math: 85, english: 87, science: 86, history: 83, pe: 89 } },
{ lastName: "Lazaro", firstName: "Janzel", grades: { math: 90, english: 92, science: 91, history: 89, pe: 94 } },
{ lastName: "Legaspi", firstName: "John", grades: { math: 86, english: 88, science: 87, history: 85, pe: 89 } },
{ lastName: "Lopez", firstName: "Jan", grades: { math: 88, english: 86, science: 85, history: 84, pe: 90 } },
{ lastName: "Malonzo", firstName: "John", grades: { math: 87, english: 89, science: 88, history: 86, pe: 91 } },
{ lastName: "Martinez", firstName: "Emmanuel", grades: { math: 91, english: 93, science: 90, history: 88, pe: 95 } },
{ lastName: "Nueva", firstName: "Jan", grades: { math: 84, english: 87, science: 85, history: 83, pe: 88 } },
{ lastName: "Patilano", firstName: "Mark", grades: { math: 90, english: 88, science: 89, history: 86, pe: 92 } },
{ lastName: "Ramirez", firstName: "Jeanine", grades: { math: 85, english: 86, science: 84, history: 82, pe: 87 } },
{ lastName: "Recaña", firstName: "Gerald", grades: { math: 89, english: 90, science: 87, history: 85, pe: 90 } },
{ lastName: "Revereal", firstName: "Jerry", grades: { math: 87, english: 85, science: 88, history: 84, pe: 89 } },
{ lastName: "Tero", firstName: "Jason", grades: { math: 91, english: 92, science: 90, history: 87, pe: 94 } },
{ lastName: "Zapanta", firstName: "Zharla", grades: { math: 88, english: 89, science: 87, history: 86, pe: 91 } }
];

View Full Post
Profile Image
John Paul Manuel (JP)
2 months ago

CS32-2 Web App Dev

Profile Image
John Paul Manuel (JP)
2 months ago

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quiz</title>
<style>
.container {
margin: 10px;
padding: 5px;
}
</style>
</head>
<body>
<div class="container">
<h4 id="number"></h4>
<h2 id="question"></h2>
<div id="choices"></div>
</div>

<button id="start" onclick="startGame()">Start Game</button>
<button id="next" onclick="nextQuestion()" disabled>Next</button>
<script>
const obj = {
results: [
{
question: "What is 1+1",
choices: ["11", "2", "4", "Undefined"],
correct_answer: "2",
},
{
question: "What is the english of aso",
choices: ["cat", "cow", "dog", "frog"],
correct_answer: "dog",
},
],
};
const questions = obj.results;
let currentIndex = 0;
const questionDisplay = document.getElementById("question");
const numberDisplay = document.getElementById("number");
const choicesDiv = document.getElementById("choices");
const startBtn = document.getElementById("start");
const nextBtn = document.getElementById("next");

function startGame() {
showQuestion();
startBtn.disabled = true;
}
function nextQuestion() {
currentIndex++;
nextBtn.disabled = true;
if (currentIndex >= questions.length) {
questionDisplay.textContent = "No questions left";
choicesDiv.innerHTML = "";
const restart = document.createElement("button");
restart.textContent = "Try Again";
restart.onclick = () => {
currentIndex = 0;
choicesDiv.innerHTML = "";
showQuestion();
};
choicesDiv.appendChild(restart);
} else {
showQuestion();
}
}

function showQuestion() {
numberDisplay.textContent = "Question " + (currentIndex + 1);
questionDisplay.textContent = questions[currentIndex].question;
let choices = questions[currentIndex].choices;
choicesDiv.innerHTML = "";
let answered = false;
choices.forEach((choice) => {
const button = document.createElement("button");
button.style.marginLeft = "10px";
button.style.padding = "10px";
button.textContent = choice;
button.onclick = () => {
if (answered) return;
answered = true;

if (choice == questions[currentIndex].correct_answer) {
button.style.backgroundColor = "green";
} else {
button.style.backgroundColor = "red";
}
nextBtn.disabled = false;
};
choicesDiv.appendChild(button);
});
}
</script>
</body>
</html>

View Full Post
Profile Image
Lea Haya Frondozo
4 months ago

wala ng CHAKRAAAA!

Profile Image
John Paul Manuel (JP)
5 months ago

IS21-2

Profile Image
Chadrick P. Kampang
6 months ago

https://www.youtube.com/watch?v=7okaHJsfCPo

About

This website is still under development. Expect some bugs and errors may occur any time. As of now, you can create profile, post updates, comment, and follow each other

Games?

Want to play games? Click here: Play Game

Student Portal

Activity Submissions? Click here: Student Portal

Contact your instructor to access the portal:

PDF Files

Powerpoint Presentations: View Files