You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let necessities = sleepHours + workHours + miscHours + studyHours;
37
+
38
+
// instantiate hours spent gaming on teh daily, then multiply by 7 to update leisureHours
39
+
let dailyGaming = Number(input.question("How many hours a day would you like to spend playing Baldur's Gate 3? "));
40
+
let leisureHours = dailyGaming * 7;
41
+
42
+
// give user feedback
43
+
console.log("\nGotcha. You want to spend at least " + dailyGaming + " hours a day playing Baldur's Gate. That comes out to " + leisureHours + " hours spent across seven daily gaming sessions.\n");
44
+
45
+
// additional feedback based on whether they have exceeded total hours in a week
46
+
if (necessities + leisureHours > hoursInWeek) {
47
+
console.log("I think you need to reconsider your priorities. There are only " + hoursInWeek + " hours in a week, and with all your other obligations you only have " + (hoursInWeek - necessities) + " hours throughout the week to spend on leisurely activities.");
48
+
} else {
49
+
console.log("Cool. That sounds like a balanced schedule. You'll have about " + (hoursInWeek -necessities + leisureHours) + " hours leftover to spend how you'd like.");
0 commit comments