The point of this exercise is to create methods that invoke other methods, create methods that
take parameters and to practice using conditionals and keyboard input.
Create a new project named...
Type: Posts; User: LoganC
The point of this exercise is to create methods that invoke other methods, create methods that
take parameters and to practice using conditionals and keyboard input.
Create a new project named...
That was a code that my teacher made and I had to debug it. Would I print the results after the main in it's own method? Or in the areaTriangle areaCircle areaRectangle methods?
run:
Which shape do you want area for?
1 Triangle 2 Circle 3 Rectangle 0 None
3
Length of rectangle?
4
Width of rectangle?
2
BUILD SUCCESSFUL (total time: 5 seconds)
Fixed it Norm
I am trying to make a program that will get the area of a Triangle,Rectangle,Circle.
The user picks which shape they want the area of and then inputs the Length/Width/Radius or whatever is needed....