Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Control Structures: As a build up from the previous question, consider 3 possible scenario of input : A character, number or word. You program should the do the following: In case the input is a character it should indicate if it’s a vowel or not, when a number is entered then it’s should check if it’s a prime and finally if a word is entered the system should check if it’s a palindrome or not. Sample Run1 Sample Run3 Enter a character, number or word: c Enter a character, number or word: 7 Output1: C is not a vowel Output3: 7 is a prime number Sample Run2 Enter a character, number or word: programming Output2: Programming is not a palindrome


Given a positive number, create an array with that number as a size and populate it with the items/names provided. Additionally, the program should print out the longest name in the array. Sample Run1 3 Apple Banana Kiwi Output1: Banana is the longest name


. Discuss how asymptotic analysis can be used to assess the effectiveness of an algorithm. 

P7. Determine two ways in which the efficiency of an algorithm can be measured, illustrating your answer with an example


Implement a complex ADT and algorithm in an executable programming language to solve a well-defined problem. 


Implement error handling and report test results


Given a positive number, create an array with that number as a size and populate it with the items/names provided. Additionally, the program should print out the longest name in the array. Sample Run1 3 Apple Banana Kiwi Output1: Banana is the longest name


Control Structures: As a build up from the previous question, consider 3 possible scenario of input : A character, number or word. You program should the do the following: In case the input is a character it should indicate if it’s a vowel or not, when a number is entered then it’s should check if it’s a prime and finally if a word is entered the system should check if it’s a palindrome or not. Sample Run1 Sample Run3 Enter a character, number or word: c Enter a character, number or word: 7 Output1: C is not a vowel Output3: 7 is a prime number Sample Run2 Enter a character, number or word: programming Output2: Programming is not a palindrome


Using the provided recording and your knowledge from programming 1. Create a program in java that takes in an input from the user and checks whether it’s a number or a word. In-case a number is entered the program should print the number to the power 3 and if a word is entered your program should split that word into 2. Sample Run1 Enter a number or word: 7 Output1: 7 to the power 3 = 343 Sample Run2 Enter a number or word: NAMIBIA Output2: The word split in half is : NAMI and BIA


Write a Java application to produce the following Gui.


Write the definition for a worker class called User, with instance variables for a username and corresponding password.

Make use of an arraylist to store User objects containing valid username/password pairs.

Add some validation for user input.

Use JOptionPane class to display an appropriate message for a valid/invalid login.

 

OPTIONAL: add functionality to add new users.


Make a Mortgage Calculator code


Make a Mortgage Calculator Test code


Create a class called Team that will be used for creating team objects, the class must have the

following data members and methods:

Data Members:

 Name,the name of the team

 HomeGround, the name of the Home stadium of the team

 Goals, the number of goals that the team scores during the match

Choose appropriate types for the data members

Methods:

 A default constructor which will initialize all data members to proper initial values

 An overloaded constructor which receives two arguments; a team name and home

ground name and it should also initialize the goals to a proper initial value

 scoreGoals(), since a team can score 0 to 4 goals, this helper method must assign the

Goals data member to a random number in that range

 getName(), getHomeGround(), getGoals(), create get methods for each data member


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS