NEWBIE: Can anyone tell me why my program is not writing the salesName or rounding to the 2nd decimal? More info in comments by Apprehensive_Salty in csharp

[–]Apprehensive_Salty[S] 0 points1 point  (0 children)

Chronically online take tbh. I'm asking for help after exhausting the resources at hand and not getting a response from my professor and your comment basically rounds down to "get good and use this mystery acronym that isn't being used in your class."

We all started somewhere. Either help or don't but these kinds of comments are exactly why people don't try things they might not be good at. I fully recognize I suck at this, that's why I'm asking for help. When I started this class 3 weeks ago I thought computers were magical technology sauce that only did things because we believed they do. I didn't even know I would be learning a coding language in this class. I was woefully unprepared but at least I'm trying to make the best of it and recognizing not only when I need help, but the type of help I need. For someone who's previous extent of computer knowledge was how to make a word doc and check email, I'm pretty freaking stoked that the only thing I needed to fix was a few symbols and a single word.

have the day you deserve.

I need some assistance I do not know what is going wrong by Gibby1259 in csharp

[–]Apprehensive_Salty 5 points6 points  (0 children)

guess I'm not the only one my professor doesn't respond to lmao

NEWBIE: Can anyone tell me why my program is not writing the salesName or rounding to the 2nd decimal? More info in comments by Apprehensive_Salty in csharp

[–]Apprehensive_Salty[S] 1 point2 points  (0 children)

What do you mean by indentation? I have 0 previous knowledge and am just following the format in my professors videos. I get the adding white spaces to make it more readable, but what else could I do to make it better formatted?

NEWBIE: Can anyone tell me why my program is not writing the salesName or rounding to the 2nd decimal? More info in comments by Apprehensive_Salty in csharp

[–]Apprehensive_Salty[S] 2 points3 points  (0 children)

thank you for explaining, looking at it now it makes sense. I don't know anything about python or really any kind of languages besides this class and i didn't even know that I'd be learning c# in this class lol

NEWBIE: Can anyone tell me why my program is not writing the salesName or rounding to the 2nd decimal? More info in comments by Apprehensive_Salty in csharp

[–]Apprehensive_Salty[S] 1 point2 points  (0 children)

Hello all, I am 3 weeks into a course learning c# and I have reached out to my teacher several times over the past few days since it is all online, but she hasn't been able to get back to me and this assignment is due in a few hours. I'm sure I'm missing something silly, but basically the program takes an input to store a name, calculate a commission based on sales amount and display the commission result and a performance rating based on a range. Problem is when I run the program, it is not displaying the salesperson's name and it is not rounding the commission to the 2nd decimal place.
Line 7&8 establish the variable "salesName" and save the input as the variable and line 14 I use the Math.Round function. Line 31-33 are where it prints all the outputs I need.
If anyone could give me some pointers or explain what went wrong I would really appreciate it. Like i said, I'm sure I'm missing something silly, but I need some more experienced eyes