Ask your own question, for FREE!
Computer Science 20 Online
kekeman:

Consider the question: "In 2001, how many hours did a person need to work at a minimum wage to earn enough to pay for a four-year university?" What data will you need to answer this question? The average cost of a university in 2001 The average number of hours a person must work in a day The likelihood of a person changing jobs The type of work required to earn minimum wage

kekeman:

I think it is either the first option or the second I can't

kekeman:

@smokeybrown

kekeman:

@ultrilliam

kekeman:

Another question I can't figure out: Your task is to write a program that validates a user key. The key should be a number between and including 100 and 999. What symbol should be in place of the question mark? def validate(key): if key ? 99 and key < 1000: return true return false < > <= >=

SmokeyBrown:

Like you suggested, you definitely would want to know the average cost of a university in 2001 in order to answer the question presented. Since the question asks about the number of hours a person would need to work total, it doesn't matter how many hours the person works each day, although I can understand why that might seem like an attractive answer at first glance.

SmokeyBrown:

@kekeman wrote:
Another question I can't figure out: Your task is to write a program that validates a user key. The key should be a number between and including 100 and 999. What symbol should be in place of the question mark? def validate(key): if key ? 99 and key < 1000: return true return false < > <= >=
The key needs to be between (and including) 100 and 999 for the key to be valid. That means the key can be any (whole) number greater than 99 and smaller than 1000. Well, the code already has "key < 1000" to account for the number being smaller than 1000. What symbol would need to be used to account for the number being greater than 99?

kekeman:

@smokeybrown wrote:
@kekeman wrote:
Another question I can't figure out: Your task is to write a program that validates a user key. The key should be a number between and including 100 and 999. What symbol should be in place of the question mark? def validate(key): if key ? 99 and key < 1000: return true return false < > <= >=
The key needs to be between (and including) 100 and 999 for the key to be valid. That means the key can be any (whole) number greater than 99 and smaller than 1000. Well, the code already has "key < 1000" to account for the number being smaller than 1000. What symbol would need to be used to account for the number being greater than 99?
>

SmokeyBrown:

Yes, that's right. Well done :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!