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

Completed 3 out of 5 problems #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
25 changes: 25 additions & 0 deletions homework.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"Problem 1"
var numberOfChildren = "3";
var partnersName = "Hayley Williams";
var geographicLocation = "Japan";
var jobTitle = "Executive Chef";
var future = " You will be an " + jobTitle + " in " + geographicLocation + " ,and married to " + partnersName + " with " + numberOfChildren + " kids. ";
console.log(future);
You will be an Executive Chef in Japan ,and married to Hayley Williams with 3 kids.

"Problem 2"
var currentYear = 2019;
var birthYear = 1993;
var age = currentYear - birthYear;
console.log (" They are either " + age + " or " + (age - 1) );
They are either 26 or 25

"Problem 3"
var currentAge = 25;
var maxAge = 170;
var numPerDay = 2;
var Total = (numPerDay * 365) * (maxAge - currentAge);
var message = " You will need " + Total + " cups of tea to last you until the ripe old age of " + maxAge;
console.log(message);
You will need 105850 cups of tea to last you until the ripe old age of 170