First Name Last Name CIS 2348-18487 Information Systems Application Development Department of Information and Logistics Technology Department College of Technology, University of Houston Spring 202, Exam-1 (20 points) Duration: 1 hour 40 minutes 1. import java.util.Scanner: public class 01 public static void main(String[] args) { System.out.println(" Sum of fist N numbers: "); System.out.println("Enter N, the number upto which you want to su start from 1"); Scanner input= new Scanner(System.in); int N input.nextInt(); 1/ write the logic to find the sun 1+2+...+N 2. public class 02 { public static void main(String[] args) { // The company XYZ Inc., calls for applications to internship positions. // The requirements are: a) the applicant should have a cumulative GPA of 3.8, //b) should have a proficiency in French language //c) should be a Junior /* take the above all requirements as inputs from the user and output whether the user is qualified to get the internship or not. 3. import java.util.Scanner; public class 03 { public static void main(String[] args) { System.out.println("Miles to kilometer Conversion"); System.out.println("Enter the distance in ailes:"); Scanner input= new Scanner(System.in); double m=input.nextDouble(); /* implement the logic to convert the distance in miles to kilometer hint: 1 mile-1609.344 meters 1 kilometer = 1000 meters 4. import java.util.Scanner; public class 04 { public static void main(Stringll args) { Scanner input =new Scanner(System.in); System.out.println("Enter Three Numbers: "); int x= input.nextInt(); int y= input.nextInt(); int z=input.nextInt(); // implement the logic to find the largest number 5. public class 05 { public static void main(String[] args) { System.out.println("Average"); First Name Last Name PSID int x=10; int y=17: //call the method findAverage to compute the average of x and y //and print the result here // implement the method findAverage here public static double findAveragerint a, int b) 6. public class 06 { public static void main(String[] args) { // write your logic to print odd numbers // between 0 and 15 7. public class 07 { public static void main(String[] args) { System.out.println("Area of Shapes:"); System.out.println("Enter the shape you want to find area: "); System.out.println("1. Square, 2. Rectangle, 3. Triangle, 3.quit"); // area of square-side side //area of Rectangle-length width //area of Triangle-(1/2)*length width //Write your logic to continuously ask the user his choice and the dimensions until he prefers to quit. 8. public class 08 { public static void main(String[] args) { System.out.println("Order Summary"); //Bob found an Acer laptop on Amazon.com with 25% off from its listed price of $899.99. He wanted to ship with in two days with a shipping cost of $30.87. There was a sales tax //of 8. Implement your logic to calculate the order total in dollars and print the order //summary with the following details. //a) Item name with discounted price //b) Shipping charge //c) Total before Tax //d) Tax //e) Order total