moranmar2283
19.10.2019 •
Mathematics
How do you compare 23 inches into to feet
Solved
Show answers
More tips
- L Leisure and Entertainment What Movies You Should Watch: A Guideline to Make the Right Decision...
- F Family and Home How to Choose a Baby Stroller: Tips from Experienced Parents...
- H Health and Medicine 5 Simple Steps to Quit Smoking for Good...
- C Computers and Internet How to Download Videos from YouTube? Simple Steps to Download Any Content...
- H Health and Medicine What is the Normal Blood Sugar Level in a Healthy Person?...
- S Style and Beauty How to Get Rid of Acne: Scientifically Proven Methods...
- L Leisure and Entertainment How to Choose the Perfect Gift for Men on February 23rd?...
- C Computers and Internet How to Delete Your Account on Odnoklassniki...
- H Health and Medicine 10 Simple and Effective Tips on How to Lose Weight in a Week...
- F Food and Cooking What s the Best Rice for Cooking Plov?...
Answers on questions: Mathematics
- M Mathematics What does 3w =30 mean a. 6 b.9 c.10 d.12...
- M Mathematics B. (x, y) = (x +3, y + 5) E (0,-4) F (11,-5) G (-6, 10)...
- M Mathematics How many 1/ 3 pound hamburger patties can be made from 4 pounds of ground beef?...
- M Mathematics Sunflower we haved renewed your helper thank you with working with our business...
- M Mathematics if the gas station has 80 customers on Tuesday, how many customers can be predicted to get a Dr.pepper?...
- M Mathematics Use the system of equations to answer the question. x + y = 3 y = x - 5 What is the solution to the system of equations?...
- M Mathematics The list shows numbers in order from least to greatest?...
- M Mathematics There is 2 different questions so if you can answer both then Tysm...
- M Mathematics Answer plz it a maath question...
- M Mathematics Can someone anyone please help me asap...
Ответ:
12 inches x 2 = 24, but that's over 23.
So, 23 inches = 1 foot and 11 inches.
Glad I could help, and good luck!
Ответ:
Ответ:
/ Sierpinski.java
public class Sierpinski {
// method to find the height of an equilateral triangle with side length =
// length
public static double height(double length) {
// formula= length*sqrt(3)/2
double h = (length * Math.sqrt(3)) / 2.0;
return h;
}
// method to draw a filled triangle (pointed downwards) with bottom vertex
// x,y
public static void filledTriangle(double x, double y, double length) {
// finding height
double h = height(length);
// filling triangle as a polygon
// passing x, x-length/2, x+length/2 as x coordinates
// and y, y+h, y+h as y coordinates
StdDraw.filledPolygon(new double[] { x, x - (length / 2.0),
x + (length / 2.0) }, new double[] { y, y + h, y + h });
}
// method to draw an n level sierpinski triangle
public static void sierpinski(int n, double x, double y, double length) {
// checking if n is above 0 (base condition)
if (n > 0) {
// drawing a filled triangle with x, y as bottom coordinate, length
// as side length
filledTriangle(x, y, length);
// drawing the triangle(s) on the top
sierpinski(n - 1, x, y + height(length), length / 2);
// drawing the triangle(s) on the left side
sierpinski(n - 1, x - (length / 2.0), y, length / 2);
// drawing the triangle(s) on the right side
sierpinski(n - 1, x + (length / 2.0), y, length / 2);
}
}
public static void main(String[] args) {
// parsing first command line argument as integer, if you dont provide
// the value while running the program, this program will cause
// exception.
int n = Integer.parseInt(args[0]);
// length of the outline triangle
double length = 1;
// finding height
double h = height(length);
// drawing a triangle (pointed upwards) to represent the outline.
StdDraw.polygon(new double[] { 0, length / 2, length }, new double[] {
0, h, 0 });
// drawing n level sierpinski triangle(s) with length / 2, 0 as x,y
// coordinates and length / 2 as initial side length
sierpinski(n, length / 2, 0, length / 2);
}
}