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

Need a program in java:
The cash register has the following bills: 1x 20eur, 2x 10eur, 3x 5 eur,1x 2eur, 1x 1eur. The program asks: „how large is the change:“ .If the change is too large, then: „There isnt enough change". If it isnt possible to give out an exact change (for example: 24 eur), then „Its not possible to give exact change". But if there is enough change (lets say 37 eur) then the program should say like this:
„The change is:
20 eur: 1x
10 eur: 1x
5 eur: 1x
2 eur: 1x
Program needed in java:
The program has to generate a random number between -1000 and 1000. User has 11 guesses max. Then the person guesses, if the quess is too high then the program has to say „your guess was too high“ and if the guess was too low then „your guess was too low“. If the user guesses the number then the program has to say „you found the hidden number“. If the user didnt find the number after 11 guesses then: „you lost. The hidden number is -(hidden number)-.
Write a method for a linked list that calculates the number of target value. For example, if your link list has scores of students, the input will be a number and the output will be the frequency of that number in the linked list. Use this method with the linked list class to show the functioning of this method.
Need a programm:
The program asks for a integer number. If its a prime number then it has to say „Prime number“.If its not then the programm has to say „number -(inserted number)- is not a prime number and divides with: …“. It has to say ALL the numbers the inserted number divides with.
Change your fraction class so that its instance variables numerator and denominator are hidden (i.e. private). Check that your old client class will not now compile (i.e, if the Fraction class instance variable name ‘numerator’ was used in the client class).
The Harrison Group Life Insurance company computes annual policy premiums based on the age the customer turns in the current calendar year. The premium is computed by taking the decade of the customer’s age, adding 15 to it, and multiplying by 20. For example, a 34-year-old would pay $360, which is calculated by adding the decades (3) to 15, and then multiplying by 20. Write an application that prompts a user for the current year and a birth year. Pass both to a method that calculates and returns the premium amount, and then display the returned amount.

Save the class as Insurance.java. Don’t forget to create the application/project InsuranceTest.java Class that has the main method and an object to use the Insurance class.
Write a JAVA program that asks the user to enter a number. Display the following pattern by writing lines of asterisks.
The first line will have one asterisk, the next two, and so on, with each line having one more asterisk than the previous line,up to the number entered by the user.For example, if the user enters 5, the output would be:
*
* *
* * *
* * * *
* * * * *
Write a JAVA program that asks the user to enter time in 24hour format. Convert it into 12-hour format. Repeat the program by asking whether the user wants to continue (yes continue, no: stop the program) or not
Write a JAVA program that asks the user to enter time in 24hour format. Convert it into 12-hour format. Repeat the program by asking whether the user wants to continue (yes continue, no: stop the program) or not. h -> 0 to 23 m -> 0 to 59 short codes please
Write a JAVA program that asks the user to enter a number. Display the following pattern by writing lines of asterisks.
The first line will have one asterisk, the next two, and so on, with each line having one more asterisk than the previous line,
up to the number entered by the user.For example, if the user enters 5, the output would be:
*
* *
* * *
* * * *
* * * * *

short codes please
LATEST TUTORIALS
APPROVED BY CLIENTS