Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ I would like you to complete what you can prior to next Wednesday's Lecture.
#### Recursion

* Write a program that takes an integer, and prints the factorial of the integer. ex: 5 factorial is 5*4*3*2*1
* Write a
* Write a program that will calculate the number of cannon balls in a trinagular pyramid that has the intered integer number of rows.
(Note: this means that any layer of the pyramid has an equalateral triangle of cannonballs. The top layer has 1 cannon ball, the one below that has 3, etc.)
* Use recursion to determin if a string passed in is a palindrome. Your program will be given a string.
16 changes: 16 additions & 0 deletions bkeller17/FtoC
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import java.util.Scanner;

public class LAB4Q2{
public static double ConvertFtoC(int Input){
return (Input-32) * 5/9.0;
}
public static void main(String [] args)
{
Scanner scan = new Scanner(System.in);
int input = scan.nextInt();

int F = input;

System.out.println(ConvertFtoC(F));
}
}
1 change: 1 addition & 0 deletions jifland/test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@