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

solving problem 1: #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

solving problem 1: #23

wants to merge 1 commit into from

Conversation

m4saleh
Copy link

@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