Write a java test program all the code should be in a


Program 1: Write a Java test program, all the code should be in a single main method that calculates and outputs the average of the numbers 1, 2, 9, 27, and 54.

Your program should store the average in a variable and print the content of that variable.

Program 2: Write a Java test program (all the code should be in a single main method) that reads a word representing a domain name from the user. Your program should concatenate to the front of the word, and .com to the back of the word, and print the result of the concatenation.

This is an optimal place to use the JOptionPane show Input Dialog method for input. Recall that this method returns a String.

*This exercise requires JGrasp software.

Solve this Program using java programming concepts - Be sure to include comments. Comments should be included in the program to explain your calculations and program.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a java test program all the code should be in a
Reference No:- TGS0953346

Expected delivery within 24 Hours