Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

Students also viewed these Databases questions

Question

4. Choose appropriate and powerful language

Answered: 1 week ago

Question

2. Choose an appropriate organizational pattern for your speech

Answered: 1 week ago