Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added Lesson01-Git/newFile.js
Empty file.
52 changes: 51 additions & 1 deletion Lesson02-HTML-CSS/homework/homework.html
Original file line number Diff line number Diff line change
@@ -1 +1,51 @@
<!-- In this file you will complete the homework found in the homework-readme.md file -->
<!-- In this file you will complete the homework found in the homework-readme.md file -->
<html>
<head>
<title>Ezenagu's HTML homework</title>
<link rel="stylesheet" href="./styles.css">
</head>
<!--
<style>
#thirdDiv{
height: 600px;
width: 500px;
background-color: hotpink;
padding: 50px;
border: 3px solid red;
}
#spanId{
font-size: 18px;
marging: 50px;
}
h1{
color: indigo;
}
img{
with: 400px;
}
</style>
-->
<body>
<div class="divClass">
<h1>Ezenagu Emmanuel</h1>
<h3>Lambda School</h3>
<h4>HTML/CSS homework</h4>
</div>

<div class="divClass">
<span id="spanId">My favourite food is not just one, but the one I like most of them all is semovita with thick egwusi soup spiced with stock fish and beef.</span>
<a href="https://www.belanovaapartments.com/dining">My favourite restaurant</a>
</div>

<div id="thirdDiv">
<ul>
<li><img src="https://www.foodiesfeed.com/wp-content/uploads/2019/04/mae-mu-pancakes-413x516.jpg" alt=""></li>
<li><img src="https://www.foodiesfeed.com/wp-content/uploads/2019/02/pizza-ready-for-baking-413x275.jpg" alt="img of fav food"></li>
</ul>
</div>




</body>
</html>
18 changes: 18 additions & 0 deletions Lesson02-HTML-CSS/homework/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

#thirdDiv{
height: 600px;
width: 500px;
background-color: hotpink;
padding: 50px;
border: 3px solid red;
}
#spanId{
font-size: 18px;
marging: 50px;
}
h1{
color: indigo;
}
img{
width: 400px;
}
47 changes: 40 additions & 7 deletions Lesson03-CSS-Positioning/homework/homework.css
Original file line number Diff line number Diff line change
@@ -1,43 +1,76 @@
/*
Lesson 3: CSS positioning homwork. All of your work should be done in this file. If you find yourself altering any of the other files
in this folder, you are in the wrong place.
/*
Lesson 3: CSS positioning homwork. All of your work should be done in this file. If you find yourself altering any of the other files
in this folder, you are in the wrong place.
*/


/* Exercise One: Centering the text in a span */

/* We will start this one off for you: */
#exerciseOne {

display: block;
text-align: center;
}


/* Exercise Two: Positioning a Header Bar*/

/* Place code here */

#exerciseTwo{
display: none;
}


/* Exercise Three: */

/* Place code here */

#exerciseThree{
position: relative;
top: 100px;
left: 200px;
}


/* Exercise Four: */

/* Place code here */
#exerciseFour{
position: fixed;
top: 0;
left: 0;

}


/* Exercise Five */

/* Place code here */

#exerciseFive{
display: flex;
justify-content: space-around;
align-items: center;
flex-direction: row-reverse;
}


/* Exercise Six */

#exerciseSeven {
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: row-reverse;
background-color: #ccc;
}
#itemFour{
background-color: hotpink;
}
#itemThree{
background-color: skyblue;
}
#itemTwo{
background-color: goldenrod;
}
#itemOne{
background-color: lime;
}
17 changes: 17 additions & 0 deletions Lesson04-JS-I/homework/concept-Explained.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Concepts Explained like a 12 year old.

Variables: These are like a container or a bucket that can hold things. Those things are called values.

Strings: This is a value that are like a word or a sentence in English language which can be stored in a variable. They have to be within '', "", or ``.

Functions: These are like a phone you use to make calls. To talk to person A you just call the A call function and then you can speak to person A,
likewise if you want to speak to person B, call the B call function. This is so because functions can hold a set of tasks you will likely call often.

(arguments): arguments are used with functions. they are used to pass values to functions to change the state or response of the function being called.

(return): Functions return values. just like when you call, the phone returns to you the person you called or a switched off response or an unavailable
response. And since it returns values, the value(s) can be stored in a variable.

if statements: These are used to answer Yes or No questions, like does A exist, if yes do this, or if No do not do this.

Boolean values: These are also like Yes or No but they are values. either true or false
69 changes: 59 additions & 10 deletions Lesson04-JS-I/homework/homework.js
Original file line number Diff line number Diff line change
@@ -1,151 +1,200 @@
//In these first 6 questions, replace `null` with the answer

//create a string variable, it can contain anything
const newString = null ;
const newString = 'Micheal Angelo' ;

//create a number variable, it an be any number
const newNum = null ;
const newNum = 34 ;

//create a boolean variable
const newBool = null ;
const newBool = true ;

//solve the following math problem
const newSubtract = 10 - null === 5;
const newSubtract = 10 - 5 === 5;

//Solve the following math problem
const newMultiply = 10 * null === 40 ;
const newMultiply = 10 * 4 === 40 ;

//Solve the following math problem:
const newModulo = 21 % 5 === null ;
const newModulo = 21 % 5 === 1 ;



//In the next 22 problems you will compete the function. All of your code will go inside of the function braces.
//In the next 22 problems you will compete the function. All of your code will go inside of the function braces.
//Make sure you use return when the prompt asks you to.
//hint: console.log() will NOT work.
//hint: console.log() will NOT work.
//Do not change any of the function names

function returnString(str) {
//simply return the string provided: str
return str;
}

function add(x, y) {
// x and y are numbers
// add x and y together and return the value
// code here
return x + y;
}

function subtract(x, y) {
// subtract y from x and return the value
// code here
return x - y;
}

function multiply(x, y) {
// multiply x by y and return the value
// code here
return x * y;
}

function divide(x, y) {
// divide x by y and return the value
// code here
return x / y;
}

function areEqual(x, y) {
// return true if x and y are the same
// otherwise return false
// code here
if(x === y){
return true;
}
return false;
}

function areSameLength(str1, str2) {
// return true if the two strings have the same length
// otherwise return false
// code here
if(str1.length == str2.length){
return true;
}
return false;
}

function lessThanNinety(num) {
// return true if the function argument: num , is less than ninety
// otherwise return false
// code here
if(num < 90){
return true;
}
return false;
}

function greaterThanFifty(num) {
// return true if num is greater than fifty
// otherwise return false
// code here
if(num > 50){
return true;
}
return false;
}

function getRemainder(x, y) {
// return the remainder from dividing x by y
// code here
let rem= x%y;
return rem;
}

function isEven(num) {
// return true if num is even
// otherwise return false
// code here
let even= num % 2;
if(even == 0){
return true;
}
return false;
}

function isOdd(num) {
// return true if num is odd
// otherwise return false
// code here
// code here
let odd= num % 2;
if(odd == 1){
return true;
}
return false;

}

function square(num) {
// square num and return the new value
// hint: NOT square root!
// code here
let square= Math.pow(num, 2);
return square;
}

function cube(num) {
// cube num and return the new value
// code here

let cube= Math.pow(num, 3);
return cube;
}

function raiseToPower(num, exponent) {
// raise num to whatever power is passed in as exponent
// code here
Math.pow(num, exponent);
}

function roundNumber(num) {
// round num and return it
// code here
return Math.round(num);
}

function roundUp(num) {
// round num up and return it
// code here
return Math.ceil(num);
}

function addExclamationPoint(str) {
// add an exclamation point to the end of str and return the new string
// 'hello world' -> 'hello world!'
// code here
return str + '!';
}

function combineNames(firstName, lastName) {
// return firstName and lastName combined as one string and separated by a space.
// 'Lambda', 'School' -> 'Lambda School'
// code here
return firstName + ' '+ lastName;
}

function getGreeting(name) {
// Take the name string and concatenate other strings onto it so it takes the following form:
// 'Sam' -> 'Hello Sam!'
// code here
'Hello '+ name +'!';
}

// The next three questions will have you implement math area formulas.
// The next three questions will have you implement math area formulas.
// If you can't remember these area formulas then head over to Google.

function getRectangleArea(length, width) {
// return the area of the rectangle by using length and width
// code here
return length * width;
}

function getTriangleArea(base, height) {
// return the area of the triangle by using base and height
// code here
let areaOfTriangle= base * height;
return areaOfTriangle/2;
}

// Do not modify code below this line.
Expand Down
11 changes: 11 additions & 0 deletions Lesson05-JS-II/homework/concept-Explanation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Concepts Explained like to a 12 year old.


For: (For loop), this is a just a way to do something over again a certain number of times. Like texting to multiply people. Instead of texting one message to
everybody in your contact list you just need to loop through all the numbers you want to text to and send the message every time.

&&: This is a way to check if two conditions are true. if the condition to the left is true and the one to the right is also true, it amounts to true.
if any one is false it amounts to false.

||: This is a way to check if any one condition is true. if either of the condition to the left or to the right is true, it amounts to true.
if both conditions to the left and right is false it amounts to false.
Loading