@AdamChen3/

Jenny's Coding Lab 2

Java

No description

fork
loading
Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
class Main {
  public static void main(String[] args) {
    // You can ignore the following lines.  (Do not edit them)
    System.out.println(run50PointVersion());
    System.out.println(run60PointVersion());
    System.out.println(run70PointVersion());
    System.out.println(run80PointVersion());
    System.out.println(run90PointVersion());
    System.out.println(run100PointVersion());
  }
 public static String run50PointVersion(){
    // Write your code for the 50 point version below.  Be sure to stay above the next comment.
     

    
    
    // Do not edit the following lines, except to uncomment the "result +=" lines when you are ready to test. (Ctrl + /)
    String result = "";
    // result += "num1:\t\t" + num1 + "\n";
    // result += "exponent:\t" + exponent + "\n";
    // result += "Ceiling:\t" + ceilingRounded + "\n";
    // result += "Floor:\t\t" + floorRounded + "\n";
    // result += "Power:\t\t" + toThePowerOf + "\n";
    return result;
 }

  public static String run60PointVersion(){
    // Write your code for the 60 point version below.  Be sure to stay above the next comment.
    

    
    
    // Do not edit the following lines, except to uncomment the "result +=" lines when you are ready to test. (Ctrl + /)
    String result = "";
    // result += "num2:\t\t" + num2 + "\n";
    // result += "Square Root:\t" + squareRoot + "\n";
    // result += "Absolute Value:\t" + absoluteValue + "\n";
    // result += "Rounded:\t" + rounded + "\n";
    return result;
  }
  
  public static String run70PointVersion(){
    // Write your code for the 70 point version below.  Be sure to stay above the next comment.
    


    
    
    // Do not edit the following lines, except to uncomment the "result +=" lines when you are ready to test. (Ctrl + /)
    String result = "";
    // result += "Age 1:\t\t" + age1 + "\n";
    // result += "Age 2:\t\t" + age2 + "\n";
    // result += "Age Difference:\t" + ageDifference + "\n";
    return result;
  }
  
  public static String run80PointVersion(){
    // Write your code for the 80 point version below.  Be sure to stay above the next comment.
   

    // Do not edit the following lines, except to uncomment the "result +=" lines when you are ready to test. (Ctrl + /)
    String result = "";
    // result += "Age 3:\t\t" + age3 + "\n";
    // result += "Age 4:\t\t" + age4 + "\n";
    // result += "Youngest:\t" + youngestAge + "\n";
    // result += "Oldest:\t\t" + oldestAge + "\n";
    return result;
  }
  
  public static String run90PointVersion(){
    // Write your code for the 90 point version below.  Be sure to stay above the next comment.


    
    // Do not edit the following lines, except to uncomment the "result +=" lines when you are ready to test. (Ctrl + /)
    String result = "";
    // result += "Age 5:\t\t" + age5 + "\n";
    // result += "Age 6:\t\t" + age6 + "\n";
    // result += "Age 7:\t\t" + age7 + "\n";
    // result += "Age 8:\t\t" + age8 + "\n";
    // result += "Age 9:\t\t" + age9 + "\n";
    // result += "Youngest:\t" + youngestAge + "\n";
    // result += "Oldest:\t\t" + oldestAge + "\n";
    return result;
  }
  
  public static String run100PointVersion(){
    // Write your code for the 100 point version below.  Be sure to stay above the next comment.
   
    
    // Do not edit the following lines, except to uncomment the "result +=" lines when you are ready to test. (Ctrl + /)
    String result = "";
    // result += "Age 10:\t\t" + age10 + "\n";
    // result += "Decade:\t\t" + decade + "\n";
    // result += "Til Next Dec.:\t" + yearsUntilNextDecade + "\n";
    return result;
  }
}