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

I committed 4.5 of 5 problems #7

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
37 changes: 37 additions & 0 deletions homework.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
problem 1

var numberOfChildren = 2;
var geographicLocation = "Dammam";
var jobTitle = "web developer";
var partnerName = "Sarah";
console.log("You will be a" + jobTitle + " in " + geographicLocation + ", and married to " + partnerName + " with " + numberOfChildren + " kids.");


problem 2

var year = 2019;
var birthYear = 1995;
var Calculate = year - birthYear;
console.log("They are either " + Calculate + "or" + (Calculate - 1));

problem 3

var myAge = 24;
var maximumAge = 70;
var amountPerDay = 1 ;
var totalForYourLife = (amountPerDay * 365) * (maximumAge - myAge);
console.log("You will need " + totalForYourLife + " to last you until the ripe old age of" + maximumAge );

problem 4

var radius = 2;
var circumference = Math.PI * 2*radius;
console.log("The circumference is " + circumference );
var area = Math.PI * radius*radius;
console.log("The area is " + area);

problem 5

var celsiusT = 18;
var convert = (celsiusT*9)/5 + 32;
console.log(celsiusT + "is" + convert);