Programmers?

Any computer programmers/software engineers on here? Specifically someone knowledgeable in Java or python. Guessing prob not many but figured I’d ask.
 
I am a java developer ;)

Really, you mind looking at a basic math tutor program I wrote and tell me how to fix a couple things, it’s for my Java 1 class so it’s pretty basic for someone in the field.

Maybe try the cuckold subreddit. Mostly men in here.

Jk..... kinda

lol programming seems to be a male dominated field, but there’s a bunch of girls in my classes so I guess it’s prob more even.
 
I'm literally starting Python any day now. It's the backbone language for a control system that I'm forced to use, Extron. Going to give it a go on my own with DevU or some other online utility
 
Sure, i can look over it if you want.

Thanks, I figured out the validation part, just the formatting I guess. Not sure how to properly format into a code block here, will try the backticks, but I’ll just paste the part I’m referring to. I got it so the bigger number is on top with nested if/else. Want it so it comes out to
234
+ 24

```


if (selection == 1) {
answer = number1 + number2;
System.out.println("What is ");
if(number1 > number2){
System.out.println(" " + number1);
System.out.println("+" + number2);
}
else{
System.out.println(" " + number2);
System.out.println("+" + number1);
}
```
 
I'm literally starting Python any day now. It's the backbone language for a control system that I'm forced to use, Extron. Going to give it a go on my own with DevU or some other online utility

It’s pretty good for beginners, with Java you gotta have a public class, and main just to do the very basic “hello world”

With python it’s just
print(“Hello world”)

Java you have to
public class mathTutor {

public static void main(String[] args) {
System.out.print(“hello world”);

}
}

And I’m really disliking all the {} curly braces, I like how python uses indent
 
Thanks, I figured out the validation part, just the formatting I guess. Not sure how to properly format into a code block here, will try the backticks, but I’ll just paste the part I’m referring to. I got it so the bigger number is on top with nested if/else. Want it so it comes out to
234
+ 24

```


if (selection == 1) {
answer = number1 + number2;
System.out.println("What is ");
if(number1 > number2){
System.out.println(" " + number1);
System.out.println("+" + number2);
}
else{
System.out.println(" " + number2);
System.out.println("+" + number1);
}
```

I need a little bit more explanation. Whats you problem here?
 
I need a little bit more explanation. Whats you problem here?

It’s a math tutor program for kids, addition/subtraction. If the select 1 they get a randomly generated addition problem, 2 same thing but subtraction, 3 exit, anything other than 1, 2 or 3 it displays a message saying to enter 1-3.


Anywho when they select 1/addition for example I want the random addition problem to look like these, except large number on top, which already is but when its 3digits on top and 2 on bottom it aligned to the left. Basically I want to align to the right. Basically i want the random problem to print like the 4th problem on this sheet.

38465893-1FD1-4B28-91E8-70C74958F3D1.png
 
Hey now programmers are the people that make all the crap in world run. Besides this profession you can make as much as a doctor with much less schooling.
No man I'm just playing. It takes all types in this world. I got no problems with you nerds. I'm sure money can be good to. I'm a grunt and like you say, make as much as a doctor with little to no schooling. I know people look at my profession and think I'm a savage. Hmmm.. I guess I am bit I wear it like a badge of honor.

Besides if it weren't for programmers I wouldnt have meso in my life. So thanks
 
know people look at my profession and think I'm a savage
I've worked a hopper on a trash truck, slaved over a grill making food, spent countless hours working at a car dealership, was a handyman at an autistic school, and as advertised more than my fair share of AV work. Takes all kinds, dude. Plus, the computer dorks are the ones that get into creepy shit like kiddie porn (enter mindless work lol).

It’s pretty good for beginners
I know, can't say I am disappointed lol
 
That looks to me like a formatting problem.

Right align integers (Java)

Awesome thanks! I’ll give that a try.

No man I'm just playing. It takes all types in this world. I got no problems with you nerds. I'm sure money can be good to. I'm a grunt and like you say, make as much as a doctor with little to no schooling. I know people look at my profession and think I'm a savage. Hmmm.. I guess I am bit I wear it like a badge of honor.

Besides if it weren't for programmers I wouldnt have meso in my life. So thanks

lol I know, that was my laughing reply, but forgot the “lol” so it didn’t translate. If you lived in my area you’d probably imagine an Indian male when you thought of a software engineer stereotype lol
 
Back
Top