[solved] – Question 76935

Hello, you must be willing to work on a small javafx project that is 80% done. Further details can be submitted along with .txt, pictures, and javacode needed for the completion of the project.

Expert Answer


[solved] – Question 76946

Create a java program that will count all words in a sentence. The program should have a
minimum of two classes.
1.1 The first class should be named class1, this class will have the following:
 The main method (starting point) (5)
 The object of class2 (5)
 Should also call the get method count_words(String str) (5)
1.2 The second class should be named class2, this class should have the following:
 A constructor (5)
 A get method named count_words(String str) (10)
1.3 Constract a flowchart for class1 and class2 both combined. (10)

Expert Answer


[solved] – Question 7695

1) write a method called larger that accepts two floating point parameters (of type double) and returns true if the first parameter is greater than the second, and false otherwise.

2)write a method called sumRange that accepts two integer parameters representing a range. Issue an error message and return zero if the second parameter is less than the first. Otherwise, the method should return the sum of the integers in the range, inclusive.

Expert Answer


[solved] – Question 76953

Write a C++ program that calculates the exact and estimated factorials of the numbers stored in an array X_Values[ ] of size 10. X_VALUES[] is either read from the keyboard, generated randomly or read from an input file. Then writes the output on screen and also to an output file.

Expert Answer


[solved] – Question 76959

A list of integers is divided into two smaller lists of equal size. Two separate threads (which we will term sorting threads) sort each sublist using a sorting algorithm. The two sublists are then merged by a third thread—a merging thread—which merges the two sublists into a single sorted list. Because global data are shared across all threads, perhaps the easiest way to set up the data is to create a global array. Each sorting thread will work on one half of this array. A second global array of the same size as the unsorted integer array will also be established. The merging thread will then merge the two sublists into this second array

Expert Answer


[solved] – Question 76960

A list of integers is divided into two smaller lists of equal size. Two separate threads (which we will term sorting threads) sort each sublist using a sorting algorithm. The two sublists are then merged by a third thread—a merging thread—which merges the two sublists into a single sorted list. Because global data are shared across all threads, perhaps the easiest way to set up the data is to create a global array. Each sorting thread will work on one half of this array. A second global array of the same size as the unsorted integer array will also be established. The merging thread will then merge the two sublists into this second array
7 ,12, 19, 3, 18, 4, 2, 6, 15, 8

Expert Answer


[solved] – Question 7697

Read a positive integer n. From 1 to n monitor the occurrence of 1. Your program should contain the method Monitor1. Include an option to repeat the process.

Sample Output
Enter the value of n: 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Total Occurrence of 1: 8

Try again Y/N?

Expert Answer


[solved] – Question 76972

Q #1. An optical displacement sensor
has the following relationship
between the displacement (x) and
voltage (V):
Where λ has a constant value of
600mm. Using Matlab, plot the graph
of output voltage for the displacement values from 0-150mm.
Also draw a line to linearly
approximate the curve.
a) What are the input range and
span? b) What are the output range
and span?
c) Describe what is the maximum
nonlinearity value.
d) By observation, at what
displacement (x) is the sensitivity
maximum?

Expert Answer


[solved] – Question 77001

Write a function called hms_to_sec() that takes three int values – for hours, minutes, and seconds as arguments, and return the equivalents time in seconds (type long). Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes and seconds from the user (format 12:59:59), calling the function, and displaying the value of the seconds it returns.

Expert Answer


[solved] – Question 77074

Problem 5B (50 points + 5 bonus)
Implement a program in C that checks the personnel file for two types of errors: (1) crew members
other than the captain who have no supervisor, and (2) crew members other than the captain who
have multiple supervisors. Note that your program does not need to check whether the captain
has a supervisor (or multiple supervisors); you may assume that the file is correct in that respect.
For instance, the file shown above has one error of each type: Person 100 has no supervisor, and
Person 300 has two supervisors. On the other hand, note that the duplicate record “200 100”
(lines 3 and 5) is not considered an error, since it shows the same supervisor for Person 200.
Input and output: Your program should input the name of the personnel file, and print (1) the
number of people other than the captain with no supervisor, and (2) the number of people with
multiple supervisors. The file name is a string, the length of which is between 1 and 60.

Expert Answer