Declaring and Using Arrays

Declaring and Using Arrays

21 August 0

INF231 Week 4 Assignment public class gradesArray { public static void main(String[] args) { String[] nameArray = {“Jon”, “Rajesh”, “Elizabeth”, “Julio”, “Chang”}; String[] gradeArray = new String[5]; double[] score1Array = {72, 60, 45, 70, 89}; double[] score2Array = {50, 70, 60, 85, 90}; double[] score3Array = {70, 80, 90, 100, 100}; double[] averageArray = new […]

Read More
INF231 WEEK 4 QUIZ

INF231 WEEK 4 QUIZ

21 August 0

INF231 WEEK 4 QUIZ Question 1 1 / 1 pts Incremental model has ____ initial delivery cost and ____ customer confidence. (Links to an external site.)Links to an external site. Correct! low, high high, high low, low high, low Top of Form Bottom of Form The answer can be found in Ch. 3 Section: Iterative […]

Read More
Working with Conditionals and Loops Lab

Working with Conditionals and Loops Lab

21 August 0

import static java.lang.System.out; import java.util.Scanner; public class AverageGrade { public static void main(String[] args) { double TestScore1; double TestScore2; double TestScore3; String name1; Scanner Keyboard = new Scanner(System.in); System.out.print(“Please enter your name:”); name1 = Keyboard.nextLine(); System.out.println(“Please enter test score1”); TestScore1 = Keyboard.nextInt(); System.out.println(“Please enter test score2”); TestScore2 = Keyboard.nextInt(); System.out.println(“Please enter test score3”); TestScore3 = […]

Read More
Final: Temperature Conversion

Final: Temperature Conversion

21 August 0

INF231 Week 5 Final Temperature Conversion INF231 Week5 Final Project. import java.util.Scanner; public class FinalTemp{ public static void main(String[] args) { System.out.println(“Hello Instructor Alkilani, this is the INF231 Final assignment for Joseph Kennedy”); Scanner sc = new Scanner(System.in); boolean repeat=true; while (repeat) { try{ System.out.print(“nEnter temperature in Fahrenheit :”); String input=sc.next(); int temperature=Integer.parseInt(input); float celsius […]

Read More