forked from wdi-infinity/lesson-week_01-day_02-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
homework.txt
40 lines (24 loc) · 967 Bytes
/
homework.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// The Furtune Teller //
var numberOfCheldern = 2 ;
var job = "Computer Engineer" ;
var partner = "My Love" ;
var locatin1 = " Los Angeles " ;
console.log("You will be a " + job + " in " + location1 + " and married to " + partner + " with "+ numberOfCheldern + " kids. ");
// The Age Calculator //
var currentYear = 2019 ;
var birthYear = [1991 , 1995 ];
age1 = currentYear - birthYear[0] ;
age2 = currentYear - birthYear[1] ;
console.log("They are either " + age1 + " or " + age2) ;
// The Lifetime Supply Calculator //
currentAge = 27 ;
maxAge = 100 ;
amountPerDay = 100 ;
total = ( maxAge - currentAge ) * 365 * amountPerDay ;
console.log("You will need " + total + "g to last you until the ripe old age of " + maxAge ) ;
// The Geometrizer //
var radius = 30 ;
circumference = 2 * radius * 3.1416 ;
var area = radius * radius * 3.1416 ;
console.log("The circumference is " + circumference ) ;
console.log("The area is " + area ) ;