Thank you :) I forgot to test for a right triangle so I got B on the assignment but It's cool. Thanks for the clarification.
Type: Posts; User: michael305rodri
Thank you :) I forgot to test for a right triangle so I got B on the assignment but It's cool. Thanks for the clarification.
Nvm got it! Thank you guys!
How can I delete?
how do I delete it?
I just reposted this in a nicer way. Should I delete this post?
I recently posted a similar post to this one. The reason why I'm posting this again is because an administrator told me to put [ highlight=Java] and [/highlight] to make my post more readable I hope...
public SpeedDating()
{
} // Constructor has empty body
/**
* Prints the day of the week (e.g. "Thursday") on which Halloween will
* fall for 10 consecutive years.
*...
System.out.println("Example2c: ");
int A = 85;
int B = 65;
String out = "\tNot a valid input!";
if (x > A) out = "\tWell done!";
if (x > B) out =...
I have no idea how to start :( It says 4 digit string so I thought about parse to convert to int but I really have no idea how to begin.... Any help or guidance would be really appreciated thanks
Time is given as a 4 digit string. First 2 digits represent hour, the last 2 represent minitute.
Thus 935 is 9 hours 35 minutes (9:35am), 1454 is 14 hours 54 minutes (2:54pm).
• Write a method that...
/* what is the output for each one of these methods for
* x = -1,0,1,64,65,66,84,85,86,100) */
public class IfExamples
{
public IfExamples() {}
public void Example1(int x)
...
Be able to “play computer” or hand trace segments of code containing variable declarations, input, assignment, decisions, and output statements.
My exam is coming up and I need to know what play...
obtuse: any two side lengths where the sum of their squares is less than the square of the other side length
right: any two side lengths where the sum of their squares is equal to the square of the...
obtuse : any two side lengths where the sum of their squares is less than the square of the other side length
right:any two side lengths where the sum of their squares is equal to the square of the...
I'm almost done! I am supposed to make a program that allows a user to input the sides of a triangle and print out whether it's an equilateral, obtuse/acute isosceles, or no triangle. Right triangle...