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

Create a program what will determine the prime numbers with in the input number list. if there is no prime number found, it displays value not found.

sample output:

enter number of elements: 5

enter value: 20
enter value: 34
enter value: 13
enter value: 3
enter value: 12

the prime numbers are: 13, 3
Create a canal lock . Create two ascending ships, and two descending ships as separate threads and then start them
I need to simplify the letter count and add scaling to the word bar char a i have the array set to 12 but it needs to read a file and then produce the amount of frequency and length in that particular file
import java.io.*;
import java.util.*;

class WordCount
{
public static void main(String[] args) throws IOException
{
FileReader file = new FileReader("new.txt");
BufferedReader MyFile = new BufferedReader(file);

StringTokenizer TokenizeMe= new StringTokenizer("");
int NumberOfTokens = 0;
int NumberOfWords = 0;
char barchart = '#';
char[] letters = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J','K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};


int frequency [] = new int [12];
// frequency [] stores number of words of length
int a;
String line="";

while((line=MyFile.readLine())!=null)
{
System.out.println("Processing line="+
Write an automated program in Java that will enable an organization to run a car park. The Program should allow issuing of receipts in an ordered manner,receipts should not be reused, the car owners should identify themselves and their vehicles according to the make.
Please enter three integer values:
12 15 3
The sum of these numbers is:30

this is how my output suppose to look like, am using Jcreator (JAVA), the values must be added using a loop.Values come from user as well
Create a method called findElementIndex, which takes an integer and an integer array as input parameters, and returns the smallest index where that value appears. If the value is not in the array, the method should return -1.

Example:
value: 3 theArray:{10, 3, 6, 3, 8, 10} ==> 1
value:10 theArray:{11, 3, 6, 7, 9, 60} ==> -1
Create a method called countOdds which takes an integer array as a parameter, and returns the number of odd entries in the array.


Examples:
theArray:{10, 3, 6, 3, 8, 10} ==> 2
theArray:{11, 3, 6, 7, 9, 60} ==> 4
I can only use joption pane loops not even arrays and none of the complex code since this is a beginners class and I am lost trying to find the code.




Description: You are a salesperson for Computers-R-Us. Customers can buy many different computer models from you. This week there is a sale on 5 different models. When a customer signs onto the company website a window will pop up asking them if they would like to take advantage of the sale. Window would look something like this:




If the answer is yes, the system then pops up a window with each of the 5 models that are for sale … one window at a time. Each of these windows will show the model’s name and its price and ask the customer how many they would like to buy? The answer could be from 0 to a lot. Window would look something like this:



After all the models have been shown to the user, a summary window is shown that shows one line for each model the user decided to buy, the quantity of that model and the total price for that model. One add
I was wondering if any can help me create a simple process coordinator simulator in java or c or c++ – A process coordinator is the part of the operating system responsible for managing processes in their transitions between the ready, running and blocked states.
How would i got about to start it, tables i can include anything i would be grateful

Thank you
Why am I having an infinite loop in a swith statement?
note: it contains if and for loops inside
LATEST TUTORIALS
APPROVED BY CLIENTS