Elektro 0 Newbie Poster

is there a downloadable program off the web that is similar to Xcode for mac but instead runs on pc thanks

Elektro 0 Newbie Poster

im trying to read a text file with the questions into my code what exactly do i need to do

Elektro 0 Newbie Poster

thanks for nothing nanosani i am new to java and have no idea what implementing and that other word means i just need help..at the moment all i have done is write the questions up in a text file that somehow i want my game to read it in. i also need help with writing code for my multiple choice buttons i have no idea how they are going to work.

Elektro 0 Newbie Poster

i would say a bit of both :mrgreen:

Elektro 0 Newbie Poster

im compiling a who wants to be a millionare game and i am unsure where to start does any one have any ideas??? :mrgreen:

thanks

Elektro 0 Newbie Poster

hey
anyone got some game code
thanks mates

Elektro 0 Newbie Poster

hey
anyone have any good ideas for a simple java program game.
thankyou

Elektro 0 Newbie Poster

golf course rodeo

Elektro 0 Newbie Poster

thanks mate :cheesy:

Elektro 0 Newbie Poster

are you able to give me an example of a java game with program code
thanks

Elektro 0 Newbie Poster

hey everyone
:confused: i have a new java task comming up and it involves making a game that impliments buttons. for this task i have started to build a golf game but everything i do seems to not work i keep getting stuc.
bellow is a copy of my task.
ps..thankyou ricster for the help with my last task some of your code was helpful :mrgreen:


Outline: An Object Oriented Program (OOP) is an application that uses data objects that have properties and methods that determine what they do. Examples of such objects are screen buttons, images and frames.

What to do: Create a Java application that allows the user to play a simple game using buttons. One button is to allow the user to reset the game at any stage.

The application should present at least one screen frame (window) which contains the necessary objects for the user to play the game. It should give the title of the game, how to play it and the game's creator.

You need to create a single, properly formatted Appleworks file called Documentation which includes these sections:

the title, author and purpose of the project
a brief description of the game itself and how to start it executing
a list of all the files included in your project. For each of these files, give the name of the file, its function in the project and a full listing of the …

Elektro 0 Newbie Poster

(this thread was started by a friend of mine needing the same help, he just used my account to post the thread)

So yeah... any help would be appreciated

Elektro 0 Newbie Poster

:o does anyone know how to write this for me i have no idea i need help
Outline: Java is a powerful Object Oriented Programming (OOP) language specifically designed for use with the internet. However, this makes learning Java fairly difficult. So we will start with a simple (text-based) program.

You should be familiar with the x-y real number plane used in co-ordinate geometry:


Positions on this plane are given as (x,y) co-ordinate pairs relative to the x and y axes.

The distance between any two points P1 = (x1, y1) and P2 = (x2, y2) is given by the distance formula, derived from Pythagoras' Theorem:

What to do: You are required to design and implement a java program to calculate and display (as text) the distance between pairs of (x,y) points supplied from a text file.

The file is named data.txt and contains one pair of points per line in the format: (x1,y1)<tab>(x2,y2) where <tab> refers to a single tab (ASCII 9) character. You will need to create your own data.txt file to test your program. By default, this file must be stored inside the Build folder of your project.

The program should display a title and brief description of what it does. Each pair of points should be displayed, along with the distance between them, correct to 4 decimal places eg:

The distance between (0,0) and (1,5) is 5.0990

Elektro 0 Newbie Poster

Hello,

I am fairly new to using Java, and something I wish to do is create a Java program to calculate and display the distance between pairs of (x,y) points supplied from a text file.

I'm using xCode on Mac OS X, and I've got a file named "data.txt" in the "Build" folder of my "distances.xcode" folder - "data.txt" consists of lines such as this:

(0,0) (1,8)
(0,0) (-26,-3)

(in between each set of numbers it is a tab, not a space, however I can't use a tab on the board when posting a message)

Anyway... I am unsure as to what code I should use. I want the Java application to show the distance based on what is contained in the "data.txt" file, and I also want the user to be able to specify how many decimal places the result will be before the answer is given. Also if the data in the text file is changed to something like:

sdhfjbbhj

I want it to display that it is invalid data. So, if anyone can help me, I would be appreciative.

Regards,

Elektro