This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GradesVersionThree { | |
public static void main(String[] args) { | |
double grade = 7.5; | |
// declares an array of integers | |
String[] Grades = new String [] {"F","C","B-","B","B+","A","A+"}; | |
double[] upperLimits = new double [] {4.99,5.49,5.99,6.99,8.99,9.99}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MeanArray { | |
public static void main(String[] args) { | |
//Define & Initialization | |
int numbers[] = new int[] {196,10,6,40,44}; | |
int sum = 0; | |
for(int i = 0 ; i <= 4 ; i ++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SumArray { | |
public static void main(String[] args) { | |
//Define & Initialization | |
int mumbers[] = new int[] {196,10,6,40,44}; | |
int sum = 0; | |
for(int i = 0 ; i <= 4 ; i ++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GradesVersionTwo { | |
public static void main(String[] args) { | |
double grade = 7.5; | |
// declares an array of integers | |
double[] lowerLimits = new double [] {0,5,5.5,6,7,9,10}; | |
double[] upperLimits = new double [] {4.99,5.49,5.99,6.99,8.99,9.99}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArrayDemoWithLoop { | |
public static void main(String[] args) { | |
// declares an array of integers | |
int[] anArray; | |
// allocates memory for 10 integers | |
anArray = new int[10]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Program that prints numbers 1-10 with Letters | |
*/ | |
public class WriteNumbers { | |
public static void main(String[] args) { | |
for(int i = 1 ; i <= 10 ; i++){ | |
Print(i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Program description | |
*/ | |
public class SequenceWithInt { | |
public static void main(String[] args) { | |
int five = 5; | |
for(int i = 1 ; i <= 10 ; i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Program description | |
*/ | |
public class SequenceWithInt { | |
public static void main(String[] args) { | |
int sequence = 5; | |
for(int i = 1 ; i <= 10 ; i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Program description | |
*/ | |
public class Grades { | |
public static void main(String[] args) { | |
double grade = 7.5; | |
if(grade<0){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Program description | |
*/ | |
public class SequenceTwo { | |
public static void main(String[] args) { | |
int beginning = 1; | |
int sequence; | |