Welcome to Incels.is - Involuntary Celibate Forum

Welcome! This is a forum for involuntary celibates: people who lack a significant other. Are you lonely and wish you had someone in your life? You're not alone! Join our forum and talk to people just like you.

Failed a test I studied for in computer science

Genetics, sorry bro. Some people just seem to win at everything, I can bet there are people that put half as much effort as you but did much better.
Brutal
truecel trait: you study for and still fail an exam
brutal
oh ok, so the discrete math portion. Since you studied, it's not like you don't know the definition. Perhaps it might just be exposure. There are some logic calculators online to help you practice if you want.
Yea it was probably the fact the test had completely different worded questions than the review sheet which fucked ke up a bit. Like I’m mostly able to configure the average de Morgan’s law or truth table problem.
I would recommend techniques like Pomodoro and applications like cold turkey blocker to make it more enforceable.
Looking back, a part of me when used the methods to the fullest to pass my test to show it applicable to your case; I think I could post updates for proofs.
Thank you
 
Re: Don't know if I should post anymore.
AnonyAnonymous
Png

Join Date: 2013-06-23
Post Count: 6332
#158471280Sunday, March 22, 2015 8:48 PM CDT
'You are right Anony but it seems I can't post without being attacked.' It usually takes a varying amount of time before the individual can become more adept at handling an unfamiliar environment. Intervals between using the website is an efficient method for focusing on something else without allowing the "Toxic" individuals to influence your perception of social interaction negatively on a greater scale. This type of reaction happens to the majority of us.

...

Re: Off-Topic Lua Discussion Thread
Moronism
Png

Join Date: 2010-02-08
Post Count: 451
#181274798Friday, January 08, 2016 6:46 AM CST
"How do you even learn?" That is a rather interesting question. The actual method for comprehending knowledge of the components of programming/scripting depends entirely on your cognitive characteristics. I would suggest that you focus on attempting to understand the general concepts rather than solely just the characteristics of a chosen language. You may benefit from using the ADEPT technique, as illustrated here: http://betterexplained.com/articles/adept-method/ As for actual resources, that would also vary on a per-person basis. Although, you should likely attempt to acquire basic knowledge of Lua before you attempt to manipulate RBX.Lua. An official and "free" resource for such exploration can be found here: http://www.lua.org/pil/ Afterwards, you may want to consider examining the official ROBLOX Wiki to acquire knowledge of the API, linked below: http://wiki.roblox.com/index.php?title=Special:RobloxLandingPage A specific set of learning conventions is not in existence. It is necessary to experiment with this information until you can understand the upper-layer functionality of your drafted scripts.
 
I’m such a pathetic low iq subhuman I got a 40 on a computer science test I studied for and stayed after school for. In fact I understood the truth tables perfectly when I did it after school. I understood the if and else if statements and still fucking failed. I’m such a retarded subhuman I just want As and Bs is it too much to ask to get at least a B in this class? Is it too much to ask to at least pass one test. I have failed every test in this class I should not have taken advanced placement computer science. I just want a B in this class I don’t get it I knew the material and still got a 40. I’m such a low iq creature truecel imbecile. I even had extra time for my accommodations took like an hour extra than everybody else and still fucking failed. Why can’t I ever have all good grades
You're fucked, there's a new ai that can code like a real programmer now
 
You're fucked, there's a new ai that can code like a real programmer now
Technocracy moment
Re: Don't know if I should post anymore.
AnonyAnonymous
Png

Join Date: 2013-06-23
Post Count: 6332
#158471280Sunday, March 22, 2015 8:48 PM CDT
'You are right Anony but it seems I can't post without being attacked.' It usually takes a varying amount of time before the individual can become more adept at handling an unfamiliar environment. Intervals between using the website is an efficient method for focusing on something else without allowing the "Toxic" individuals to influence your perception of social interaction negatively on a greater scale. This type of reaction happens to the majority of us.

...

Re: Off-Topic Lua Discussion Thread
Moronism
Png

Join Date: 2010-02-08
Post Count: 451
#181274798Friday, January 08, 2016 6:46 AM CST
"How do you even learn?" That is a rather interesting question. The actual method for comprehending knowledge of the components of programming/scripting depends entirely on your cognitive characteristics. I would suggest that you focus on attempting to understand the general concepts rather than solely just the characteristics of a chosen language. You may benefit from using the ADEPT technique, as illustrated here: http://betterexplained.com/articles/adept-method/ As for actual resources, that would also vary on a per-person basis. Although, you should likely attempt to acquire basic knowledge of Lua before you attempt to manipulate RBX.Lua. An official and "free" resource for such exploration can be found here: http://www.lua.org/pil/ Afterwards, you may want to consider examining the official ROBLOX Wiki to acquire knowledge of the API, linked below: http://wiki.roblox.com/index.php?title=Special:RobloxLandingPage A specific set of learning conventions is not in existence. It is necessary to experiment with this information until you can understand the upper-layer functionality of your drafted scripts.
What do your posts from 2010 look like?
 
Technocracy moment

What do your posts from 2010 look like?

Observe:

GAMES
Moronism
Png

Join Date: 2010-02-08
Post Count: 451
#25907873Monday, May 17, 2010 10:54 PM CDT
VISIT MY PLACE FOR FUN FULL GAMES
IDEAS
Moronism
Png

Join Date: 2010-02-08
Post Count: 451
#34978654Tuesday, October 05, 2010 8:08 PM CDT
IM CURRENLY ACCEPT NEW IDEAS AND REQUEST FOR ANTI BANS

...

Nebby


Group
 
Last edited:
I’m such a pathetic low iq subhuman I got a 40 on a computer science test I studied for and stayed after school for. In fact I understood the truth tables perfectly when I did it after school. I understood the if and else if statements and still fucking failed. I’m such a retarded subhuman I just want As and Bs is it too much to ask to get at least a B in this class? Is it too much to ask to at least pass one test. I have failed every test in this class I should not have taken advanced placement computer science. I just want a B in this class I don’t get it I knew the material and still got a 40. I’m such a low iq creature truecel imbecile. I even had extra time for my accommodations took like an hour extra than everybody else and still fucking failed. Why can’t I ever have all good grades
its because your ethnic dad didn't beat you enough
 
Observe:

GAMES
Moronism
Png

Join Date: 2010-02-08
Post Count: 451
#25907873Monday, May 17, 2010 10:54 PM CDT
VISIT MY PLACE FOR FUN FULL GAMES
IDEAS
Moronism
Png

Join Date: 2010-02-08
Post Count: 451
#34978654Tuesday, October 05, 2010 8:08 PM CDT
IM CURRENLY ACCEPT NEW IDEAS AND REQUEST FOR ANTI BANS

...

View attachment 685062

View attachment 685064
Interesting
its because your ethnic dad didn't beat you enough
yea true. I was never truly disciplined
 
What were the questions? if you remember any of them? topics etc
 
I’m such a pathetic low iq subhuman I got a 40 on a computer science test I studied for and stayed after school for. In fact I understood the truth tables perfectly when I did it after school. I understood the if and else if statements and still fucking failed. I’m such a retarded subhuman I just want As and Bs is it too much to ask to get at least a B in this class? Is it too much to ask to at least pass one test. I have failed every test in this class I should not have taken advanced placement computer science. I just want a B in this class I don’t get it I knew the material and still got a 40. I’m such a low iq creature truecel imbecile. I even had extra time for my accommodations took like an hour extra than everybody else and still fucking failed. Why can’t I ever have all good grades
sounds like discrete mathematics as a cunt theory requisite for CS. I had this shit too you will never use it in a job but do your best to grind through the class. It gets fun when you get to the finite state machines part. The induction proof part is pain in butt crack but slog through it. My opinion is that your teacher sucks and you need more time working on problems

I used this prof very good

View: https://www.youtube.com/watch?v=rdXw7Ps9vxc&list=PLHXZ9OQGMqxersk8fUxiUMSIx0DBqsKZS&ab_channel=Dr.TreforBazett

and yt channel called trev tutor

but in the end you grinding through problems in what ever text book you have matters
 
sounds like discrete mathematics as a cunt theory requisite for CS. I had this shit too you will never use it in a job but do your best to grind through the class. It gets fun when you get to the finite state machines part. The induction proof part is pain in butt crack but slog through it. My opinion is that your teacher sucks and you need more time working on problems

I used this prof very good

View: https://www.youtube.com/watch?v=rdXw7Ps9vxc&list=PLHXZ9OQGMqxersk8fUxiUMSIx0DBqsKZS&ab_channel=Dr.TreforBazett

and yt channel called trev tutor

but in the end you grinding through problems in what ever text book you have matters

also if you keep hating yourself that is time ill spent in uni the curriculum and the clock does not wait for you just be humble and work on it everyday don't waste time worrying that you are subhuman find other inkwells like you in the class to group study or work on homework with I never did which is why my homeworks suffered
 
A bunch of computer-topic classes like engineering, security, and hardware; I finished one so I guess that is one down.

Sure; since it seems like you have a phone, you can use the App Stay Focused to limit distraction.
I will. Also my mom’s been taking my phone anyways to give me more time to study.
What were the questions? if you remember any of them? topics etc
I wanted to post the test answers I got wrong but it won’t let me for some reason. But I’ll give you a rundown
I know on the test I got the .toUPPERCASE(()).equals things wrong because I panicked but I definitely know that.
The method question I got wrong was basically asking me to put in 3 numbers and make it output the smallest of those 3. But what I did which I know is wrong is.
Int A = 1;
Int B = 4;
Int C = 6;
If (C>B>A) {
System.out.println(Smallest is int a) }
Or something similar.
sounds like discrete mathematics as a cunt theory requisite for CS. I had this shit too you will never use it in a job but do your best to grind through the class. It gets fun when you get to the finite state machines part. The induction proof part is pain in butt crack but slog through it. My opinion is that your teacher sucks and you need more time working on problems

I used this prof very good

View: https://www.youtube.com/watch?v=rdXw7Ps9vxc&list=PLHXZ9OQGMqxersk8fUxiUMSIx0DBqsKZS&ab_channel=Dr.TreforBazett

and yt channel called trev tutor

but in the end you grinding through problems in what ever text book you have matters

Alright bet man thank you. Also yea I do suck at mathematics in fact I’m disgustingly awful. Worst of the worst.
 
I wanted to post the test answers I got wrong but it won’t let me for some reason. But I’ll give you a rundown
I know on the test I got the .toUPPERCASE(()).equals things wrong because I panicked but I definitely know that.
The method question I got wrong was basically asking me to put in 3 numbers and make it output the smallest of those 3. But what I did which I know is wrong is.
Int A = 1;
Int B = 4;
Int C = 6;
If (C>B>A) {
System.out.println(Smallest is int a) }
Or something similar.

Alright bet man thank you. Also yea I do suck at mathematics in fact I’m disgustingly awful. Worst of the worst.
Brutal javapill
in the if you'll probably be wanting something like
if (C>B && B>A)

Comparisons return booleans. True of false values. I assume that C>B>A would do something akin to evaluating C>B as true or false, then compare that true or false with A which wouldn't make much sense. it would end up being: if ((C>B) > A).

With the variables you have, it would basically try: true > 1. Which in some languages would be perfectly valid and could be confusing. C++ for example. True will evaluate to 1. So it's perfectly legitimate to compare true to 1. But it rarely will be the intended functionality that the programmer wants.

You'd need to add other evaluations though since there are three choices so there are multiple possible states.

A>B>C
A>C>B
B>A>C (mines always very high, if you know you know)
B>C>A
C>A>B
C>B>A*

Just as a quick but by no means elegant example, something like this should give you the output you want for those three ints

if ((C>B && B>A) || (B>C && C>A)) {
//print A as smallest
}
else if ((A>C && C>B) || (C>A && A>B)){
//print B as smallest
}
else{
//print C as smallest
}

just in case you're wondering.

&& is the And operator. Lets you string together multiple comparisons as you probably originally intended. Requires both conditions to the left and right of it to be true to succeed.
|| is the Or operator. Similar to the and but requires atleast one operand to be true.
 
Comparisons return booleans. True of false values. I assume that C>B>A would do something akin to evaluating C>B as true or false, then compare that true or false with A which wouldn't make much sense. it would end up being: if ((C>B) > A).
Would this give a syntax error or would it actually go through and just evaluate certain test cases wrong? Also, wondering what those test cases would be?
 
Would this give a syntax error or would it actually go through and just evaluate certain test cases wrong? Also, wondering what those test cases would be?
It would depend on the language. I don't use Java because I think it's a verbose memory whore but I know that some languages would call that a syntax error. Others wouldn't. Java is meant to be "user friendly" and help people avoid mistakes like that though so I cant imagine it would allow it, plus he said it wasn't right.

The program doesnt need to test every possible case though no.
 
It would depend on the language. I don't use Java because I think it's a verbose memory whore but I know that some languages would call that a syntax error. Others wouldn't. Java is meant to be "user friendly" and help people avoid mistakes like that though so I cant imagine it would allow it, plus he said it wasn't right.

The program doesnt need to test every possible case though no.
I see. What makes his code logically incorrect, because it looks like he's doing essentially the same thing with the comparision?
 
I see. What makes his code logically incorrect, because it looks like he's doing essentially the same thing with the comparision?
the > operator takes two operands. You cant string comparisons together with C>B>A. Each operator has to be evaluated separately. So the C>B part for instance, if that gets compared first it will return either True or False. Then the second > gets evaluated which now becomes true>A. The program is now testing to see if 'true' is bigger than 'A'. But true isn't a number (in some cases, some languages let you enumerate true). It's a boolean type so you cant make that comparison logically. Instead you extend C>B>A to:

C>B && B>A // if C is bigger than B AND B is bigger than A

if both of these are true. Then the && is also true and you know that A is the smallest. Also C>B>A would only account for one case. There's no code there that figures out whether B or C are the smallest of the three. Also even if A is the smallest, if B is bigger than C then that could cause some issues. You need to find a way to account for any case that shows up.
 
the > operator takes two operands. You cant string comparisons together with C>B>A. Each operator has to be evaluated separately. So the C>B part for instance, if that gets compared first it will return either True or False. Then the second > gets evaluated which now becomes true>A. The program is now testing to see if 'true' is bigger than 'A'. But true isn't a number (in some cases, some languages let you enumerate true). It's a boolean type so you cant make that comparison logically. Instead you extend C>B>A to:

C>B && B>A // if C is bigger than B AND B is bigger than A

if both of these are true. Then the && is also true and you know that A is the smallest. Also C>B>A would only account for one case. There's no code there that figures out whether B or C are the smallest of the three. Also even if A is the smallest, if B is bigger than C then that could cause some issues. You need to find a way to account for any case that shows up.
Wow, you are a programmer?
 
damn so much coding dingers here.. Like everyone goes to CS now, the fuck? Theres nothing to learn except CS?

shit ima somewhat afraid of all this stiff
 
the > operator takes two operands. You cant string comparisons together with C>B>A. Each operator has to be evaluated separately. So the C>B part for instance, if that gets compared first it will return either True or False. Then the second > gets evaluated which now becomes true>A. The program is now testing to see if 'true' is bigger than 'A'. But true isn't a number (in some cases, some languages let you enumerate true). It's a boolean type so you cant make that comparison logically. Instead you extend C>B>A to:

C>B && B>A // if C is bigger than B AND B is bigger than A

if both of these are true.
That makes sense.
. Also C>B>A would only accounts for one case. There's no code there that figures out whether B or C are the smallest of the three. Also even if A is the smallest, if B is bigger than C then that could cause some issues. You need to find a way to account for any case that shows up.
Doesn't this automatically mean B<C, since C>B tests for that? This is assuming that it's allowed in the language and isn't comparing a boolean with a number value.
 
That makes sense.

Doesn't this automatically mean B<C, since C>B tests for that? This is assuming that it's allowed in the language and isn't comparing a boolean with a number value.
Yeah B<C is effectively the same as C>B for sure. You could infact write the whole thing backwards using the < operator too. The outcome is the same.
 
advanced placement computer science course
How old are you, is this a highschool class?
if statements, Truth Tables, Demorgan’s law
This is weird, set of questions, usually boolean logic (Truth Tables, Demorgan’s law) and normal programming (if statements) are seperate classes

if ((C>B && B>A) || (B>C && C>A)) {
//print A as smallest
}
else if ((A>C && C>B) || (C>A && A>B)){
//print B as smallest
}
else{
//print C as smallest
}
This seems overly complicated, wouldn't it be better to just check if one was smaller than or equal to the others so like this (this code should compile, the "Integer.parseInt" is to convert from int to string)?
Rich (BB code):
if (A <= B && A <= C){
  System.out.println(Integer.parseInt(A));
} else if (B <= A && B <= C){
  System.out.println(Integer.parseInt(B));
}
else {
  System.out.println(Integer.parseInt(C));
}

@ElTruecel not sure if the variables were given to you in the question but variable names should never start with a capital in almost any language. You shouldn't cheat on your programming assignments because this is stuff you actually need to learn if you want to continue into CS, just cheat on assignments for your other classes. I'm actually about to graduate with a CS degree soon so if you need coding help you can send me a message and I would be happy to help a fellow cel out. Don't feel stupid, this is basic programming, your classmates have done all this before, if you stick with it it will eventually click for you too, everyone sucks when they start.

damn so much coding dingers here
Because ITcels are losers. We get high paying jobs but our jobs don't have any status like other professions (doctors, lawyers, pilots etc.), people just assume we are man children.
 
This seems overly complicated, wouldn't it be better to just check if one was smaller than or equal to the others so like this (this code should compile, the "Integer.parseInt" is to convert from int to string)?
Definitely always room to make things less complicated. As I said, inelegant. But It was more to highlight how such booleans work with evaluating multiple conditions using && and ||.
 
Brutal javapill
in the if you'll probably be wanting something like
if (C>B && B>A)

Comparisons return booleans. True of false values. I assume that C>B>A would do something akin to evaluating C>B as true or false, then compare that true or false with A which wouldn't make much sense. it would end up being: if ((C>B) > A).

With the variables you have, it would basically try: true > 1. Which in some languages would be perfectly valid and could be confusing. C++ for example. True will evaluate to 1. So it's perfectly legitimate to compare true to 1. But it rarely will be the intended functionality that the programmer wants.

You'd need to add other evaluations though since there are three choices so there are multiple possible states.

A>B>C
A>C>B
B>A>C (mines always very high, if you know you know)
B>C>A
C>A>B
C>B>A*

Just as a quick but by no means elegant example, something like this should give you the output you want for those three ints

if ((C>B && B>A) || (B>C && C>A)) {
//print A as smallest
}
else if ((A>C && C>B) || (C>A && A>B)){
//print B as smallest
}
else{
//print C as smallest
}

just in case you're wondering.

&& is the And operator. Lets you string together multiple comparisons as you probably originally intended. Requires both conditions to the left and right of it to be true to succeed.
|| is the Or operator. Similar to the and but requires atleast one operand to be true.
I c. Yea I’m aware I forgot the || and && things. I learned about truth tables and de Morgan’s law and all that. But I do pose a question, is the way I did methods correct. What I normally do is put the methods before the S.O.P text and then try to return it through there for each 3 different methods. But I c what you’re getting at
 
How old are you, is this a highschool class?
Yes it’s an advanced placement computer science class. I regret taking an AP though I should’ve taken a normal class. But I need to push through and get at least a B
This is weird, set of questions, usually boolean logic (Truth Tables, Demorgan’s law) and normal programming (if statements) are seperate classes


This seems overly complicated, wouldn't it be better to just check if one was smaller than or equal to the others so like this (this code should compile, the "Integer.parseInt" is to convert from int to string)?
Rich (BB code):
if (A <= B && A <= C){
  System.out.println(Integer.parseInt(A));
} else if (B <= A && B <= C){
  System.out.println(Integer.parseInt(B));
}
else {
  System.out.println(Integer.parseInt(C));
}

@ElTruecel not sure if the variables were given to you in the question but variable names should never start with a capital in almost any language. You shouldn't cheat on your programming assignments because this is stuff you actually need to learn if you want to continue into CS, just cheat on assignments for your other classes. I'm actually about to graduate with a CS degree soon so if you need coding help you can send me a message and I would be happy to help a fellow cel out. Don't feel stupid, this is basic programming, your classmates have done all this before, if you stick with it it will eventually click for you too, everyone sucks when they start.
Thanks man. But yea ImmA need a lot of catching up too. Right now I’m learning object oriented programming I need to fully comprehend methods to understand the full material. We’re doing static variables at the moment.
I remember the basics instance variable then constructor then getters/accessors then to string.
 
I c. Yea I’m aware I forgot the || and && things. I learned about truth tables and de Morgan’s law and all that. But I do pose a question, is the way I did methods correct. What I normally do is put the methods before the S.O.P text and then try to return it through there for each 3 different methods. But I c what you’re getting at
Which methods? The if statement you mean?
 
Which methods? The if statement you mean?
I understand the if statement but the method concept in general I do not understand. I believe I learned it completely wrong somehow.
@Amir and I’ll tag some other codecels but for some reason I just can’t comprehend the entire method concept. I understand this.
With methods you need a return type before the method and you need to call it in the s.o.p text. But what I’m confused about is for example int or string methods I don’t understand how to go about on the entire process of doing it.
 
I understand the if statement but the method concept in general I do not understand. I believe I learned it completely wrong somehow.
@Amir and I’ll tag some other codecels but for some reason I just can’t comprehend the entire method concept. I understand this.
With methods you need a return type before the method and you need to call it in the s.o.p text. But what I’m confused about is for example int or string methods I don’t understand how to go about on the entire process of doing it.
What exactly dont you understand about them? Usage? flow? When to use them? I cant stand Java but if I remember from years ago when I gave it a go its a similar premise to anything else so ill try to explain

Well any method that returns an int

static int *name* (params) {
// your code here

return 0; // must return an integer
}

any method that returns a string

static string *name* (params) {
// your code here
return str; // must return a string
}

Thats all there really is too them. They're the same as any function. The only difference is the return type and having to return something. If you dont want them to return anything, make the function return type void.
 
What exactly dont you understand about them? Usage? flow? When to use them? I cant stand Java but if I remember from years ago when I gave it a go its a similar premise to anything else so ill try to explain

Well any method that returns an int

static int *name* (params) {
// your code here

return 0; // must return an integer
}

any method that returns a string

static string *name* (params) {
// your code here
return str; // must return a string
}

Thats all there really is too them. They're the same as any function. The only difference is the return type and having to return something. If you dont want them to return anything, make the function return type void.
Alright that helps it, thank you. my teacher was telling me that was one of the major gaps I was having. I’m learning object oriented programming and I want to get a high grade on the next exam so ImmA study that. It is hard studying when you never did it throughout all of high school plus I’m pretty busy with shit.
 
Not reading any of those wall of text replies but I want OP to understand that not knowing CS is based and anyone here who can do it is a tranny or a tranny in denial
 
Not reading any of those wall of text replies but I want OP to understand that not knowing CS is based and anyone here who can do it is a tranny or a tranny in denial
Just trying to help a cel moneymaxx
 
Alright that helps it, thank you. my teacher was telling me that was one of the major gaps I was having. I’m learning object oriented programming and I want to get a high grade on the next exam so ImmA study that. It is hard studying when you never did it throughout all of high school plus I’m pretty busy with shit.
Methods/functions are useful as fuck tbh. You'll probably be using them often. Once it clicks you'll never forget how they work
 
Methods/functions are useful as fuck tbh. You'll probably be using them often. Once it clicks you'll never forget how they work
Alright I’ll just start practicing the methods then to catch up. But I’ll remember those basic key steps
 
Alright I’ll just start practicing the methods then to catch up. But I’ll remember those basic key steps
Based, feel free to post if anymore questions about stuff though.
 
Based, feel free to post if anymore questions about stuff though.
For sure man. I got a project now on object oriented programming so I’ll ask some questions about that.
 
Alright so in object oriented programming you always start with a scanner yes? When you do private variables and call them back they have to be inside the method of whatever you’re calling back , correct?
 
IQ pill strikes again. Multiple casualties reported.
 
I’m such a pathetic low iq subhuman I got a 40 on a computer science test I studied for and stayed after school for. In fact I understood the truth tables perfectly when I did it after school. I understood the if and else if statements and still fucking failed. I’m such a retarded subhuman I just want As and Bs is it too much to ask to get at least a B in this class? Is it too much to ask to at least pass one test. I have failed every test in this class I should not have taken advanced placement computer science. I just want a B in this class I don’t get it I knew the material and still got a 40. I’m such a low iq creature truecel imbecile. I even had extra time for my accommodations took like an hour extra than everybody else and still fucking failed. Why can’t I ever have all good grades
if you are in college i suggest you to not get a degree in computer science
it would be better to get a 2-year degree to become a robotics technician
rd-png.680100

sk-png.680110
 
if you are in college i suggest you to not get a degree in computer science
it would be better to get a 2-year degree to become a robotics technician
rd-png.680100

sk-png.680110
after 2 years working you can climb the job latter and become a robotics engineer
 
Alright so in object oriented programming you always start with a scanner yes? When you do private variables and call them back they have to be inside the method of whatever you’re calling back , correct?
Private variables can only be accessed by members of the class they are declared in generally yes. You'll use those methods to use those variables
 
if you are in college i suggest you to not get a degree in computer science
it would be better to get a 2-year degree to become a robotics technician
rd-png.680100

sk-png.680110
Nah I’m in high school
Private variables can only be accessed by members of the class they are declared in generally yes. You'll use those methods to use those variables
Alright so for those methods they’ll be used to access the value but not the variable itself. How do you make sure you use the mutator and getter methods right?
 
Alright so for those methods they’ll be used to access the value but not the variable itself. How do you make sure you use the mutator and getter methods right?
Methods/functions (these mean the same thing) within a class can use the private variables. It's called encapsulation. It's the difference between the internal workings of the class and the "interface". The public methods are the interface. Useful when the programmer need not care about how the class does what it does, but just need to use it. it's also a good security measure to stop parts of the program accessing variables when it doesnt need too.

mutate and get functions, or "get"/"set" are the same as any other function really. The difference is how you write them to get them to do what you want them to do. A get method, simply gets and gives access to the private variables. Useful for when you need to retrieve data. Mutator functions change data. How you change the variables with this function is up to you really, and depends on what you need it to do. You'd use that function to update, change or compute things.

A good thing to remember is that a class is a blueprint and nothing more. When you create an object, that's an "instance" of a class that's modeled off the class. Each object has its own set of private/public variables and its own set of the same methods. If you had a Person class, you might want to get the persons age. So you use the get function to grab that age. If you need to update something about the person, maybe their job or something, you would use a mutator function to change that value within the current instance/object.

For new programmers it might not seem very intuitive as to why people do this. Why not just change the variables directly right?? But when it comes to complex data changes, you'll want a function to handle that anyway. Plus as mentioned before, encapsulation, it's neat, safer and a good habit. It's also good for expanding a program. If you needed to rewrite how you update data in a class, if you change data using a method/function, then you only have to change the function, and change it once. If you do it manually and access the variable itself... And say if you've done this 100 times. You need to go back and update all 100 instances of when you changed the variable directly. This is obviously a really bad approach to take and very error prone.
 
Methods/functions (these mean the same thing) within a class can use the private variables. It's called encapsulation. It's the difference between the internal workings of the class and the "interface". The public methods are the interface. Useful when the programmer need not care about how the class does what it does, but just need to use it. it's also a good security measure to stop parts of the program accessing variables when it doesnt need too.

mutate and get functions, or "get"/"set" are the same as any other function really. The difference is how you write them to get them to do what you want them to do. A get method, simply gets and gives access to the private variables. Useful for when you need to retrieve data. Mutator functions change data. How you change the variables with this function is up to you really, and depends on what you need it to do. You'd use that function to update, change or compute things.

A good thing to remember is that a class is a blueprint and nothing more. When you create an object, that's an "instance" of a class that's modeled off the class. Each object has its own set of private/public variables and its own set of the same methods. If you had a Person class, you might want to get the persons age. So you use the get function to grab that age. If you need to update something about the person, maybe their job or something, you would use a mutator function to change that value within the current instance/object.

For new programmers it might not seem very intuitive as to why people do this. Why not just change the variables directly right?? But when it comes to complex data changes, you'll want a function to handle that anyway. Plus as mentioned before, encapsulation, it's neat, safer and a good habit. It's also good for expanding a program. If you needed to rewrite how you update data in a class, if you change data using a method/function, then you only have to change the function, and change it once. If you do it manually and access the variable itself... And say if you've done this 100 times. You need to go back and update all 100 instances of when you changed the variable directly. This is obviously a really bad approach to take and very error prone.
I c thank you so much for all this help brocel. I do ask, how long did this take you to learn??
 
I c thank you so much for all this help brocel. I do ask, how long did this take you to learn??
I cant remember tbh. I was always pretty lazy with it because I wasn't on time constraints. Tbh the best way to learn is to write code and play around with stuff.
 
I cant remember tbh. I was always pretty lazy with it because I wasn't on time constraints. Tbh the best way to learn is to write code and play around with stuff.
Alright yea I’ll use an IDE but the majority of our tests and quizzes tend to be on paper
 
Alright yea I’ll use an IDE but the majority of our tests and quizzes tend to be on paper
the fuck. Paper tests. The world really is odd. IDE's are good though. ease of use too. Pay attention to any error messages you get. They're useful
 
the fuck. Paper tests. The world really is odd. IDE's are good though. ease of use too. Pay attention to any error messages you get. They're useful
For sure. Also yea it’s weird I’ll send a picture of my tests when I get home and if they’re able to upload.
 
For sure. Also yea it’s weird I’ll send a picture of my tests when I get home and if they’re able to upload.
That's all good. No problem
 

Similar threads

ABG_LOVER1234
Replies
34
Views
764
unionistcel
unionistcel
FatalityOfHumanity
Replies
29
Views
1K
Albertopenheimer
Albertopenheimer
Vector2800
Replies
21
Views
917
Vector2800
Vector2800
Incelnendo
Replies
14
Views
698
Genetics_subhuman
Genetics_subhuman
BloodDrained
Replies
4
Views
684
Emba
Emba

Users who are viewing this thread

shape1
shape2
shape3
shape4
shape5
shape6
Back
Top