Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(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 " );