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

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.
Can you make a code and design a wireless router on java language... Basically its a project and after design and develop you have to write over all report...
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
Implement the BST as a threaded binary tree. Insert the following elements into the tree : T. B. E. A. H. F. D. R. I. O. L. Print the elements in the tree in the (L-R) and (R-L) In-order traversal scheme .
An array A contains n1 unique integers in the range [0,n1] : that is, there is one number from this range that is not in A . Design an O(n) time algorithm for finding that number. You are allowed to use only O(1) additional space besides the array A itself . You may give your algorithm in pseudo-code .
Hi there

im trying to check if a directory contains a spesific file extention. example if the directory ( listOfFiles) contains a pdf file.

The problem im having is the checking part. Both my if and else statement execute when the directory contains the file.

If someone can help me with that peace of code please .
LATEST TUTORIALS
APPROVED BY CLIENTS