Official Homework Help & Discussions Thread. Page 4

Started by Gfx September 18th, 2013 1:17 PM
  • 14723 views
  • 86 replies

Mr.Eeveelutions

Male
Mothertruckin' Kalos
Seen February 7th, 2015
Posted October 29th, 2014
69 posts
9.1 Years
Hello =3
Name: Vasiliy
Age: Old enough ;P
Grade Level: GCSE
Specialty Subjects: Philosophy
Why do you want to be a PC Professor?:I just wanna help people out ^^
Professional Eevee breeder. Anything Eevee related, I probably have it! ^^

Attract what you expect, reflect what you desire, become what you respect and mirror what you admire...

Swolligator

Butcher of the Sands

Age 31
Male
Syndicate HQ
Seen January 30th, 2017
Posted January 29th, 2017
1,955 posts
13.7 Years
Name: Declan
Age: 21
Grade Level: Post Graduate
Specialty Subjects: English, Japanese, Chinese, Latin
Specific Subjects: Urban Environments, Popular Culture in Medieval Europe (1000-1500)
Why do you want to be a PC Professor?: Want to use my skills to help others; I have a degree and might as well use it.

Qualifications: Bachelor of Arts majoring in Japanese and Chinese minoring in Latin.

PM me if you need any help.

The teacher asked us to hand __ our homework but none of us had done it,
so we told her that she had forgot to assign it!

I thought the answer was ''in'' but apparently it is ''out''.Doesnt hand out mean give HW?
You are correct in this case, to 'hand out' does mean to give something out, and in the context of the sentence wouldn't make sense.

Compare:

The teacher asked us to hand in our homework but none of us had done it,
so we told her that she had forgot to assign it!

The teacher asked us to hand out our homework but none of us had done it,
so we told her that she had forgot to assign it!

The first is correct as it makes more sense to give in homework that has not been done; rather than the second which doesn't make sense.

Sydian

fake your death.

Age 30
they/them
Georgia
Seen May 22nd, 2022
Posted November 29th, 2021
33,354 posts
15.2 Years
Can someone explain this to me in English?

Assume the following sets:
U = {x : x ∈ N, x ≤ 20}
A = {x : x ∈ U, x is odd}
B = {x : x ∈ U, x mod 3 = 0}
C = {x : x ∈ U, √x ∈ N}
What are the elements of ((B ∩ C) ∪ (A ∩ C)) ∪ (A ∪ B)c?
BURY ME SIX FEET DEEP COVER ME IN CONCRETE
twitter | twitch | youtube

curiousnathan

Male
Australia
Seen October 18th, 2020
Posted October 5th, 2020
7,753 posts
13.6 Years
This is a pretty complicated question to explain without talking to you face to face haha, but I'll give it a shot.

Can someone explain this to me in English?

Assume the following sets:
U = {x : x ∈ N, x ≤ 20}
A = {x : x ∈ U, x is odd}
B = {x : x ∈ U, x mod 3 = 0}
C = {x : x ∈ U, √x ∈ N}
What are the elements of ((B ∩ C) ∪ (A ∩ C)) ∪ (A ∪ B)c?
Basically the U, A, B, and C sets you listed just tell you what value x has to be in order to be a part of that set.

Note: N is the set of Natural numbers: 1,2,3,4...

U = {x : x ∈ N, x ≤ 20} is saying that all values of x must be natural numbers below or equal to 20.
A = {x : x ∈ U, x is odd} is saying that all values of x must be odd and be below or equal to 20
B = {x : x ∈ U, x mod 3 = 0} is saying that all values of x must when divided by 3 have a remainder of 0, but also be below or equal to 20.
C = {x : x ∈ U, √x ∈ N} is saying that all values of x must be equal to or below 20 and, when square rooted, produce a natural number.

So:
U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}
A ={1, 3, 5, 7, 9, 11, 13, 15, 17, 19}
B = {3, 6, 9, 12, 15, 18}
C = {1, 4, 9, 16}

When you're finding (B ∩ C) ∪ (A ∩ C)) ∪ (A ∪ B), it's asking for:
{What B and C have in common, what A and C have in common} in union with {All values not in A or B}

To solve this I would break it down into two parts:
((B ∩ C) ∪ (A ∩ C))
= {9} ∪ {1, 9}
= {1, 9}


(A ∪ B)c
Note c = complement I'm pretty sure
If (A ∪ B) = {1, 3, 5, 6, 7, 9, 11, 12, 13, 15, 17, 18, 19}
Then the compliment = {2, 4, 8, 10, 14, 16, 20}

SO, since you're trying to find
(B ∩ C) ∪ (A ∩ C)) ∪ (A ∪ B)
= {1, 9} ∪ {2, 4, 8, 10, 14, 16, 20}

Your final answer would be:
{1, 2, 4, 8, 9, 10, 14, 16, 20}


I'm not completely sure if that's right. I haven't done questions like this for awhile. If I've made a mistake anyone feel free to correct me, I'm probably wrong paha. But yeah hope that helps somewhat Syd? :)

Kanzler

naughty biscotti

Male
Toronto
Seen April 22nd, 2022
Posted March 11th, 2022
5,957 posts
14.8 Years
Hold up -

C = {x : x ∈ U, √x ∈ N} is saying that all values of x must be equal to or below 20 and, when square rooted, produce a natural number.
It says that x produces a natural number when square rooted right? So wouldn't set C be {1, 4, 9, 16} since the set including the square roots of those numbers would be {1, 2, 3, 4} which are indeed natural numbers?

If C = {1, 4, 9, 16} and not {1, 5, 9} it might change your answer a little.

curiousnathan

Male
Australia
Seen October 18th, 2020
Posted October 5th, 2020
7,753 posts
13.6 Years
Hold up -



It says that x produces a natural number when square rooted right? So wouldn't set C be {1, 4, 9, 16} since the set including the square roots of those numbers would be {1, 2, 3, 4} which are indeed natural numbers?

If C = {1, 4, 9, 16} and not {1, 5, 9} it might change your answer a little.
Yes! You're right, thanks for that.

So the final answer would be {1, 2, 4, 8, 9, 10, 14, 16, 20}, I'm pretty sure.

Alexander Nicholi

work hard, play hard

Age 25
Male
Research Triangle / Jakarta
Seen February 15th, 2023
Posted March 5th, 2021
5,498 posts
13.5 Years
While I admit it's not homework, I would appreciate a little programming help with a chunk of code I'm working on, if you guys don't mind. It's C, specifically C99. *sneezes from dust*

for(pos = 0; pos <= length; pos++)
{
    
    // [truncated]
    
    
    
    // watch for comments
    #ifdef WINNT
    else if(config[pos] == ';')
    #endif
    #ifdef UNIX
    else if(config[pos] == '#')
    #endif
    {
        commenting = TRUE;
    }
    
    // skip over blank lines
    #ifdef WINNT
    else if(config[pos] == '\r' &&
    config[pos + 1] == '\n')
    #endif
    #ifdef UNIX
    else if(config[pos] == '\n')
    #endif
    {
        // ???
        continue;
    }
    
    // parse standard command names
    else if((config[pos] == 'S' || config[pos] == 's') &&
    (config[pos + 1] == 'T' || config[pos + 1] == 't') &&
    (config[pos + 2] == 'D' || config[pos + 2] == 'd') &&
    isctrlspacer(config[pos + 3]) == TRUE &&
    parsingcommand == TRUE)
    {
        // fill in later
    }
    
    // [truncated]
    
    else
    {
        configfile_error = TRUE;
    }
    
    continue;
}
As you can see here, I have a for loop that runs through a configuration file, doing what it will with the data contained. Albeit it's truncated for privacy reasons, towards the top are handlers for errors, and afterward comments - what I'm having an issue with is the else if block handling newlines in the middle there. The logic of the for loop is to have a single central location to break out of upon an error by setting a variable and continuing into the next iteration (soft breaks), but I'm not sure exactly how I'm supposed to handle the code for newlines. Obviously I want to skip into the next iteration and continue scanning the file, but I'm unsure whether an explicit continue is needed when there's a continue that it executes anyway after it iterates the conditional. How exactly is that supposed to be written? :v

esperance

Age 26
Male
OH
Seen October 8th, 2022
Posted January 11th, 2022
3,830 posts
13.1 Years
While I admit it's not homework, I would appreciate a little programming help with a chunk of code I'm working on, if you guys don't mind. It's C, specifically C99. *sneezes from dust*

for(pos = 0; pos <= length; pos++)
{
    
    // [truncated]
    
    
    
    // watch for comments
    #ifdef WINNT
    else if(config[pos] == ';')
    #endif
    #ifdef UNIX
    else if(config[pos] == '#')
    #endif
    {
        commenting = TRUE;
    }
    
    // skip over blank lines
    #ifdef WINNT
    else if(config[pos] == '\r' &&
    config[pos + 1] == '\n')
    #endif
    #ifdef UNIX
    else if(config[pos] == '\n')
    #endif
    {
        // ???
        continue;
    }
    
    // parse standard command names
    else if((config[pos] == 'S' || config[pos] == 's') &&
    (config[pos + 1] == 'T' || config[pos + 1] == 't') &&
    (config[pos + 2] == 'D' || config[pos + 2] == 'd') &&
    isctrlspacer(config[pos + 3]) == TRUE &&
    parsingcommand == TRUE)
    {
        // fill in later
    }
    
    // [truncated]
    
    else
    {
        configfile_error = TRUE;
    }
    
    continue;
}
As you can see here, I have a for loop that runs through a configuration file, doing what it will with the data contained. Albeit it's truncated for privacy reasons, towards the top are handlers for errors, and afterward comments - what I'm having an issue with is the else if block handling newlines in the middle there. The logic of the for loop is to have a single central location to break out of upon an error by setting a variable and continuing into the next iteration (soft breaks), but I'm not sure exactly how I'm supposed to handle the code for newlines. Obviously I want to skip into the next iteration and continue scanning the file, but I'm unsure whether an explicit continue is needed when there's a continue that it executes anyway after it iterates the conditional. How exactly is that supposed to be written? :v
A rather late reply, but here:

The way I see it, it shouldn't really make a difference either way, right?
You'd only really need a continue there if you have code that is executed after that big if-else block that you want skipped.
Otherwise, it will act the same and you could just leave that little continue out.
What are you so afraid of?

Alexander Nicholi

work hard, play hard

Age 25
Male
Research Triangle / Jakarta
Seen February 15th, 2023
Posted March 5th, 2021
5,498 posts
13.5 Years
A rather late reply, but here:

The way I see it, it shouldn't really make a difference either way, right?
You'd only really need a continue there if you have code that is executed after that big if-else block that you want skipped.
Otherwise, it will act the same and you could just leave that little continue out.
So would i just put empty braces there? Doesn't something have to be inside them, or am I mistaken?
the beat goes on (ノ^o^;)ノ
ヽ(;^o^ヽ) the beat goes on
the beat goes on (ノ^o^;)ノ
ヽ(;^o^ヽ) the beat goes on
( don’t stop the groovin’ )

esperance

Age 26
Male
OH
Seen October 8th, 2022
Posted January 11th, 2022
3,830 posts
13.1 Years
So would i just put empty braces there? Doesn't something have to be inside them, or am I mistaken?
You can just leave empty braces. It will just do nothing.
What are you so afraid of?
Male
Cork, Ireland
Seen July 23rd, 2015
Posted March 12th, 2015
17 posts
8.2 Years
I know that there are a whole academy of professors on here already, but just in case.

Name: Sutpen
Age: 25
Subjects and Level: I have a BA in English and History, an MA in American Literature and Film and I am currently completing a PhD in American Literature, focusing on William Faulkner. Any questions regarding English (language or literature) or History (any country or century ) and I should be able to help.