SoundFreakk Posted December 6, 2014 Report Share Posted December 6, 2014 You can try me..I never actually used c++ but study software engineering so I'm familiar with some other program languages. Also I could ask a teacher if really needed Ascendant Audio/Rockford Fosgate Car Audio in House Build Link to comment Share on other sites More sharing options...
BEEKAY Posted December 6, 2014 Report Share Posted December 6, 2014 yeah stack overflow is great.... they tell you that youre wrong and that you need to learn what you are doing. Its extremely helpful I disagree with that man. That is with anything you ask no matter where it's at. Hell I see it happening on these car audio forums all the time. It's really how you ask it. I've been programming for years and have always used Stackoverflow as a resource. There is always someone there to help out. You just sometimes have to weed out the trolls. Link to comment Share on other sites More sharing options...
n8ball2013 Posted December 6, 2014 Author Report Share Posted December 6, 2014 I realize that but my patience is real thin at this point. This class is complete bullshit. It was supposed to be an application security class. They stopped offering it so they threw all the infosec majors into the available programming class and now we are all in way over our heads and have zero ability to get support. The instructor tells us to use peer review. Well when you have a bunch of people with no interest in a subject or any prior knowledge there isnt alot of peer review to do because no one can help you. And the instructor basically goes MIA since its an online course. Just not a good mix. THERE IS NO BUILD LOG! 1998 Chevy Silverado ext cab Alpine CDA-9887 4 Team Fi 15s 2 Ampere Audio TFE 8.0 2 Ampere Audio 150.4 3 Digital Designs CS6.5 component sets Dual Mechman 370XP Elite alternators inbound! 8 XS Power d3400 6 XS power d680 Second Skin Stinger Tsunami Wiring Sky High A Real Voltmeter not a piece of shit stinger. Link to comment Share on other sites More sharing options...
Kyblack76 Posted December 6, 2014 Report Share Posted December 6, 2014 Maiko will get you through it dude... or he will die trying. I trust the kid... balls to bones.. SMD SUPER SELLER The Burban Build Blazer Build sold Acura trunk build sold Link to comment Share on other sites More sharing options...
RyanJ Posted December 6, 2014 Report Share Posted December 6, 2014 I'm currently doing Java right now. My brother is next to me and went to UC Davis and got a BS for computer science engineering and is currently working for a start up at Silicon Valley. I can ask him? So you want to make a class and a program that does the area of a square / circle? MOB-MOBILE: 2005 Honda Accord 5-Speed System: (1) Sundown Audio SA-15 (1) MB Quart ONX1.1500D (1) Kenwood KDC-248U Speakers: -Rear Dash: (2) Clarion SRQ6932R 6x9's SOLD New MOB-MOBILE: 2011 G37S Sedan System:TBD Instagram (18+) : DabsWitaBudget415 Link to comment Share on other sites More sharing options...
n8ball2013 Posted December 6, 2014 Author Report Share Posted December 6, 2014 thats all im trying to do this week. lol. I realize program guys are probably like umm thats easy but im far from a programmer you want to put in a firewall I got you. You want to do a risk analysis based on anything i got you. this i got nothing. THERE IS NO BUILD LOG! 1998 Chevy Silverado ext cab Alpine CDA-9887 4 Team Fi 15s 2 Ampere Audio TFE 8.0 2 Ampere Audio 150.4 3 Digital Designs CS6.5 component sets Dual Mechman 370XP Elite alternators inbound! 8 XS Power d3400 6 XS power d680 Second Skin Stinger Tsunami Wiring Sky High A Real Voltmeter not a piece of shit stinger. Link to comment Share on other sites More sharing options...
RyanJ Posted December 6, 2014 Report Share Posted December 6, 2014 I made a program last night pretty much doing this except in Java. Ill uplaod it. Same concept except theres a little different command prompts for Java Vs C++. Do youw ant em to upload it to give you an idea?My program caluclates + returns the surface area of a box (needed = Length, Width, Height) and the volume of a box.I wrote the class and a program so they directly relate. MOB-MOBILE: 2005 Honda Accord 5-Speed System: (1) Sundown Audio SA-15 (1) MB Quart ONX1.1500D (1) Kenwood KDC-248U Speakers: -Rear Dash: (2) Clarion SRQ6932R 6x9's SOLD New MOB-MOBILE: 2011 G37S Sedan System:TBD Instagram (18+) : DabsWitaBudget415 Link to comment Share on other sites More sharing options...
n8ball2013 Posted December 6, 2014 Author Report Share Posted December 6, 2014 You can it might help THERE IS NO BUILD LOG! 1998 Chevy Silverado ext cab Alpine CDA-9887 4 Team Fi 15s 2 Ampere Audio TFE 8.0 2 Ampere Audio 150.4 3 Digital Designs CS6.5 component sets Dual Mechman 370XP Elite alternators inbound! 8 XS Power d3400 6 XS power d680 Second Skin Stinger Tsunami Wiring Sky High A Real Voltmeter not a piece of shit stinger. Link to comment Share on other sites More sharing options...
RyanJ Posted December 6, 2014 Report Share Posted December 6, 2014 So you will need to write a class and a program. The class I named is Box.java . The program I named is BoxTest.java This program might have a little extra as my professor is all about that EXTRA shit But.... here it is. Im just copy and pasting, but I'll explain it after I post it.If you would liek to RUN it, I can send it to you via e-mail through a zip file, you can save it, and than use CMD to run it. This is the class public class Box{ // declaring instance variables as double private double length; private double width; private double height; // constructor with three parameters type double public Box( double l, double w, double h ) { length = checkValue( l ); width = checkValue( w ); height = checkValue( h ); } // get method for length public double getLength() { return length; } // set method for length public void setLength( double l ) { length = checkValue( l ); } // get method for width public double getWidth() { return width; } // set method for width public void setWidth( double w ) { width = checkValue( w ); } // get method for height public double getHeight() { return height; } // set method for height public void setHeight( double h ) { height = checkValue( h ); } // checking if there is a 0 or negative number using if..else and if so, replace with 1.0 private double checkValue( double value ) { if ( value <= 0 ) { return 1.0; } else { return value; } } // method toString public String toString() { return String.format( "length = %f, width = %f, height = %f", length, width, height ); } // method calculateArea to figure out area public double calculateArea() { double area = 2 * length * width + 2 * width * height + 2 * length * height; return area; } // method calculateVolume to figure out volume public double calculateVolume() { double volume = length * width * height; return volume; }} THIS IS END OF THE CLASS BOX. This is the code that acutally calculates the area + volume.Now here is the program. This actually uses the class and runs it. public class BoxTest{ // main method begins execution of BoxTest public static void main( String args[] ) { // creating an array with the size of 4 Box[] boxArray = new Box[4]; // giving each array random values boxArray[0] = new Box(1.0, 2.0, 3.0); boxArray[1] = new Box(-1.0, -2.0, -3.0); boxArray[2] = new Box(4.0, 5.0, 6.0); boxArray[3] = new Box(7.0, 8.0, 9.0); // using an enhanced for loop to print out length, width, height, area, and volume for ( Box i : boxArray ) { System.out.printf( "\n%s", i.toString()); System.out.printf( "\nThe Surface Area Of The Box Is: %f", i.calculateArea()); System.out.printf( "\nThe Volume Of The Box Is: %f\n", i.calculateVolume()); } // Programmer System.out.println( "\nProgrammed By: Ryan Jin" ); // end main } // end class} MOB-MOBILE: 2005 Honda Accord 5-Speed System: (1) Sundown Audio SA-15 (1) MB Quart ONX1.1500D (1) Kenwood KDC-248U Speakers: -Rear Dash: (2) Clarion SRQ6932R 6x9's SOLD New MOB-MOBILE: 2011 G37S Sedan System:TBD Instagram (18+) : DabsWitaBudget415 Link to comment Share on other sites More sharing options...
RyanJ Posted December 6, 2014 Report Share Posted December 6, 2014 Let me know if this rings a bell. hahah you woudl have to just change calculateVolume to calculateCircle I guess and calculateArea to calculateSquare MOB-MOBILE: 2005 Honda Accord 5-Speed System: (1) Sundown Audio SA-15 (1) MB Quart ONX1.1500D (1) Kenwood KDC-248U Speakers: -Rear Dash: (2) Clarion SRQ6932R 6x9's SOLD New MOB-MOBILE: 2011 G37S Sedan System:TBD Instagram (18+) : DabsWitaBudget415 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.