Friday, March 7, 2014

Java programming help, 3D room?




ali


Okay, I'm beyond lost at the moment. As you can tell, I'm a sucky programmer and I have a project due and any help on this would be awesome. Even just to get me started and get my brain cells moving hahaha

Okay, So. I have to write a program that separately prompts and inputs the length, width, and height of a room. Then, taking the floor of the room, it will calculate the rooms area and perimeter. THENNN, taking the room as a rectangular solid it will calculate the rooms surface area and volume. Then output the labeled results.



Answer
You'd get input like this:

======
Scanner inScanner = new Scanner( System.in );

System.out.print("Enter room length: ");
double length = inScanner.nextDouble();
======

You only have to make the scanner once, and can use it for all three inputs. I don't know if you are allowed to assume integer inputs (inches or rounded-off feet?).

Once you have length, width, and height, the rest are pretty straightforward, aren't they?

floor area = length * width
perimeter = 2*length + 2*width
volume = length * width * height
surface area = 2*length*width + 2*width*height + 2*length*height

Output is pretty simple:

System.out.println("Floor area = " + (length*width) );
(and analogously for the others).

Is there some other specific issue you are having?

how to create a 3d model of a guitar?




Paul


i want to create a 3d model of a guitar. what ways are there to help me create it with the software i have, as in importing photo files or a scanning the guitar itself?


Answer
if you meant to design 3D guitar on computer, you could simple collect measurements and re draw image in 3D editor like Sketchup

Sketchup
http://www.sketchup.com/
3d Warehouse
http://sketchup.google.com/3dwarehouse/search?q=guitar&styp=m&scoring=t&btnG=Search
___________

Strata - 3D CX
http://www.strata.com/products/strata_3d_cx_suite/strata_foto_3d_cx/
could be use to take photos and place visually into rendered object of guitar body

if you meant to actually make model as life size copy,
that would require laser scanner and printer

Geomagic 3D Haptic Design, Imaging and Metrology software
http://geomagic.com/en/

NextEngine 3D Laser Scanner
http://www.nextengine.com/

Handyscan Handheld 3D Scanners
http://www.creaform3d.com/en/handyscan3d/default.aspx

3D Printers and Rapid Prototyping | 3D Systems
http://www.zcorp.com/en/home.aspx
..




Powered by Yahoo! Answers

Title Post: Java programming help, 3D room?
Rating: 100% based on 99998 ratings. 5 user reviews.
Author: Yukie

Thanks For Coming To My Blog

No comments:

Post a Comment