Codeaza Solutions
Codeaza Solutions
Codeaza Solutions
Part 1 :
To be a good developer, you need to have problem solving and critical thinking skills. As
computer science is changing everyday, you should be able to learn and adapt to new
technologies quickly. One should focus on being a good engineer and be flexible. Moreover, a
good developer should be able to work and collaborate in teams. Understand others and
communicate his message to others as well.
Being a visual person, I have always been fascinated by the frontend and visual end of things.
Whenever I develop something, seeing the changes visually always motivates me to code more.
Also, the very first thing that I ever developed was in HTML and CSS. That’s why I chose this
skill, and have been learning React JS for some months now.
I expect to learn and grow. Implement all my learning to build real world applications and polish
my skills. Learn and collaborate with the professionals already working at Codeaza.
My goal is to be really good at what I do. To be financially stable, happy, and provide a great
lifestyle for me and my family.
Part 2 :
function inputData() {
let x = prompt("Total Intergers : ")
// prompt by default inputs a string
// so converting if to integer using parseInt()
// console.log(typeof(x))
let X = parseInt(x)
let n = prompt("Enter " + X + " numbers seperated by space : ")
// splitting the string into an array of X, using map to apply parseInt() to each element
console.log(convertToWaveForm(numbers))
function convertToWaveForm(numbers) {
// sorting the number in asceding order
numbers.sort(function(a, b) {
return a - b;
});
// this will swap the numbers to create the wave form array, where a[0] >= a[1] <= a[2]
for (let i = 0; i < numbers.length - 1; i += 2) {
[numbers[i], numbers[i + 1]] = [numbers[i + 1], numbers[i]];
}
return numbers;
}
inputData()
let pairs = []
for(let i = 0; i < numbers.length; i++) {
for (let j = i + 1; j < numbers.length ; j++) {
pairs.push([numbers[i], numbers[j]])
}
}
return pairs
Using Bootstrap :
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />