Sunday, June 8, 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?

there are 3D printers, that prints plastic printers. are there 3D scanners?




Jim


i understand that there are "scanners" that tells you how much of a certain element there are in a sample.

relating to this question, are there printers that also print other material?



Answer
Do YOU have any idea what you are talking about?

There are "printers" that can "printer" a 3D model using a special plastic polymer.

There are also "scanners" that can scan the dimensions of a 3D object. Most often, the input from the scanner can be used to make a plastic model of the subject using the 3D "printer".

BOTH are very expensive --several thousand dollars.

Other than that -- set back, take a breath, ask a clear and understandable question.




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