diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/E-commerce/eCommerce.dtd b/E-commerce/eCommerce.dtd new file mode 100644 index 0000000..24e8ae6 --- /dev/null +++ b/E-commerce/eCommerce.dtd @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/E-commerce/index.html b/E-commerce/index.html new file mode 100644 index 0000000..10347cd --- /dev/null +++ b/E-commerce/index.html @@ -0,0 +1,35 @@ + + + + + + + E-commerce Product Form + + + +

Product Information Form

+
+ +

+ + +

+ + +

+ + +

+ + +

+ + +

+ + +
+ + + \ No newline at end of file diff --git a/E-commerce/process.xml b/E-commerce/process.xml new file mode 100644 index 0000000..7f81a64 --- /dev/null +++ b/E-commerce/process.xml @@ -0,0 +1,21 @@ + + + + + 12345 + Wireless Mouse + 20.99 + 2024-11-19 + John Doe + Best Electronics + + + + 67890 + Keyboard + 30.50 + 2024-11-15 + Jane Smith + Tech World + + diff --git a/TenNos.js b/TenNos.js new file mode 100644 index 0000000..e06b930 --- /dev/null +++ b/TenNos.js @@ -0,0 +1,23 @@ +// Static array of ten numbers +const numbers = [5, -3, 0, 12, -7, 0, 8, -1, 0, 4]; + +// Initialize counters +let negativeCount = 0; +let positiveCount = 0; +let zeroCount = 0; + +// Loop through the numbers and count positives, negatives, and zeros +numbers.forEach((num) => { + if (num < 0) { + negativeCount++; + } else if (num > 0) { + positiveCount++; + } else { + zeroCount++; + } +}); + +// Display the results +console.log(`Positive numbers count: ${positiveCount}`); +console.log(`Negative numbers count: ${negativeCount}`); +console.log(`Zero count: ${zeroCount}`); diff --git a/alumniValidation.html b/alumniValidation.html new file mode 100644 index 0000000..bbc7c4f --- /dev/null +++ b/alumniValidation.html @@ -0,0 +1,104 @@ + + + + + + + Alumni Form + + + + +

Alumni Form

+
+ + + + + + + + + + + + + +
+ + + + + \ No newline at end of file diff --git a/formValidation.html b/formValidation.html new file mode 100644 index 0000000..0cff56f --- /dev/null +++ b/formValidation.html @@ -0,0 +1,96 @@ + + + + + + + Simple Form Validation + + + + +

Form Validation

+
+ + + + + + + + + + + + + +
+ + + + + \ No newline at end of file diff --git a/helloworld.js b/helloworld.js new file mode 100644 index 0000000..24a033a --- /dev/null +++ b/helloworld.js @@ -0,0 +1,11 @@ +import React from "react"; + +function App() { + return ( +
+

Hello World

+
+ ); +} + +export default App; diff --git a/library/index.xml b/library/index.xml new file mode 100644 index 0000000..e2b4bc2 --- /dev/null +++ b/library/index.xml @@ -0,0 +1,28 @@ + + + + + The Great Gatsby + F. Scott Fitzgerald + Charles Scribner's Sons + 1925 + + + 1984 + George Orwell + Secker & Warburg + 1949 + + + To Kill a Mockingbird + Harper Lee + J.B. Lippincott & Co. + 1960 + + + The Catcher in the Rye + J.D. Salinger + Little, Brown and Company + 1951 + + diff --git a/library/library.xsl b/library/library.xsl new file mode 100644 index 0000000..5056143 --- /dev/null +++ b/library/library.xsl @@ -0,0 +1,56 @@ + + + + + + Library Catalogue + + + +

Library Catalogue

+ + + + + + + + + + + + + + + + + + + +
Name of the BookAuthorPublisherYear of Publishing
+ + +
+
diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..0ceb5cf --- /dev/null +++ b/package-lock.json @@ -0,0 +1,173 @@ +{ + "name": "ip finals", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "prompt": "^1.3.0", + "prompt-sync": "^4.2.0" + } + }, + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "license": "MIT", + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/async": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.3.tgz", + "integrity": "sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==", + "license": "MIT" + }, + "node_modules/colors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", + "integrity": "sha512-pFGrxThWcWQ2MsAz6RtgeWe4NK2kUE1WfsrvvlctdII745EW9I0yflqhe7++M5LEc7bV2c/9/5zc8sFcpL0Drw==", + "license": "MIT", + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/cycle": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/cycle/-/cycle-1.0.3.tgz", + "integrity": "sha512-TVF6svNzeQCOpjCqsy0/CSy8VgObG3wXusJ73xW2GbG5rGx7lC8zxDSURicsXI2UsGdi2L0QNRCi745/wUDvsA==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/eyes": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", + "integrity": "sha512-GipyPsXO1anza0AOZdy69Im7hGFCNB7Y/NGjDlZGJ3GJJLtwNSb2vrzYrTYJRrRloVx7pl+bhUaTB8yiccPvFQ==", + "engines": { + "node": "> 0.1.90" + } + }, + "node_modules/isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", + "license": "MIT" + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" + }, + "node_modules/mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "license": "ISC" + }, + "node_modules/prompt": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/prompt/-/prompt-1.3.0.tgz", + "integrity": "sha512-ZkaRWtaLBZl7KKAKndKYUL8WqNT+cQHKRZnT4RYYms48jQkFw3rrBL+/N5K/KtdEveHkxs982MX2BkDKub2ZMg==", + "license": "MIT", + "dependencies": { + "@colors/colors": "1.5.0", + "async": "3.2.3", + "read": "1.0.x", + "revalidator": "0.1.x", + "winston": "2.x" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/prompt-sync": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/prompt-sync/-/prompt-sync-4.2.0.tgz", + "integrity": "sha512-BuEzzc5zptP5LsgV5MZETjDaKSWfchl5U9Luiu8SKp7iZWD5tZalOxvNcZRwv+d2phNFr8xlbxmFNcRKfJOzJw==", + "license": "MIT", + "dependencies": { + "strip-ansi": "^5.0.0" + } + }, + "node_modules/read": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", + "integrity": "sha512-rSOKNYUmaxy0om1BNjMN4ezNT6VKK+2xF4GBhc81mkH7L60i6dp8qPYrkndNLT3QPphoII3maL9PVC9XmhHwVQ==", + "license": "ISC", + "dependencies": { + "mute-stream": "~0.0.4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/revalidator": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/revalidator/-/revalidator-0.1.8.tgz", + "integrity": "sha512-xcBILK2pA9oh4SiinPEZfhP8HfrB/ha+a2fTMyl7Om2WjlDVrOQy99N2MXXlUHqGJz4qEu2duXxHJjDWuK/0xg==", + "license": "Apache 2.0", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/winston": { + "version": "2.4.7", + "resolved": "https://registry.npmjs.org/winston/-/winston-2.4.7.tgz", + "integrity": "sha512-vLB4BqzCKDnnZH9PHGoS2ycawueX4HLqENXQitvFHczhgW2vFpSOn31LZtVr1KU8YTw7DS4tM+cqyovxo8taVg==", + "license": "MIT", + "dependencies": { + "async": "^2.6.4", + "colors": "1.0.x", + "cycle": "1.0.x", + "eyes": "0.1.x", + "isstream": "0.1.x", + "stack-trace": "0.0.x" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/winston/node_modules/async": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", + "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.14" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..246dd37 --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "dependencies": { + "prompt": "^1.3.0", + "prompt-sync": "^4.2.0" + } +} diff --git a/pass6char.html b/pass6char.html new file mode 100644 index 0000000..2508c4d --- /dev/null +++ b/pass6char.html @@ -0,0 +1,73 @@ + + + + + + + Validate Name and Password + + + + +

User Login

+
+ + + + + + + +
+ + + + + \ No newline at end of file diff --git a/passConfirm.js b/passConfirm.js new file mode 100644 index 0000000..83f6b92 --- /dev/null +++ b/passConfirm.js @@ -0,0 +1,18 @@ +// Import the prompt-sync module +const prompt = require("prompt-sync")(); + +// Prompt the user to enter password and confirm password +const password = prompt("Enter your password:"); +const confirmPassword = prompt("Confirm your password:"); + +// Function to check if passwords match +function checkPasswords(password, confirmPassword) { + if (password === confirmPassword) { + console.log("Passwords match!"); + } else { + console.log("Passwords do not match!"); + } +} + +// Call the function +checkPasswords(password, confirmPassword);