All Questions
15 questions
2
votes
1
answer
88
views
ArrayPractice with shifting arrays, generate new arrays populated with even numbers, and more
This is from my second homework assignment in my Data Structures class (in which we use Java), we were simply given the task of filling out the functions shown below (they were empty before) and I was ...
5
votes
1
answer
709
views
Space Invaders clone for a college project
Edit: the project was submitted, and I got a good grade! :D
I am finishing up a project for my computer science class. The project is a space invaders clone that uses the JavaFX library to provide ...
2
votes
1
answer
2k
views
Salaries exercise
Hey there guys, I have just completed an exercise for uni and I would really like some feedback as I'm pretty new to using java. Areas that I could especially use some input in this instance: ...
3
votes
2
answers
130
views
Add three integers and report the sign of the sum
I am in my first high school programming course; the assignment is:
Write a program that asks the user to input three integers and outputs
a message indicating their sum and whether it is positive,...
2
votes
2
answers
1k
views
Simple console based car array
I have recently started coding in Java and I had to do this assignment in college.
Develop a menu driven application called TestCarPartc that allows the user to ...
0
votes
1
answer
3k
views
Java OOP HomeWork [closed]
My professor is super strict and just want to know if I have solved this correctly.
Design a class named Location for locating a maximal value and its location in a two-dimensional array. The class ...
5
votes
1
answer
468
views
A "pointless" animation program
The assignment description for this code is this:
Each time the user clicks the Circles button, randomly colored circles
flow into the display and continuously change their shapes.
Here is a ...
2
votes
2
answers
1k
views
Booking system for shows
Kindly accept my apologies as Java is something my mind cannot digest no matter what I do. At the moment I have an assignment and have written a piece of code and have used Constructor (I think so) ...
13
votes
5
answers
4k
views
Enter my Matrix
Here is my next Java assignment: create a Matrix class that can add and multiply two matrices together. I was given some code as a skeleton and then fleshed it out ...
8
votes
2
answers
890
views
Bridge, We've Got a Problemo
Now that we can move across the bridge, it's time to finally set up the problem so that it can be solved. A reminder of what the assignment is:
Welcome to the Bridge Crossing Problem. Person Pn can ...
7
votes
2
answers
203
views
Moving across my (sturdier?) Bridge
Building on top of the classes in this question of mine, I've made this class to support the moving of the entities for my given assignment:
Welcome to the Bridge Crossing Problem. Person Pn can ...
8
votes
1
answer
161
views
I think my Bridge's foundation is too fragile
I've just started a new class learning Java, and since it's been a long time since I've programmed in it I thought I'd put up my first project to get back in the swing of things. Here is my first ...
6
votes
2
answers
4k
views
Three-in-a-row board game
I don't truly understand how OOP works and It's stopping me from creating good programs! Below I have a program that will check to see if there are 3 tiles from a gridview in a row.
Here's a ...
-2
votes
2
answers
673
views
Manipulating strings and character positions
Write a program that manipulates two strings. The program inputs two
strings (string1 and string2) and a character (...
0
votes
2
answers
7k
views
Fractions in Java [closed]
Part I-IV recommend code changes as mentioned in link 1, for the initial code given at link 2.
Can you please review the code changes for Part I-IV?
Part I: Constructors (1 point)
Modify the ...