Skip to content

solving problem 1:#23

Open
m4saleh wants to merge 1 commit intowdi-infinity:masterfrom
m4saleh:master
Open

solving problem 1:#23
m4saleh wants to merge 1 commit intowdi-infinity:masterfrom
m4saleh:master

Conversation

@m4saleh
Copy link
Copy Markdown

@m4saleh m4saleh commented Jan 15, 2019

(The Fortune Teller)

var numberChildren = 20;
var partnerName = "Mohammed";
var geographicLocation = "Riyadh";
var jobTitle = "Computer Engineering";

solving problem 2:
(The Age Calculator)

var thisYears = 2019;
var YourBirthYear = 1999;
var yourAge = thisYears - YourBirthYear;
console.log(yourAge);

solving problem 3:
(The Lifetime Supply Calculator)

var yourCurrentAge = 24;
var maximumAge = 60;
var estimatedAmountPerDay = 30;
var thisYears = 2019;
var remainingOld = maximumAge - yourCurrentAge ;
var remainingAmount = remainingOld * estimatedAmountPerDay ;

console.log("You will need " + remainingAmount +
" last you until the ripe old age of " + maximumAge );

solving problem 4:
(The Geometrizer)

var radius = 5;
var circleCircumference = radius * 3.14 +" cm";
var circleArea = (radius * radius) * 3.14 +" m2";
console.log("The circumference is " + circleCircumference);
console.log("The area is " + circleArea);

solving problem 5:
(The Temperature Converter)

var celsiusTemperature = 26;
var fahrenheitTemperature = (celsiusTemperature * 1.8) + 32;
console.log( celsiusTemperature + " °C " + " is " + fahrenheitTemperature + " °F " );

var celsius = (fahrenheitTemperature - 32)/ 1.8;
console.log( fahrenheitTemperature + " °F "+ " is " + celsius + " °C " );

(The Fortune Teller)

var numberChildren = 20;
var partnerName = "Mohammed";
var geographicLocation = "Riyadh";
var jobTitle = "Computer Engineering";

solving problem 2:
(The Age Calculator)

var thisYears = 2019;
var YourBirthYear = 1999;
var yourAge = thisYears - YourBirthYear;
console.log(yourAge);

solving problem 3:
(The Lifetime Supply Calculator)

var yourCurrentAge = 24;
var maximumAge = 60;
var estimatedAmountPerDay = 30;
var thisYears = 2019;
var remainingOld = maximumAge - yourCurrentAge ;
var remainingAmount = remainingOld * estimatedAmountPerDay ;

console.log("You will need " + remainingAmount +
" last you until the ripe old age of " + maximumAge );

solving problem 4:
(The Geometrizer)

var radius = 5;
var circleCircumference = radius * 3.14 +" cm";
var circleArea = (radius * radius) * 3.14 +" m2";
console.log("The circumference is " + circleCircumference);
console.log("The area is " + circleArea);

solving problem 5:
(The Temperature Converter)

var celsiusTemperature = 26;
var fahrenheitTemperature = (celsiusTemperature * 1.8) + 32;
console.log( celsiusTemperature + " °C " + " is " + fahrenheitTemperature + " °F " );

var celsius = (fahrenheitTemperature - 32)/ 1.8;
console.log( fahrenheitTemperature + " °F "+ " is " + celsius + " °C " );
@m4saleh m4saleh closed this Jan 15, 2019
@m4saleh m4saleh reopened this Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant