From 0e4d98b17d18079919332284e2caa9a4c11402ad Mon Sep 17 00:00:00 2001 From: Abdulmohsin ALsharhan Date: Mon, 14 Jan 2019 20:47:09 +0300 Subject: [PATCH 1/2] HomeWork1 --- homework.txt | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 homework.txt diff --git a/homework.txt b/homework.txt new file mode 100644 index 0000000..0bf09d1 --- /dev/null +++ b/homework.txt @@ -0,0 +1,49 @@ +1- +var n = 5; +var par = "Rawan"; +var loc = "Jubail"; +var job = "Eng"; + +console.log("You will be a "+ job + +" in "+ loc+ ", and married to "+ par+ " with "+ n+ "kids."); + +2- + +var current = 2019; +var birth = 1994; + +var age = current - birth; +console.log("The age is "+ age+" years old"); + +3- + +var curAge = 25; +var maxAge = 60; +var amoDay = 7; +var totalEat = (maxAge - curAge)* 365 * amoDay; + +console.log("You will need "+ totalEat + " to last you until the ripe old age of " + maxAge+" +it will be in"+ (2019 + (maxAge - curAge))); + +4- + + +var radius = 8; + +var circumference = 2*(3.41)*radius; + +console.log("The area is " + circumference); + +5- + +(a) + +var c = 25; +var f= c * 9 / 5 + 32; + console.log(" The degree in F = "+f); + + (b) + + var f = 77; +var c= (f-32) * 5 / 9; + console.log(" The degree in C = "+c); \ No newline at end of file From 30567b5085d9dd3e308ac812f0818cacecab4b3f Mon Sep 17 00:00:00 2001 From: Abdulmohsin ALsharhan Date: Tue, 15 Jan 2019 11:08:36 +0300 Subject: [PATCH 2/2] In age there is only one possible age that what i found. --- homework.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homework.txt b/homework.txt index 0bf09d1..872d1ca 100644 --- a/homework.txt +++ b/homework.txt @@ -46,4 +46,6 @@ var f= c * 9 / 5 + 32; var f = 77; var c= (f-32) * 5 / 9; - console.log(" The degree in C = "+c); \ No newline at end of file + console.log(" The degree in C = "+c); + + . \ No newline at end of file