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

My second HW #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
9 changes: 9 additions & 0 deletions excersize1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var numOfChildren=3;
undefined
var PartnerName="saja";
undefined
var Glocation="Dubai";
undefined
var JobTitle="engneer";
undefined
console.log("you will be "+JobTitle+"Married to "+ PartnerName + "With" + numOfChildren+"kids.");
8 changes: 8 additions & 0 deletions excersize2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var currentYear=2019;
undefined
var birthYear=1988;
undefined
var age= currentYear - birthYear;
undefined
console.log("they are either" + age +"or" + ( age-1 ));
VM379:1 they are either31or30
10 changes: 10 additions & 0 deletions excersize3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var curentAge=26;
undefined
var maxAge=50;
undefined
var estimateAmount=5;
undefined
var total= 5*50;
undefined
console.log("ypu will need"+total+"to last until the ripe old oge of "+maxAge);
VM207:1 ypu will need250to last until the ripe old oge of 50
11 changes: 11 additions & 0 deletions excersize4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var radius=5;
undefined
var circumference = Math.PI * 2*radius;
undefined
console.log("The circumference is " + circumference);
VM426:1 The circumference is 31.41592653589793
undefined
var area = Math.PI * radius*radius;
undefined
console.log("The area is " + area);
VM432:1 The area is 78.53981633974483
13 changes: 13 additions & 0 deletions excersize5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var celsius=20;
undefined
var fahrenheit = 60;
undefined
console.log(celsius+"°C "+fahrenheit+" °F");
VM552:1 20°C 60 °F
undefined
var fahrenheit = 77;
undefined
var FtoC = (( fahrenheit - 32)*5)/9;
undefined
console.log(celsius+" °F "+fahrenheit+" °C ");
VM634:1 20 °F 77 °C