Hello CodeRanch!,
This year september i started at my education program and i want to become a software engineer, the first programming language i need to learn is
java.
Well it is going quite OK i think, after two months we learned the basics, how to start programming, if and else , booleans, arrays, int, doubles, etcc... quite the basic stuff i think..
I got the feeling i dont get programming for some reason, i see people on the internet do magical things in java ,, i really like programming i think its one of the best school subjects i have atm.
But still, i feel kinda dumb in java learning to code..
Oke that was the background of my question :P
Soooo i have been programming
alot lately especially this week since i have my first exam tommorow!,,
I am programming this program for exercise and to prep me for the exam, but i have a isseu with it, i am kinda stuck atm..
So the assignment says the fallowing, I need to make a program for sport game scores.. the best of 7.
So there are 2 teams, and the user can input the names of the teams, and what they scored all games.
The first team that wins 4 games wins the best of 7 tournement.
The assignment tells me i need to use arrays for the scores and loops to check what team wins each game, annd output it for the user (output is the simple part)
Also if one team wins 4 games before al 7 games are played the program must stop cause that team wins the tournement.
The thing i want to know, is how do i use the arrays to check the scores and tell howmuch games there are played using a loop?
I really dont know where to start.
Any comments or feedback on the code is very very welcome! :)
This is my code so far: