IT/Software career thread: Invert binary trees for dollars.

Cad

scientia potentia est
<Bronze Donator>
25,338
48,502
Wait isn't a_skeleton_03 some kind of IT guy for the govt?
 

Cad

scientia potentia est
<Bronze Donator>
25,338
48,502
Yes, I am working on an IT Management degree and they have a single low level coding class in the degree plan. It's stupid and I have no desire to do it but here I am.
Yes but you are gainfully employed now right? What do you do in your current job?
 

Tenks

Bronze Knight of the Realm
14,163
607
My favorite part about having a boss that has no idea how to program is how easy it is to lie to them about how difficult something is so I can never work!
 

Deathwing

<Bronze Donator>
16,717
7,731
At the same time, they're also useless at going to bat for you when you actually run into a problem that takes longer than you expect.
 

Noodleface

A Mod Real Quick
38,244
15,025
Even better is I'm the uefi bios expert here now, the only one working on it with any knowledge beyond the old school legacy stuff they know. I can just tell them "yes" or "no" to adding features. Nobody really knows. I could tell them adding feature X will take me 3 months but no one really has any idea. I'm a pretty hard worker though so I'm honest.
 

moontayle

Golden Squire
4,302
165
I kind of have a double whammy at my disposal on that front. I'm the only Android dev and I'm also still a new developer. I try to be honest in any assessments but I always preface it with "I don't know enough yet to give you a solid timeline."
 

Tenks

Bronze Knight of the Realm
14,163
607
But thats almost every task. If developers just did the same thing everyday we wouldn't constantly deliver late software. We also wouldn't be nearly as in demand nor compensated as well.
 

a_skeleton_03

<Banned>
29,948
29,763
Okay this week's homework assignment is as follows. I will be working on it and dumping code in here all morning so you guys can see my weak mind fail over and over again at what you guys feel are the most basic of concepts.

Write a program that would allow a user to enter student names and Final grades (e.g. A,B,C,D,F) from their courses. You do not know how many students need to be entered. You also do not know how many courses each of the students completed. Design your program to calculate the Grade Point Average (GPA) for each student based on each of their final grades. The program should output the Student name along with the GPA.

At initial glance I should do the following:

1.) Define the weight for each letter grade.
2.) Ask how many students right at the beginning.
3.) Ask for names and store that, I wonder if I can do a list to a variable.
4.) Ask for letter grades and count how many classes they input and store that.
5.) Ask if that is all the grades.
6.) Ask if that is all the names.
7.) End program.
 

Noodleface

A Mod Real Quick
38,244
15,025
Seems like a strange exercise without access to arrays

Unless the professor worded it poorly and they want you to receive input from user -> print -> loop
 

a_skeleton_03

<Banned>
29,948
29,763
Seems like a strange exercise without access to arrays

Unless the professor worded it poorly and they want you to receive input from user -> print -> loop
I think that is what he wants.

So far here is my opening lines.

I am researching how to take the names and put them into a list I can access later before I start asking for grades, I can use any C or C++ coding I want to because there is no teaching he just wants results it looks like. I will look up arrays.
 

a_skeleton_03

<Banned>
29,948
29,763
Is this something I could use in some way?

The way I understand that is that it's putting it into an array called names. How do I make the part in brackets adjustable? I don't know if I am asking that correctly so let me explain it.

First I have asked how many students.

printf("How many students are we grading today?\n");
scanf("%d students.\n", &count);

How do I take that count variable and use it to define how large my array would be? name[count] or something to that concept
 

a_skeleton_03

<Banned>
29,948
29,763
Hrmm, or do I define it earlier when I ask for the amount of students.

I thinkArrays - C++ Tutorialsis giving me a good tutorial on arrays and it will be a good way to store the grades later on.

I think I will skip to that code and come back to storing the names in a bit.
 

moontayle

Golden Squire
4,302
165
Do you not need to declare an array variable before putting things in it?

You're probably better off not asking for a hard number of students and just running a loop that ends with "Are there more entries? (y/n)" and breaking if the answer is 'n'. This would allow for human error without forcing them to start all over if they miscounted.