Java | JSP | JSF Answers

Questions answered by Experts: 3 611

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

Write a Servlet that lets a user vote for his favorite food from a combo box or radio buttons (the user must be able to make multiple food selections per request).
• Store the favorite foods and the number of votes for each food.
• Display all foods and their number of votes in alphabetical order back to the user.
• Use database to store the data.
Write a Servlet that takes the user’s name and age from a form.
• Echo back the name and age along with a message stating the price of movie tickets.
• The price is determined by the age passed to the JSP.
• If the age is greater than 62, the movie ticket price is $7.00.
• If the user is less than 10 years old, the price is $5.00.
• For everyone else, the price is $9.50.
The method must now ask for the customer name. If the customer is part of the loyalty program the
method must update the arrays according to this purchase. How to check the customer is already exist in the string array?
i want to change the alphabet to number, e.g. A = 0, B = 2 etc all the way to Z, this my encryption task< all i need is the code or the man line that does what i have asked. Please help
The Universe Energy electric company calculates electricity charges based upon usage. The normal rate is RM0.50 per Kilowatt Hour (KWH) for the first 1000 KWH. If the number of KWH is above 1000, then the balance from normal rate is charged for RM0.40 per KWH. Write a CalculateBill class that consists of only one method named calculate() to calculate and return the electricity charge.

Then, write one other class named DemoCalculateBill to demonstrate the CalculateBill class. (Prompt the user to input the number of Kilowatt Hours used and then display the total of the electric bill). The example of input/output is shown below:

Enter the number of Kilowatt Hours used: 600
Electric bill is: RM300.00
You are given a table that shows the total number of cars sold by a local car manufacturer in Johor Bharu for the first six months in the year 2008.

Month Jan Feb Mar Apr May Jun
Number of cars sold (units) 191 196 269 308 236 145
Based on the figure given above, you are required to write a Java program using array to store all the information given above and a for loop to determine the sum of all the odd numbers in the array. Finally, the program should display the result.
I have project in crptography course



my idea is that how I do password cracker to mobile by computer ,but the problem how I connect mobile with computer



Does it look like client and cerver (client = mobile / cerver = computer)? so,, I will use client , server Java code



Thanks
java class to calculate the distance between two points.
Write a program which keeps track of scores for three test for a class of unknown number of students. Your program can assume that when receiving information scores for all 3 tests will be received at the same time. Your program should be able to have a user enter test scores, load test scores from a file, save them to a file, display test scores, provide the average score for a particular test and an average score across the 3 tests for a particular student. Your program must also utilize a menu which runs until told to quit. To accomplish this you will need 3 arrays where each array represents scores for one test and the index locations for the arrays will correspond with one student. For example, to refer to the test score for the 3rd test for student 7 you would call test3[7]. You can assume in your program that a user will not enter scores for more than 100 students.
Create a method called avgValue, which takes an array of doubles as an input parameter and returns the average value of the entries in the array.

Example:

data1:{1.1,2.5,3.0}
==> 2.2
LATEST TUTORIALS
APPROVED BY CLIENTS