Question: 1. Write a program that reads three edges for a triangle and computes the perimeter if the input is valid. Otherwise, display that the input

1. Write a program that reads three edges for a triangle and computes the perimeter if the input is valid. Otherwise, display that the input is invalid. The input is valid if the sum of every pair of two edges is greater than the remaining edge. Save the source code in file wk2ex1. java .

2. Write a program that prompts the user to enter the number of students and each students name and score, and finally displays the name of the student with the highest score. Save the source code in file wk2ex2. java

3. Write a method with the following header to display three numbers in increasing order:

public static void displaySortedNumbers( double num1, double num2, double num3)

Write a test program that prompts the user to enter three numbers and invokes the method to display them in increasing order. Save the source code in file wk2ex3. java

Take the all screenshot and save in to Microsoft word file name Lab02Screenshot.doc. Create a Week2Lab folder and put screenshot, above three codes wk2ex1. java, wk2ex2. java, and wk2ex3. java

Compress the folder Week2Lab2 and upload it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!