Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 ----Time---
Index -> Programming, Java -> Java Help
Goto page Previous  1, 2, 3  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
MysticVegeta




PostPosted: Wed Feb 15, 2006 3:04 pm   Post subject: (No subject)

I smell flamage.

Anyways, didnt your teacher teach you what a float is before giving you an assignment in it?
Sponsor
Sponsor
Sponsor
sponsor
xX_MayDay_Xx




PostPosted: Thu Feb 16, 2006 8:06 am   Post subject: (No subject)

ok.....i cant post my turing example, because i don't have turing because if formatted. No the answer to your tech question varies, an i think you ment the MP4 stream......it can differ from system to system depending on how much current is ran through the device, but i could be entierly wrong becuase i don't like ATI or Radeon, also. could you give me an example of a float being used in code.....i learn by seeing, not having to think..it's been this way since i was 6...i couldn't sound out words in kindergaden, but if i was told the word...i would know it instantly.
xX_MayDay_Xx




PostPosted: Thu Feb 16, 2006 8:08 am   Post subject: (No subject)

oh and to the teacher refence....im taking an idependent course...i don't have a teacher, i just get e-mails from a guy at another school qualified to teach it.
xX_MayDay_Xx




PostPosted: Thu Feb 16, 2006 8:29 am   Post subject: (No subject)

ok....i have gotten, alot farther with my code, without using your precious "Float's"...however, i still don't know how to get the seconds, so plz....plz...PLZ help, with out any harassment.

code:

public class Time
{
        public static void main (String[]args)
        {
                final double PRECISION=1;
                double num, hours, min, sec;
                System.out.println("Please enter a length of time");
                System.out.println("Example '36.50= 36hours and 30minutes'");
                num=In.getDouble();
                hours = (int) (num);
                min = (num-hours)*60;
                hours= Math.abs(num/PRECISION)*PRECISION;
                System.out.println((int)hours+"hours");
                System.out.println((int)min+"minutes");

        }
}
Andy




PostPosted: Thu Feb 16, 2006 9:03 am   Post subject: (No subject)

xX_MayDay_Xx wrote:
ok.....i cant post my turing example, because i don't have turing because if formatted. No the answer to your tech question varies, an i think you ment the MP4 stream......


No i meant PM4 stream, the commands parsed from the csq to the asic ring. For one, i didnt say it was a radeon. it's an R600 asic, and the asics dont use MP4 packets. if you were a "hardware" guy, you'd know that

anywho, since you actually made an effort, i guess i could help you out a bit.

you're working too hard with the PRECISION thing, make you hour, min, and sec integers, and you wont have any trouble. and as for your "seconds" problem, just do what you did with the hour and minutes again, and u're set
xX_MayDay_Xx




PostPosted: Thu Feb 16, 2006 9:11 am   Post subject: (No subject)

allright thx, and it worked........
OK, i have done a lot of work on this next, question, i have the Mathimatical formula down....but for some reasonthe code dosen't work...
plz, help me again...im a newb.,,,al newb's need help.
i have to figure out the date of easter.
code:
public class Easter
{
        public static void main (String[]args)
        {
                int p,q,r,s,t,u,m,d,y;
                System.out.println("Welcome to the Easter Calculator");
                System.out.println("Enter which year you would like to find Easter on");
                y = In.getInt();
                p = (y/100);
                q = (y-19(y/19));
                r = ((p-17)/25);
                s = (p-(p/4)-((p-r)/3)+19q+15);
                s = (s-30(s/30));
                s = (s-(s/28)[1-(s/28)(29/(s+1))(21-q)/11]);
                t = (y+(y/4)+s+2-p+(p/a));
                t = (t-7(t/7);
                u = (s-t);
                m = (3+((u+44)/44);
                d = (u+28-31(m/4);
                System.out.println("The date of Easter will be"+d);
        }
}
Andy




PostPosted: Thu Feb 16, 2006 10:35 am   Post subject: (No subject)

in java, you cant have (a)(b) and expect that to be mutiplication. you'll have to do (a)*(b).. and you never commented about the PM4 streams
xX_MayDay_Xx




PostPosted: Thu Feb 16, 2006 5:56 pm   Post subject: (No subject)

allright...thx for the help....again...
and as for the PM4 Stream thing....im gunna be honest, i know a lot about tech...but not that much, i was taking a logical guess, considering that most stremed current's have a lot to do with the amount of power put through them.....so plz...plz....plz...stop picking on the noob

My comp rox;
Twisted Evil Twisted Evil Twisted Evil Twisted Evil
Foxconn, Socket 940 NVIDIA nForce Pro 2200 ATX AMD

BFG nividia 7800 gtx OC...512mb (Can't afford dual....yet)

AMD Athlon 64 FX60 Toledo 1GHz FSB 2 x 1MB L2 Cache Socket 939 Dual Core Processor

CORSAIR XMS 2GB (2 x 1GB) 184-Pin,Dual Channel

along with 3 disc's drives
watercooling and a kick ass case from cooler master...

i am a geek who spends all his money on his computer...i have had to put in at least 3-g into it
Sponsor
Sponsor
Sponsor
sponsor
Andy




PostPosted: Fri Feb 17, 2006 8:45 am   Post subject: (No subject)

all i see is a bunch of expensive parts.. what did you do go on tigerdirect and buy the most expensive component? that doesnt tell me you know what youre doing. just means you have money. For 1k less, you could've got a system slightly subpar to ur current one.. only slightly.
xX_MayDay_Xx




PostPosted: Fri Feb 17, 2006 8:52 am   Post subject: (No subject)

i know i could of...but i buy all my parts at a local store, not of the net. and these were the best they had there...

and im having a problem out putting a char value, i need to assign a char a value and then display that char's value.
code:

public class Alphabit
{
        public static void main (String[]args)
        {
                char A=1;
                char B=2;
                char C=3;
                char D=4;
                char E=5;
                char F=6;
                char G=7;
                char H=8;
                char I=9;
                char J=10;
                char K=11;
                char L=12;
                char M=13;
                char N=14;
                char O=15;
                char P=16;
                char Q=17;
                char R=18;
                char S=19;
                char T=20;
                char U=21;
                char V=22;
                char W=23;
                char X=24;
                char Y=25;
                char Z=26;
                System.out.println("please input a Capitol Letter");
                In.getChar();
                System.out.println("wow...its working");
        }
}
Andy




PostPosted: Fri Feb 17, 2006 9:59 am   Post subject: (No subject)

ok i have no idea what you're asking.. can u rephraise the question
xX_MayDay_Xx




PostPosted: Fri Feb 17, 2006 2:17 pm   Post subject: (No subject)

assining a chracter a value and the calling up that value
example A=1......B=2
get it now?
Andy




PostPosted: Fri Feb 17, 2006 2:48 pm   Post subject: (No subject)

oh.. take the character, subtract 'A' from it and add 1
xX_MayDay_Xx




PostPosted: Mon Feb 27, 2006 8:41 am   Post subject: (No subject)

ok....i don't understand...you want me to subtract A from A and then add 1.....
Andy




PostPosted: Mon Feb 27, 2006 10:17 am   Post subject: (No subject)

try it, output 'A'-'A'+1, then try 'B'-'A'+1 then try 'C'-'A'+1
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 3  [ 40 Posts ]
Goto page Previous  1, 2, 3  Next
Jump to:   


Style:  
Search: