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

Morse designed a coding system in which letters and other symbols are represented as coded sequences of short and long tones, traditionally called dots and dashes. The codes of the alphabet is easily found by searching "Morse Code". You can easily store these codes in a program by declaring an array with 26 elements and storing the sequence of characters corresponding to each letter in the appropriate array entry. Write a program that reads a string from the user and translates each letter in the string to its equivalent Morse code, using periods to represent dots and hyphens for dashes. Separate words in the output by calling println when there is a space in the input, but ignore punctuation. Write a Console Program in Java in which you can be using the acm.* libraries of Java.
Write a method in Java called FirstDNAMatch(shortDNA, longDNA) that receives 2 strings with the letters that have to do with the four main nucleobases found in the nucleic acids DNA (A for Adenosine, G for Guanine, C for Cytosine and T for Thymine). The method must return the index of the first spot where the first DNA chain can connect to the second or -1 if there is no spot for the 2 chains to match. A matches with T (and other way round) and C matches with G (and other way round). For instance, Chain1: T A A C G G T A C G and Chain2: G C C A match on the index 3.
Morse designed a coding system in which letters and other symbols are represented as coded sequences of short and long tones, traditionally called dots and dashes. The codes of the alphabet is easily found by searching "Morse Code". You can easily store these codes in a program by declaring an array with 26 elements and storing the sequence of characters corresponding to each letter in the appropriate array entry. Write a program that reads a string from the user and translates each letter in the string to its equivalent Morse code, using periods to represent dots and hyphens for dashes. Separate words in the output by calling println when there is a space in the input, but ignore punctuation.
can you help me how to convet the object to xml in java
Serializer s=new Persister();

File f=new File("home.xml");
Mobile c=new Mobile(a[0].getType(),a[0].getOS(),a[0].getSize(),a[0].getMemory(),a[0].getPrice());

try {

s.write(c,f);


} catch (Exception ex) {
Logger.getLogger(Final_project.class.getName()).log(Level.SEVERE, null, ex);
}
Hello! Exercise: Write a class called RandomGeneratorImproved that expands RandomGenerator, which is able to generate random numbers coming from the sets of: a. first numbers, b. powers of 2(not negative int), c. Fibonacci numbers and d. square numbers. Create 2 new methods that are similar to "nextInt" method like (public int nextPrime(int n)) and public int nextPrime(int low, int high)). If there is no prime number in that range, it should show a message saying that and return -1. In the same way you should do all the methods for a., b., c., d. Write a program to test it where the user asks for what kind of random number he wants and within what range (low, high) and the result of it is a RANDOM number. Do not use ARRAYS or any method that saves the numbers in lists. Thank you in advance!
How to use regular expressions in java in order to format and cleaning the files...
Hello, I need help with writing a program in arrays using these following methods:
1- Sorting
2- Searching
3- Filling randomly
4- Min, Max, Sum, Avg
5- Remove Repeat
6- Count all,element
7- reverse
8-printing
9- return array
10-Menu
Hello there. I'm making a class called LibraryRecord, which has 2 constractors. The first one "manages" 6 attributes of an object and they are the following: 1. The title of the book 2. The writer/author 3. The "ISBN"- a serial number. 4. The publisher 5. The year it was published 6. If it's still being published or not. The 1st constructor "accepts" all 6 variables and creates an object Library Record with them. The 2nd constructor only contains the first 5 elements stating the book is still being released. In the program I should include get-methods for every element(all 6 elements), also I should include a set-method with a flag that shows if it's being released or not. And I should do an appropriate use of the method toString. Lastly,I need to make a simple program to test it out.
I get 2 errors when i try to compile the Main Program.
Write a JAVA program that will input Employee Name, Rate per hour, No. of hours worked
and will compute the daily wage of an employee. If the number of hours worked exceeds
eight hours add 30% to each excess hours as overtime rate.
Formula: Daily Wage = Rate per hour * No. of hours worked + OT pay
Write a program to calculate students average test scores and their grades. You may
assume the following data:

Johnson 85 83 77 91 76
Aniston 80 90 95 93 48
Cooper 78 81 11 90 73
Gupta 92 83 30 69 87
Blair 23 45 96 38 59
Clark 60 85 45 39 67
Kennedy 77 31 52 74 83
Bronson 93 94 89 77 97
Sunny 79 85 28 93 82
Smith 85 72 49 75 63


Use three arrays: a one-dimensional array to store the student names, a (parallel) twodimensional
array to store the test score, and a parallel one-dimensional array to store
grades. Your program must contain at least the following methods: a method to read
and store data into two arrays, a method to calculate the average test score and grade
and a method to output the results. Have your program also output the class average.
LATEST TUTORIALS
APPROVED BY CLIENTS