New course! Every coder should learn Generative AI!
0

# Help!!

Please how do you go about thisโฆ Itโs confusing figuring it out. In the office, 2 monitors are connected to each computer. The first line of the given code takes the number of computers as input. Task Complete the code to calculate and output the number of monitors to the console. Sample Input 10 Sample Output 20 Hint Since each computer has 2 monitors, simply multiply the count of the computers by 2. Given: Var computers = parseInt(readLine(), 10

5th Jan 2022, 4:36 PM
Ogu Charles Chukwudi
+ 2
Pxavier In the previous code coach, SoloLearn said: //so we donโt overwhelm you, weโve hidden the code that executes the input So, why do you get overwhelmed? To cite some B movie: "All will be revealed!" ๐คฃ
5th Jan 2022, 4:48 PM
Romeo Cojocaru
+ 2
๐๐๐จ Good job! You helped him a lot. For the next code coach, help him with private messages and don't let him to put another post. ๐ LE: Everyone was a beginner => not like this man! You will never help a beginner like this, giving the solution away. You must give hints.
5th Jan 2022, 4:40 PM
Romeo Cojocaru
+ 1
Pxavier OMG! Are you serios?! Read that info 10 times and see what happens. PS: you need to use console.log() function, cuz document.write() doesn't work. I tested this.
5th Jan 2022, 4:38 PM
Romeo Cojocaru
0
Romeo Cojocaru i honestly cant figure it out. Cause i dont understand what โparseInt(readLineโ mean. What a i suppose to do with that?
5th Jan 2022, 4:41 PM
Ogu Charles Chukwudi
0
๐๐๐จ Thank you. Could you help explain whats parseInt(readLine doing there?
5th Jan 2022, 4:42 PM
Ogu Charles Chukwudi
0
Romeo Cojocaru Please what is wrong with this my code?! It keeps saying error โfix bugโ ๐ข๐ข๐ข๐ข๐ข Can you help๐๐ฟ๐๐ฟ function main() { var eventExample = readLine(); // function call setReminder(eventExample); } //complete the function function setReminder(eventExample){ console.log("You set a reminder about " + eventExample); } setReminder("workout");
11th Jan 2022, 6:47 PM
Ogu Charles Chukwudi
0
Pxavier I don't know this code coach in JavaScript. Give the full info about it.
11th Jan 2022, 8:02 PM
Romeo Cojocaru
- 1
Romeo Cojocaru What is needed at first is enthusiasm, not just anxiety
5th Jan 2022, 4:42 PM
FanYu
5th Jan 2022, 4:46 PM
FanYu
- 2
May be my fault.
5th Jan 2022, 4:39 PM
FanYu