#Need help with an assignment
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
I'm struggling with a Java assignment and need some help. Can someone please DM me if you're able to assist? Thank you.
We don't do support over direct messages, please ask your question here.
Well I have an ICA which I need to do and it is about creating a java program for them to store their data. It is broken into 4 phases.
Sorry for that I didn't knew
I just woke up rn I can send the specification document it's on My laptop
And what's your specific question?
I am weak at java, I need guidance on how can I do this
But what are you stuck on? You need to ask specific questions, not just broad strokes.
i see well here is the code for phase 1? what could i do next im stuck
As stated, you need to ask specific questions. Kindly don't just go: I'm stuck. What's unclear, what's preventing you from progressing, what's befuddling you.
I see my bad sorry for wasting your time
just go ahead and ask a proper question, we are all here, waiting to help u 👍
Indeed, at this point it's just not clear to me what's unclear to you.
What I can say is that this code probably won’t work as expected, check the IDE warnings, some parameters are upper case (by accident I assume)
And thus you aren’t initializing the fields properly
Also baseCost is a double but the parameter is an int, why that?
Thank you for pointing that out, I am weak at java so I was teaching myself methods and formal/actual parameters
Thanks for that it's just idk how do make the code for phase 1. But I created the class and put these lines of codes
I used chatgpt 😭
But what specifically do you not know, where are you stuck?
You need to help us help you.
Everyone was a beginner once.
But as it stands we can't give any advice beyond what was stated, not to use chatGPT and to check out:
For learning Java, we recommend MOOC.
It is a completely free introductory Java course created by the University of Helsinki, it is a great way to learn Java from the ground up.
Visit MOOC here:
https://java-programming.mooc.fi
(the course is available in both English and Finnish)
- The MOOC teaches a broad introduction to programming in Java in two parts - one at beginner, and another at intermediate level.
The end of the course is marked by creating your own Asteroids game clone! - The MOOC allows using features up to Java 11 - you can install Temurin OpenJDK 11 from the Adoptium project.
- To submit exercises for evaluation, you need to configure an Editor/IDE (Integrated Development Environment) with the TMC Plugin.
The course instructions will suggest to use TMCBeans/NetBeans or VS Code for the course, but you can also use IntelliJ, which we generally recommend.
- TMCBeans/NetBeans is the easiest to configure - but has the most dated user experience
- VS Code is very popular as an editor, but it is quite new for Java Development. Some extra configuration is needed.
- IntelliJ arguably has the best user experience and is most widely used Java IDE by professionals.
IntelliJ requires installing a version no newer than2023.1- because the IntelliJ TMC Plugin doesn't work with newer installs.
The IntelliJ Community version is completely free and all you need to install the TMC plugin.
To use IntelliJ with the MOOC, simply install the TMC plugin by opening IntelliJ -> File -> Settings -> Plugins and searching for TMC. You will then be able to use IntelliJ to complete MOOC.
About the course - Java Programming
I'm sorry I bothered you that much all I knew to do in phase 1 was to create variables and classes. I don't really know how to do it like I'm blank. I should have paid attention during lectures 😭
All 4 phases are here with their criteria if you missed them
It's no problem, but we just need to know how to help you. You still haven't said where you're stuck.
Well I've set my parameters on the code if you can see in the picture idk what to do next should I add getters and setters or add something else. I also have 3 classes activity, addon and itinerary idk what to do next I'm following phase 1
I hope this clears what I am trying to say 😭
That's the nice thing about programming, often you can decide which area to tackle first. Here it looks like you just need to create some classes, and use the appropriate constructors to showcase how the classes relate.
It also looks like when you invoke a method of a specific class that you should add a System.out.println which mentions in which class the method is.