Grade 7 Science: Coding Project 16 – App Impersonator

This project is from the SQL section on Khan Academy.

The objective of this project is to make your own app.

https://www.khanacademy.org/computer-programming/spin-off-of-project-app-impersonator/6188009854681088

CREATE TABLE diary_app (id INTEGER PRIMARY KEY AUTOINCREMENT,
entry_date TEXT,
emotions TEXT,
entry TEXT);

INSERT INTO diary_app VALUES (1, “2020-05-25”, “happy”, “I did a project in coding today!”);
INSERT INTO diary_app VALUES (2, “2020-05-26”, “happy”, “I finished SQL in Khan Academy today!”);
INSERT INTO diary_app VALUES (3, “2020-05-27”, “crappy”, “I had a Math exam today!”);
UPDATE diary_app SET entry = “I did great in Math today!”, emotions = “bored” WHERE id = 3;

DELETE FROM diary_app WHERE id = 3;

SELECT * FROM diary_app;

Grade 7 Science: Coding Project 15 – Famous People

This project is from the SQL section on Khan Academy.

The objective of this project is make your own table from multiple given tables.

https://www.khanacademy.org/computer-programming/spin-off-of-project-famous-people/6507415377690624

 

CREATE TABLE Harry_Potter_Characters (id INTEGER PRIMARY KEY AUTOINCREMENT,
fullname TEXT,
gender TEXT,
skill_id1 INTEGER,
skill_id2 INTEGER,
house_id INTEGER)
;

CREATE TABLE Skill_Sets (id INTEGER PRIMARY KEY AUTOINCREMENT,
skill TEXT,
skill_id INTEGER)
;

CREATE TABLE house (id INTEGER PRIMARY KEY AUTOINCREMENT,
house_name TEXT,
house_id INTEGER)
;

INSERT INTO Harry_Potter_Characters VALUES(1, “Harry Potter”, “Male”, 1,5 ,1);
INSERT INTO Harry_Potter_Characters VALUES(2, “Ron Weasley”, “Male”,1,5,1);
INSERT INTO Harry_Potter_Characters VALUES(3, “Hermione Granger”, “Female”,2,3,1);
INSERT INTO Harry_Potter_Characters VALUES(4, “Ginny Weasley”, “Female”,1,5,1);
INSERT INTO Harry_Potter_Characters VALUES(5, “Neville Longbottom”, “Male”,4,5,1);
INSERT INTO Harry_Potter_Characters VALUES(6, “Luna Lovegood”, “Female”,3,5,4);
INSERT INTO Skill_Sets VALUES(1, “Defense Against the Dark Arts”, 1);
INSERT INTO Skill_Sets VALUES(2, “Spells”, 2);
INSERT INTO Skill_Sets VALUES(3, “Potions”, 3);
INSERT INTO Skill_Sets VALUES(4, “Botany”, 4);
INSERT INTO Skill_Sets VALUES(5, ” “, 5);

INSERT INTO house VALUES (1, “Gryffindor”, 1);
INSERT INTO house VALUES (2, “Slytherin”, 2);
INSERT INTO house VALUES (3, “Hufflepuff”, 3);
INSERT INTO house VALUES (4, “Ravenclaw”, 4);

SELECT Harry_Potter_Characters.fullname, Harry_Potter_Characters.gender, A.skill AS “skill one”, B.skill AS “skill two”, House.house_name
FROM Harry_Potter_Characters
LEFT OUTER JOIN Skill_Sets A
ON Harry_Potter_Characters.skill_id1 = A.skill_id
LEFT OUTER JOIN Skill_Sets B
ON Harry_Potter_Characters.skill_id2 = B.skill_id
LEFT OUTER JOIN house
ON Harry_Potter_Characters.house_id = house.house_id
ORDER BY house.house_name
;

Grade 7 Science: Coding Project 14 – Data Dig

This project is from the SQL section on Khan Academy.

The objective of this project is to make your own table based of a given table.

https://www.khanacademy.org/computer-programming/spin-off-of-project-data-dig/5081659215855616

 

CREATE TABLE marvels (ID INTEGER PRIMARY KEY,
name TEXT,
popularity INTEGER,
alignment TEXT,
gender TEXT,
height_m NUMERIC,
weight_kg NUMERIC,
hometown TEXT,
intelligence INTEGER,
strength INTEGER,
speed INTEGER,
durability INTEGER,
energy_Projection INTEGER,
fighting_Skills INTEGER);

INSERT INTO marvels VALUES(1, “Spider Man”, 1, “Good”, “Male”, 1.78, 75.75, “USA”, 4, 4, 3, 3, 1, 4);
INSERT INTO marvels VALUES(2, “Iron Man”, 20, “Neutral”, “Male”, 1.98, 102.58, “USA”, 6, 6, 5, 6, 6, 4);
INSERT INTO marvels VALUES(3, “Hulk”, 18, “Neutral”, “Male”, 2.44, 635.29, “USA”, 1, 7, 3, 7, 5, 4);
INSERT INTO marvels VALUES(4, “Wolverine”, 3, “Good”, “Male”, 1.6, 88.46, “Canada”, 2, 4, 2, 4, 1, 7);
INSERT INTO marvels VALUES(5, “Thor”, 5, “Good”, “Male”, 1.98, 290.3, “Asgard”, 2, 7, 7, 6, 6, 4);
INSERT INTO marvels VALUES(6, “Green Goblin”, 91, “Bad”, “Male”, 1.93, 174.63, “USA”, 4, 4, 3, 4, 3, 3);
INSERT INTO marvels VALUES(7, “Magneto”, 11, “Neutral”, “Male”, 1.88, 86.18, “Germany”, 6, 3, 5, 4, 6, 4);
INSERT INTO marvels VALUES(8, “Thanos”, 47, “Bad”, “Male”, 2.01, 446.79, “Titan”, 6, 7, 7, 6, 6, 4);
INSERT INTO marvels VALUES(9, “Loki”, 32, “Bad”, “Male”, 1.93, 238.14, “Jotunheim”, 5, 5, 7, 6, 6, 3);
INSERT INTO marvels VALUES(10, “Doctor Doom”, 19, “Bad”, “Male”, 2.01, 188.24, “Latveria”, 6, 4, 5, 6, 6, 4);
INSERT INTO marvels VALUES(11, “Jean Grey”, 8, “Good”, “Female”, 1.68, 52.16, “USA”, 3, 2, 7, 7, 7, 4);
INSERT INTO marvels VALUES(12, “Rogue”, 4, “Good”, “Female”, 1.73, 54.43, “USA”, 7, 7, 7, 7, 7, 7);
INSERT INTO Marvels VALUES(13, “Storm”, 2, “Good”, “Female”, 1.80, 66, “Kenya”, 2, 2, 3, 2, 5, 4);
INSERT INTO Marvels VALUES(14, “Nightcrawler”, 6, “Good”, “Male”, 1.75, 73, “Germany”, 3, 2, 7, 2, 1, 3);
INSERT INTO Marvels VALUES(15, “Gambit”, 7, “Good”, “Male”, 1.88, 81, “EUA”, 2, 2, 2, 2, 2, 4);
INSERT INTO Marvels VALUES(16, “Captain America”, 9, “Good”, “Male”, 1.88, 108, “EUA”, 3, 3, 2, 3, 1, 6);
INSERT INTO Marvels VALUES(17, “Cyclops”, 10, “Good”, “Male”, 1.90, 88, “EUA”, 3, 2, 2, 2, 5, 4);
INSERT INTO Marvels VALUES(18, “Emma Frost”, 12, “Neutral”, “Female”, 1.78, 65, “EUA”, 4, 4, 2, 5, 5, 3);
INSERT INTO Marvels VALUES(19, “Kitty Pryde”, 13, “Good”, “Female”, 1.68, 50, “EUA”, 4, 2, 2, 3, 1, 5);
INSERT INTO Marvels VALUES(20, “Daredevil”, 14, “Good”, “Male”, 1.83, 91, “EUA”, 3, 3, 2, 2, 4, 5);
INSERT INTO Marvels VALUES(21, “Punisher”, 50, “Neutral”, “Male”, 1.85, 91, “EUA”, 3, 3, 2, 2, 1, 6);
INSERT INTO Marvels VALUES(22, “Silver Surfer”, 33, “Good”, “Male”, 1.93, 102, “Zenn-La”, 3, 7, 7, 6, 7, 2);
INSERT INTO Marvels VALUES(23, “Ghost Rider”, 86, “Good”, “Male”, 1.88, 99, “EUA”, 2, 4, 3, 5, 4, 2);
INSERT INTO Marvels VALUES(24, “Venon”, 78, “Neutral”, “Male”, 1.90, 118, “EUA”, 3, 4, 2, 6, 1, 4);
INSERT INTO Marvels VALUES(25, “Juggernaut”, 76, “Neutral”, “Male”, 2.87, 862, “EUA”, 2, 7, 2, 7, 1, 4);
INSERT INTO Marvels VALUES(26, “Professor X”, 58, “Good”, “Male”, 1.83, 86, “EUA”, 5, 2, 2, 2, 5, 3);

SELECT gender, AVG(height_m)
FROM marvels GROUP BY gender;

SELECT gender, COUNT(*)
FROM marvels GROUP BY gender;

SELECT gender, MIN(height_m)
FROM marvels GROUP BY gender;

SELECT gender, MAX(height_m)
FROM marvels GROUP BY gender;

SELECT gender,
COUNT(*),
MAX(height_m),
MIN(height_m),
AVG(height_m)
FROM marvels
GROUP BY gender;
SELECT * FROM marvels;
SELECT alignment, COUNT(*) FROM marvels
GROUP BY alignment;

SELECT name FROM marvels
WHERE alignment = “Good”;

SELECT * FROM marvels ORDER BY name;

SELECT MIN(popularity) FROM marvels;
SELECT MAX(popularity) FROM marvels;
SELECT * FROM marvels WHERE popularity <= 50 AND gender = “Male”
ORDER BY popularity;

SELECT * FROM marvels WHERE height_m = 1.6 AND popularity <= 46;
SELECT name, fighting_skills, gender,
CASE
WHEN intelligence >= 1 AND intelligence < 3 THEN “Dumb”
WHEN intelligence >= 3 AND intelligence < 5 THEN “Average”
WHEN intelligence >= 5 AND intelligence <= 7 THEN “Smart”
ELSE “Missing”

END “Brainpower”
FROM marvels
GROUP BY name;

Grade 7 Science: Coding Project 13 – Design a Store Database

This project is from the SQL section in Khan Academy.

The objective of this project is to design a store’s database.

https://www.khanacademy.org/computer-programming/spin-off-of-project-design-a-store-database/4839932328558592

 

CREATE TABLE Sophia_Candy_Store(id INTEGER PRIMARY KEY, name TEXT, price INTEGER, weight INTEGER, aisle TEXT);

INSERT INTO Sophia_Candy_Store VALUES(1, “M&M”, 1, 10, “Chocolate Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(2, “Hershey”, 2, 50, “Chocolate Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(3, “Almond Joy”, 1, 10, “Chocolate Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(4, “Reese’s Pieces”, 3, 30, “Chocolate Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(5, “Bounty”, 2, 70, “Chocolate Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(6, “Werthers”, 5, 100, “Hard Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(7, “Altoids”, 3, 200, “Hard Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(8, “Jolly Ranchers”, 6, 300, “Hard Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(9, “Runts”, 2, 100, “Hard Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(10, “Giant Jawbreakers”, 5, 300, “Hard Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(11, “Jelly Beans”, 2, 200, “Chewy Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(12, “Mentos”, 5, 100, “Chewy Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(13, “Atomic Fireballs”, 6, 300, “Chewy Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(14, “Skittles”, 4, 100, “Chewy Candy Aisle”);
INSERT INTO Sophia_Candy_Store VALUES(15, “Starburst”, 5, 200, “Chewy Candy Aisle”);
SELECT * FROM Sophia_Candy_Store;

SELECT * FROM Sophia_Candy_Store GROUP BY name;

Grade 7 Science: Coding Project 11 – Blog

This project came from the HTML and CSS section on Khan Academy.

The objective of this project is to make your own blog.

https://www.khanacademy.org/computer-programming/project-blog/4580152491524096

 

<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8″>
<title>Project: Blog</title>
<style>
body {
background-color:rgb(245, 179, 196);
}

#FP {
background-color:rgb(255, 0, 0);
font-weight:lighter;
font-size:33.9px;
}

#SP {
background-color:rgb(245, 112, 10);
font-weight:lighter;
font-family:sans-serif;
}

#TP {
background-color:rgb(245, 245, 0);
font-weight:lighter;
}

#FFP {
background-color:rgb(25, 232, 39);
font-weight:lighter;
}

#Fri {
background-color:rgb(0, 176, 240);
font-weight:lighter;
}

#Bye {
background-color:rgb(247, 8, 247);
font-weight:lighter;
font-style:italic;
}
</style>
</head>
<body>

<h1>Sophia’s blog</h1>

<h3>Contents</h3>
<ul>
<li><a href= “#FP”>First Post!</a></li>
<li><a href= “#SP”>Online Birthday Party, Part 1</a></li>
<li><a href= “#TP”>Online Birthday Party, Part 2</a></li>
<li><a href= “#FFP”>Boredom</a></li>
<li><a href= “#Fri”>Friday!</a></li>
<li><a href=”#Bye”>Goodbye HTML and CSS!</a></li>
</ul>

<h2 id=”FP”>First post</h2>
<h6>Posted on April 27 2020</h6>

<p>Today in school I have to start writing my History essay about Prophet Jesus, do a lesson of Math, start reading my English book, and plan my English lessons.<br><br>Tomorrow is one of my BFF’s birthday party! But since we’re on lockdown her party is going to be on Zoom.<br><br>After school I plan to play Roblox with one of my new friends!</p>

<h2 id=”SP”>Online Birthday Party<br>Part 1</h2>
<h6>Posted on April 28 2020</h6>

<p>Today in school…I basically have to do what I did yesterday. One lesson of Math, History essay, and English reading.<br><br>In one hour my friend’s online birthday pary is starting! I can’t wait! She invited me and five other friends, during the call we’re going to play Brawlstars! If you don’t know what that is, it’s a game where you’re a certain character and battle others. It’s like a PG version of COD (call of duty).<br><br>I’m going to play Roblox with my friend again today! We always play together, but when lockdown is over she can’t play on the weekdays anymore,I probably can’t either.</p>

<h2 id=”TP”>Online Birthday Party<br>Part 2</h2>
<h6>Posted on April 28 2020</h6>

<p>I just finished the online birthday party with my friend! It was a lot of fun! We played Brawlstars and Skrible (that’s how you spell it). Skrible is a game where one person draws something and the other people have to guess. I’m not good at that game, but the birthday girl had fun! That’s what matters, right?</p>
<h2 id= “FFP”> Boredom</h2>
<h6>Posted on April 30 2020</h6>

<p>Today is the last day of April! Just one more month of quarintine! I can’t wait to see my friends again, all of us are going crazy. Everyone seems to have lost motivation to do anything, even reading now isn’t that fun or exciting.</p>

<h2 id= “Fri”>Friday!</h2>
<h6>Posted on May 1 2020</h6>

<p>It’s finally Friday! It’s also the first day of May! Not like it means anything…can’t go out.<br><br>After school I’m planning to play Roblox with my friend again. On Wednesday my Mom found an old book of mine that I’ve never read before. Now I have a new book that I can read over the weekend!</p>

<h2 id= “Bye”>Goodbye HTML and CSS!</h2>
<h6>Posted on May 1 2020</h6>

<p>I showed my Mom all the projects that I have been working on in the HTML and CSS course! She’s really proud of me! I’m going to show my Dad later.<br><br>Going through the lessons I realized that I’m almost done with the course! I reallly love HTML and I’ll be quite sad to leave it. But I can’t wait for the next lessons!</p>
</body>
</html>

Grade 7 Science: Coding Project 10 – Recipe Book

This project is from the HTML and CSS section on Khan Academy.

The objective of this project is to make your own recipe book.

https://www.khanacademy.org/computer-programming/project-recipe-book/4522164228866048

 

<!DOCTYPE html>
<html>
<head>
<title>Project: Recipe book</title>
<meta charset=”utf-8″>
<style>
body {
background-color:rgb(199, 216, 255);
}
h1 {
background-color:rgb(255, 163, 200);
}

#B {
background-color:rgb(135, 64, 64);
}

#C {
background-color:rgb(240, 8, 73);
}

#BB {
background-color:rgb(245, 218, 46);
}

</style>
</head>
<body>

<h1>Sophia’s Recipe Book</h1>

<h2>Contents:</h2>

<ol>
<li><a href=”#B”>Brownies</a></li>
<li><a href=”#C”>Cupcakes</a></li>
<li><a href=”#BB”>Breakfast Burrito</a></li>
</ol>

<h2 id=”B”>Brownies</h2>

<ul>
<li>Time: 1 hour</li>
<li>Serves: 3</li>
</ul>

<table>
<thead>
<tr>
<th>Ingredients</th>
</tr>
</thead>
<tbody>
</tbody>
</table>

<ol>
<li>3 Eggs</li>
<li>Brownie Mix</li>
<li>1/2 cup of water</li>
</ol>
<h3>Steps</h3>
<p><strong>Step 1:</strong> Gather all ingredients</p>
<p><strong>Step 2:</strong> Pour brownie mix into a bowl</p>
<p><strong>Step 3:</strong> Crack eggs into bowl</p>
<p><strong>Step 4:</strong> Mix and slowly add water into the mix</p>
<p><strong>Step 5:</strong> Pour batter into pan and leave it in oven for 45 min at 45 degrees F</p>

<h2 id=”C”>Cupcakes</h2>

<ul>
<li>Time: 45 mintues</li>
<li>Serves: 4</li>
</ul>

<table>
<thead>
<tr>
<th>Ingredients</th>
</tr>
</thead>
<tbody>
</tbody>
</table>

<ol>
<li>2 Eggs</li>
<li>1 cup of water</li>
<li>Cupcake mix</li>
</ol>

<h3>Steps</h3>
<p><strong>Step 1:</strong> Gather all ingredients</p>
<p><strong>Step 2:</strong> Pour mix into a big bowl</p>
<p><strong>Step 3:</strong> Crack eggs into bowl and add water</p>
<p><strong>Step 4:</strong> Mix until a thick batter</p>
<p><strong>Step 5:</strong> Pour batter into a pan and put in the oven for 30 min at 100 degrees F</p>

<h2 id=”BB”>Breakfast Burrito</h2>

<ul>
<li>Time: 15 mintues</li>
<li>Serves: 1</li>
</ul>

<table>
<thead>
<tr>
<th>Ingredients</th>
</tr>
</thead>
<tbody>
</tbody>
</table>

<ol>
<li>1 Egg</li>
<li>1 Wraps</li>
<li>Salsa(optional)</li>
<li>Sour cream(optional)</li>
<li>Cheese(optional</li>
</ol>

<h3>Steps</h3>

<p><strong>Step 1:</strong>Make scrambled eggs</p>
<p><strong>Step 2:</strong>Heat up wrap on stove top</p>
<p><strong>Step 3:</strong>Put eggs into wrap and add salsa, sour cream, and/or cheese (optional).</p>

</body>
</html>

Grade 7 Science: Coding Project 8 – Bookshelf

The objective of this project is to make a bookshelf of your favorite books and rate them.

https://www.khanacademy.org/computer-programming/spin-off-of-project-bookshelf/6075783625981952

var bookTitle = [
{ title: “A Snicker of Magic”,
author: “Natalie Lloyd”,
star: 5,
},
{
title2: “Harry Potter Series”,
author2: “JK Rowling”,
star2: 5
},
{
title3: “Little Women”,
author3: “Louisa May Alcott”,
star3: 5
},
{
title4: “Treasure Island”,
author4: “Robert Louis Stevenson”,
star4: 4
},
{
title5: “Little House on the Prairie Series”,
author5: “Laura Ingalls Wilder”,
star5: 5
},
{
title6: “A Doctor Like Papa”,
author6: “Natalie Kinsey-Warnock”,
star6: 5
},
{
title7: “The Children of Noisy Village”,
author7: “Astrid Lindgren”,
star7: 5
},
{
title8: “Star Wars Book Series”,
author8: “George Lucas”,
star8: 5
},
{
title9: “Shadow Weaver”,
author9: “MarcyKate Connolly”,
star9: 5
}
];

//shelf
fill(56, 7, 7);
rect(1, 105, 439, 12);

//book
fill(194, 4, 89);
rect(10, 9, 101, 96);
fill(0, 0, 0);
text(bookTitle[0].title, 10, 20, 150, 150);
text(bookTitle[0].author, 10, 47, 150, 150);
//stars
for(var i = 0; i < bookTitle[0].star; i++) {
image(getImage(“cute/Star”), 7 + i * 19, 80, 30, 30);
}
//second book
fill(186, 9, 9);
rect(131, 9, 103, 97);
fill(0, 0, 0);
text(bookTitle[1].title2, 131, 20, 150, 150);
text(bookTitle[1].author2, 131, 40, 150, 150);
//stars
for(var i = 0; i < bookTitle[1].star2; i++) {
image(getImage(“cute/Star”), 130 + i * 19, 80, 30, 30);
}
//third book
fill(242, 97, 179);
rect(255, 10, 98, 95);
fill(0, 0, 0);
text(bookTitle[2].title3, 255, 19, 150, 150);
text(bookTitle[2].author3, 256, 43, 150, 150);
//stars
for(var i = 0; i < bookTitle[2].star3; i++) {
image(getImage(“cute/Star”), 250 + i * 19, 80, 30, 30);
}
//second shelf
fill(56, 7, 7);
rect(1, 233, 439, 12);
//fourth book
fill(54, 240, 8);
rect(8, 119, 114, 113);
fill(0, 0, 0);
text(bookTitle[3].title4, 12, 135, 150, 150);
text(bookTitle[3].author4, 13, 156, 100, 100);
//stars
for(var i = 0; i < bookTitle[3].star4; i++) {
image(getImage(“cute/Star”), 15 + i * 19, 207, 30, 30);
}
//fifth book
fill(255, 104, 66);
rect( 136, 120, 108, 113);
fill(0, 0, 0);
text(bookTitle[4].title5, 137, 135, 100, 100);
text(bookTitle[4].author5, 138, 176, 150, 150);
//stars
for(var i = 0; i < bookTitle[4].star5; i++) {
image(getImage(“cute/Star”), 138 + i * 19, 206, 30, 30);
}
//sixth book
fill(252, 159, 227);
rect(264, 121, 106, 111);
fill(0, 0, 0);
text(bookTitle[5].title6, 266, 137, 150, 150);
text(bookTitle[5].author6, 264, 162, 100, 100);
//stars
for(var i = 0; i < bookTitle[5].star6; i++) {
image(getImage(“cute/Star”), 261 + i * 19, 206, 30, 30);
}
//third shelf
fill(56, 7, 7);
rect(1, 366, 645, 12);
//seventh book
fill(255, 48, 48);
rect(10, 260, 95, 105);
fill(0, 0, 0);
text(bookTitle[6].title7, 11, 273, 100, 100);
text(bookTitle[6].author7, 11, 313, 150, 150);
//stars
for(var i = 0; i < bookTitle[6].star7; i++) {
image(getImage(“cute/Star”), 5 + i * 19, 339, 30, 30);
}
//eighth book
fill(222, 82, 222);
rect(128, 261, 102, 105);
fill(0, 0, 0);
text(bookTitle[7].title8, 128, 273, 100, 100);
text(bookTitle[7].author8, 129, 310, 150, 150);
//stars
for(var i = 0; i < bookTitle[7].star8; i++) {
image(getImage(“cute/Star”), 127 + i * 19, 340, 30, 30);
}
//ninth book
fill(144, 123, 209);
rect(253, 261, 106, 104);
fill(0, 0, 0);
text(bookTitle[8].title9, 254, 274, 150, 150);
text(bookTitle[8].author9, 253, 304, 110, 110);
//stars
for(var i = 0; i < bookTitle[8].star9; i++) {
image(getImage(“cute/Star”), 258 + i * 19, 341, 30, 30);
}

Grade 7 Science: Coding Project 7 – Build-a-House

The objective of this project is to build a house.

https://www.khanacademy.org/computer-programming/spin-off-of-project-build-a-house/4847090295652352

background(219, 255, 255);

//roof
fill(174, 180, 214);
triangle(200, 28, 350, 150, 50, 150);

//house
fill(255, 255, 255);
rect(60, 150, 280, 207);

//door
fill(120, 80, 19);
rect(180, 280, 40, 77);

//windows
var x = 80 ;
var y = 80 + 50;
while(x < 290) {
fill(138, 210, 237);
rect(x, 200, 40, 40);
x += 50;
}

//grass
var x = 10;
var y = 10 + 10;
strokeWeight(20);
stroke(65, 166, 25);
while( x < 400) {
line(x, 390, 10, 400);
x+=10;
}

//person
image(getImage(“cute/CharacterPinkGirl”), 100, 200, 0, 200);
image(getImage(“cute/CharacterPrincessGirl”), 200, 200, 0, 200);
image(getImage(“avatars/marcimus”), 80, 210, 40, 40);
image(getImage(“avatars/mr-pink”), 134, 210, 35, 35);
image(getImage(“avatars/orange-juice-squid”), 185, 210, 30, 30);
image(getImage(“avatars/primosaur-seed”), 230, 209, 40 ,40);
image(getImage(“avatars/starky-sapling”), 280, 205, 40, 40);

//stone path
image(getImage(“cute/PlainBlock”), 150, 350, 100, 30);

Design a site like this with WordPress.com
Get started