**Novo curso!**Todo programador deveria aprender

**IA generativa!**

+ 14

# Quizz time V Cookies Factory

A Cookies Factory has old machine. it can finish producing Cookies kuota in 25 hour. Then production manager bought new machine that can finish same kuota in 15 hour. the manager decided to use them both. at 7 am both machine work to produce the same quota. after a while the old machine broken, so the new machine finish it alone until 8 pm. Question : what time the old machine broken?

22 Respostas

+ 17

The old machine functioned for 10/3 hours, and stopped functioning at 10.20a.m.
We know that new machine functioned for 13 hours, and each hour is able to complete (1/15) of the job. Whereas old machine completed (1/25) of the job per hour.
1 = (1/15)(13)+(1/25)(n)
where n is duration of old machine function.

+ 16

@Nikhil
... wouldn't that take the same amount of time...

+ 13

Wow, that is fast!
@Hatsy Rei Great
šŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā

+ 13

šŖšŖšŖšŖ\(ā§ā½ā¦)/šŖšŖšŖšŖ

+ 12

I need to take a break šµ

+ 12

1. 10 m/s
2. from running point is 100 m
from initial point is 120 m

+ 11

next quizz

+ 11

@Agus I'm sure you are a very good teacher for your students! š Most Logical.

+ 11

answer to mini quiz
sam time = 10 sec
john (speed) = 2m/s
john time = 50 sec = 5*sam time
sam speed = john speed * 5 = 10m/s
sam walking speed = 2m/s
sam time = 10sec
sam distance = 2m/s * 10 sec = 20m
answer
a) sam's running speed was 10m/s
b) only walking sam would have gone 20m

+ 10

Well done Hatsy. I just saw and did the question and 10:20 am it is :)

+ 9

@Hatsy You are dmn gooood at logics.

+ 9

@Cyrus
about second question :
How far would sam go if he only walked (with the same time when he run)?
or
How far would sam go if he only walked
(to the same position he was when stopping from running)?
if what you mean first option then i missunderstand your question and the answer is 20 m from running point and 40 m from initial position where they start walking.

+ 9

Let me ask a question to you @Agus:-
If 70 wet clothes take 1 hour to dry up then how much time 100 clothes will take

+ 9

@Hatsy yeah you are rightšš

+ 8

Can somebody help me in this question:-
arr=[1,2,3,4]
var x=1
for(var i; i<arr.length; i++)
x*=i
document.write(x)

+ 8

@Nikhil
you didnt initialize 'i' so the loop never runs and 'x' just stays 1
if you initialize it to i=0 then x will equal 0 as 0 keeps getting multiplied bi 'i'
if you initialize i=1 the answer will be 6 as your loop iteration must be LESS THAN the length of arr (the length is 4 which means on the last iteration 'i=3)
if you meant to multiply the array elements together your code should probably look somehing like this
arr=[1,2,3,4]
x=1
for (var i=0; i<arr.length;i++)
x*=arr[i]
document.write(x)

+ 7

ok. bring it on.

+ 6

I love logical quizzes.

+ 6

Well here is a mini quiz :
John and Sam are walking together at same speed for 10 sec. After that Sam began to run for 10 sec and stoped there. But it took John 50 sec to reach Sam by just walking. John's walking speed was 2 m/s.
1. What was the running speed of Sam?
2. How far would Sam go if he only walked?

+ 6

@Coder so ehat will be the answer of the code you gave?