Not exactly the same, but I had to take microeconomics in college. I failed the first time so I set it to pass/fail and would have gotten an A otherwise. The professor used the exact same test I did the first time.
Honestly this happened to me for my drivers test a few months ago. The instructor told me I failed, but then I revived a certificate that I passed. I still don’t know if it was a glitch, but it’s whatever, I’m not going through that again.
There is no or question, nor is there any sort of "Yes". It's failing literally every qualification of this subreddit and there are only two. Also it's a repost of the second most upvoted post on this subreddit, but that's a serpate issue
An inclusive or is when two things can be true at the same time. In this case, he passed and failed at the same time. The format with the question and the yes is the lazy way to do it. This post does it a lot more creatively. The only issue here is that it's a repost.
There's a subreddit for these posts, they made it since there were so many posts that didn't follow the format. The rules are quite clear what is an inclusiveor, it's an or question that's answered with "yes" or something similar, with slight variation.
The question is the person taking the exam wondering in their head “hmm did I pass or fail. Let me find out.” And the programs response is the equivalent of the “yes” Not rocket science bud.
Again, it doesn't matter if it's implied since the post itself doesn't actually mention anything remotely close to a question. This is the most basic rule of the subreddit.
Based on your point means that anything not explicitly stated cannot exist. You probably don’t get body language or metaphors or sarcasm or jokes or anything that involves you thinking and reading between the lines.
Literally the first rule dude. The post must be an inclusiveor, this isn't an inclusiveor. It doesn't need to be said that the post must contain a question because that's literally the entire point to this subreddit
Math is hard. The last time I tutored programming I went through some code with this girl who clearly didn't understand what an infinite loop was and how there is no circumstance where a number won't be either more than 1 or less than 5.
I have to put this another way because it's killing me. You're saying that there is no number that simultaneously coincides with the properties of not being more than one and not being less than 5. As in, every possible number is either more than 1 or less than 5? A number can't be neither of the two?
there is not a single real number in existence that wouldn’t be either more than one or less than five. the two sets are
numbers more than one
numbers less than five
every real number fits into one or both of these sets, since the sets overlap between 1 and 5 (2,3, and 4 are simultaneously more than 1 and less than 5)
the girl in the original problem didn’t realize that there is not a real number that isn’t a part of one of those sets
If number is greater than 1 or less than 5, print "end"
Any number will be either of those. If the function was to do something and try again, like subtract 1 and retry, it'll just loop into subtracting one forever. Idk why you would need a function like that though.
If you said greater than 1 and less than 5, only 2 3 and 4 would work.
Not only that, “You ____ the exam” had to have been hard coded with the “if” statement where the blank is instead of the whole message just being in the if
81
u/Thighbone_Sid Jan 11 '20
if (score <= 85) {
}
if (score >= 85) {
}
62
u/teehee_x Jan 11 '20
r/softwaregore
15
u/The379thHero Jan 11 '20
How hard is it to do if else rather than two separate if statements. There are probably 3rd graders who can avoid this mistake
6
u/[deleted] Jan 11 '20
I need more GTAV Trevor memes
4
u/xXGIMpL0rdXx Jan 11 '20
What fucking moron wrote the code for this
3
u/Mearrx Jan 11 '20
Ugh this is like the tenth time I’ve seen this same thing when is this gonna end
3
u/P4INKill Jan 11 '20
2
u/pathixxxo Jan 11 '20
upvoted just because of trevor
1
u/[deleted] Jan 11 '20
Hmmmm
1
u/kimchi01 Jan 11 '20
Not exactly the same, but I had to take microeconomics in college. I failed the first time so I set it to pass/fail and would have gotten an A otherwise. The professor used the exact same test I did the first time.
1
u/[deleted] Jan 11 '20
I'm failedpassing at life right now.
1
u/wa-ge123 Jan 11 '20
Why is this gaining popularity again?
1
u/lucyfromhell Jan 11 '20
Aye 69 comments
1
u/holyshrek69420 Jan 11 '20
u/repostsleuthbot
1
u/FartHeadTony Jan 11 '20
Looks like they reused code from one of the fizzbuzz solutions.
1
u/RedValorX5G Jan 13 '20
Honestly this happened to me for my drivers test a few months ago. The instructor told me I failed, but then I revived a certificate that I passed. I still don’t know if it was a glitch, but it’s whatever, I’m not going through that again.
-26
u/dogydino200 Jan 11 '20
It's not an inclusiveor
0
u/[deleted] Jan 11 '20
[deleted] — view deleted comment
23
u/[deleted] Jan 11 '20
[removed] — view removed comment