Help!! | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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
Ogu Charles Chukwudi - avatar
10 ответов
+ 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
Romeo Cojocaru - avatar
+ 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
Romeo Cojocaru - avatar
+ 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
Romeo Cojocaru - avatar
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
Ogu Charles Chukwudi - avatar
0
𝓕𝓛𝓨 Thank you. Could you help explain whats parseInt(readLine doing there?
5th Jan 2022, 4:42 PM
Ogu Charles Chukwudi
Ogu Charles Chukwudi - avatar
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
Ogu Charles Chukwudi - avatar
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
Romeo Cojocaru - avatar
- 1
Romeo Cojocaru What is needed at first is enthusiasm, not just anxiety
5th Jan 2022, 4:42 PM
FanYu
FanYu - avatar
5th Jan 2022, 4:46 PM
FanYu
FanYu - avatar
- 2
May be my fault.
5th Jan 2022, 4:39 PM
FanYu
FanYu - avatar