Obaid Rustemi - Added updated Variables HW#166
Obaid Rustemi - Added updated Variables HW#166ObaidRustemi wants to merge 1 commit intojoinpursuit:masterfrom
Conversation
| // * For example, if you were born in 1988, then in 2026 you'll be either 37 or 38, depending on what month it is in 2026. | ||
| // * Log them to the screen like so: "I will be either `ageMin` or `ageMax` in `futureYear`", substituting the values. | ||
| let ageMin = (futureYear - myBirthday) | ||
| let ageMax = ((futureYear - myBirthday) + 1) |
There was a problem hiding this comment.
You mixed these up. Max age is future - birthday and min is future - birthday - 1
There was a problem hiding this comment.
let ageMax = (futureYear - myBirthday)
let ageMin = ((futureYear - myBirthday) - 1)
| // * Calculate the circumference based on the radius, and log "The circumference is `circumferenceResult`". | ||
| circumferenceResult = ((2 * 3.141592) * radius) | ||
| console.log("The circumference is " + circumferenceResult) | ||
| // * Calculate the area based on the radius, and log "The area is `areaOfCircle`". |
There was a problem hiding this comment.
Don't see the area. I'll mark it done but make sure you get it done
There was a problem hiding this comment.
// Calculate properties of a circle, using the definitions: http://math2.org/math/geometry/circles.htm
// * Store a radius into a variable.
let radius = 2
// * Calculate the circumference based on the radius, and log "The circumference is circumferenceResult".
circumferenceResult = ((2 * 3.141592) * radius)
console.log("The circumference is " + circumferenceResult)
// * Calculate the area based on the radius, and log "The area is areaOfCircle".
let area = (3.141592)*(radius)^2
console.log("The area of this circle is " + area)
| avgClassGrade = ((aliceTestGrade + bobTestGrade + camTestGrade + deeTestGrade)/4) | ||
| console.log("Average class grade is with Dee's grade now included is " + avgClassGrade) | ||
| // * Print out if Dee's grade is higher than the class average | ||
| if (deeTestGrade > avgClassGrade) { |
There was a problem hiding this comment.
LOVE the use of a conditional!
No description provided.