Question: java LO: (Analyze) Students will refactor a program to use variables. This code block from a program calculates the area of a triangle that is
LO: (Analyze) Students will refactor a program to use variables. This code block from a program calculates the area of a triangle that is 50 centimeters wide and 12 centimeters tall Rewrite this code block using variables so that it can calculate the area of different-sized triangles. Give all variables clear names Note: While this problem won't have any test cases, it will be checked by the instructor manually Variable Names.java New float t - 0.5 .50 . 12; Full Screen v Grading 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
