Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added newFile.js #1659

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
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
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>Paul Menard's Homework</title>
<!-- <style>
h1 {
color: red;
}

img {
width: 400px;
}

#thirdDiv {
height: 600px;
width: 500px;
background-color: green;
padding: 50px;
border: 10px solid red;
}

#spanId {
font-size: 18px;
margin: 50px;
}

</style> -->
<link rel="stylesheet" href="./styles.css">
</head>

<body>
<div id=divClass>
<h1>Paul Menard</h1>
<h3>Lambda School</h3>
<h4>HTML/CSS home work</h4>
</div>
<div id="divClass">
<Span id="spanId">My favorite food is pizza,
I love the sause with lots
of cheese and pepperoni.</Span>
<a href="https://www.papajohns.com/">Papa Johm's Pizza</a>
</div>
<div id="thirdDiv">
<ul>
<li><img src="https://external-content.duckduckgo.com/iu/?u=http%3A%2F%2Fwww.ajc.com%2Frf%2Fimage_large%2FPub%2Fp6%2FDaytonDailyNews%2F2015%2F02%2F24%2FImages%2Fphotos.medleyphoto.6829655-RgF1f9PxlAbhqFadyzwF8jP-680x383.jpg&f=1&nofb=1"/></li>
<li><img src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ffood.fnr.sndimg.com%2Fcontent%2Fdam%2Fimages%2Ffood%2Ffullset%2F2018%2F2%2F14%2F0%2FKC1607_Detroit-Style-Pepperoni-Pizza_s4x3.jpg.rend.hgtvcom.826.620.suffix%2F1518642249412.jpeg&f=1&nofb=1"/></li>
</ul>
</div>
</body>

</html>
20 changes: 20 additions & 0 deletions Lesson02-HTML-CSS/homework/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
h1 {
color: red;
}

img {
width: 400px;
}

#thirdDiv {
height: 600px;
width: 500px;
background-color: green;
padding: 50px;
border: 10px solid red;
}

#spanId {
font-size: 18px;
margin: 50px;
}
36 changes: 32 additions & 4 deletions Lesson03-CSS-Positioning/homework/homework.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,64 @@ in this folder, you are in the wrong place.

/* 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: 200;
}


/* Exercise Four: */

/* Place code here */

#exerciseFour{
position: fixed;
top: 0px;
left: 0px;
display: block;
}


/* Exercise Five */

/* Place code here */
#exerciseFive {
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
align-items: center;

}



/* Exercise Six */

#exerciseSeven {
display: flex;
justify-content: space-between;
}

#itemOne {
align-self:center
}

#itemFour {
align-self:center
}
87 changes: 78 additions & 9 deletions Lesson04-JS-I/homework/homework.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
//In these first 6 questions, replace `null` with the answer

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

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

//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 ;



Expand All @@ -27,125 +28,193 @@ const newModulo = 21 % 5 === null ;

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;
}else{
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;
}else{
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;
}else{
return false;
}
}

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

if(num > 50){
return true;
}else{
return false;
}
}

function getRemainder(x, y) {
// return the remainder from dividing x by y
// code here

return x % y;
}

function isEven(num) {
// return true if num is even
// otherwise return false
// code here

let result = num % 2;

if(result === 0){
return true;
}else{
return false;
}

}

function isOdd(num) {
// return true if num is odd
// return trnpue if num is odd
// otherwise return false
// code here

let result = num % 2;

if(result > 0){
return true;
}else{
return false;
}

}

function square(num) {
// square num and return the new value
// hint: NOT square root!
// code here

return num * num;
}

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

return num * num * num;
}

function raiseToPower(num, exponent) {
// raise num to whatever power is passed in as exponent
// code here

return 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

return `Hello ${name}!`;
}

// 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
return (base * height) / 2;
}

// Do not modify code below this line.
Expand Down
Loading