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

Input

aaaammmmyyyy  

aamy am amy ammmy


output

3

Explanation: Line 1(Red font) - Represents stretched word NextLine(Black font) -List of Query words Explanation: The Stretched string contains a’s - 4, m’s - 4, y’s - 4 count of all alphabets in sequence > 3 So the query words should contain all the alphabets with count of each one is at least 1 aamy amy ammmy - ​are the words which satisfies the given criteria​. am - ‘y’ ​is missing


Hence output - 3


How do i convert a decimal into a fraction using a fraction reader and file with decimals


Write a java program using Javafx to do the following:

1)Draw a circle shape and move forward when user presses the button

2)Draw a rectangle shape and size becomes bigger if user presses on button


Write program that applies concept of varags method to create function, display() which takes 3 parameters: (1) one parameter named object of String type, (2) one array called atoms, of String type, and (3)variable-length list of parameters named n. Import Scanner class to source file. In the main() function, use tools provided by the Scanner class to take three string literals as inputs one by one. • The first input is the name of a subject (ex: glucose).• The 2nd input is list of atomic symbols (ex: C Cl Na O) • The 3rd input is list of integers (ex: 18 12 5 2).Then, call display() function and pass the 3 inputs as values of parameters of display() function. Upon receiving the values, the display() function must be able to split string literals properly into arrays of String type, except the one passed to object parameter.

Ex

Enter the name of a subject: Sodium carbonate

Enter a list of atomic symbols: Na C O

Enter a list of integers: 2 1 3

The empirical formula of Sodium carbonate is Na2CO3




Create one array “sign” of char type whose elements are 'H', 'D', 'S', and 'C'. Create one variable, n, of int type whose initial value is -1 and other variable named, i, of int type whose initial value is also -1. Create function named, pickCard(), of void type that randomly generate two integers. Limit first random number with range of 0 to 3,then assign randomly generated number to ,i, variable. Limit second random number with range from 1 to 13, then assign the randomly generated number to “n” variable. Then, make sure “pickCard()” function can display one of, sign, array's values according to value assigned to, n, variable. Have pickCard() function display the value assigned to the “i” variable and meet all conditions specified in the following table:


Value of i = 1, Display = A

Value of i = 11, Display = J

Value of i = 12, Display = Q

Value of i = 13, Display = K

Finally, use a while loop to call the “pickCard()” 5 times.



Write program that applies concept of varags method to create function, display() which takes 3 parameters: (1) one parameter named object of String type, (2) one array called atoms, of String type, and (3)variable-length list of parameters named n. Import Scanner class to source file. In the main() function, use tools provided by the Scanner class to take three string literals as inputs one by one. • The first input is the name of a subject (ex: “glucose”). • The 2nd input is list of atomic symbols (ex: C Cl Na O) • The 3rd input is list of integers (ex: 18 12 5 2). Then, call display() function and pass the 3 inputs as values of parameters of display() function. Upon receiving the values, the display() function must be able to split string literals properly into arrays of String type, except the one passed to object parameter. Ex:

Enter the name of a subject: glucose

Enter list of atomic symbols: C H O

Enter list of integers: 6 12 6

The molecular formula of glucose is C6H12O6



Create one array “sign” of char type whose elements are 'H', 'D', 'S', and 'C'. Create one variable “n” of int type whose initial value is -1 and other variable named “i” of int type whose initial value is also -1. Create function named “pickCard()” of void type that randomly generate two integers. Limit first random number with range of 0 to 3,then assign randomly generated number to “i” variable. Limit second random number with range from 1 to 13, then assign the randomly generated number to “n” variable. Then, make sure “pickCard()” function can display one of “sign” array's values according to value assigned to “i” variable. Have “pickCard()” function display the value assigned to the “i” variable and meet all conditions specified in the following table


Value of i | Display

1 | A

11 | J

12 | Q

13 | K

Finally, use a while loop to call the “pickCard()” 5 times.


Create a sub class of Car class and name it as Truck. The Truck class has the following fields and methods.

◦intweight;


In this assignment you have to write a program in JAVA to create the Standard Deviation (SD) of the sales for the past 10 years. The standard deviation gives the sales manager a full idea of how the market changed in the past 10 years. 1. Design an Input dialog box window which accepts last year’s sale from a drop down menu: Year 2017 2016 2015 For example, if last year’s sale selected is 2017, the SD will be calculated from 2008 to 2017.


 you have to write a program in JAVA to create the Standard Deviation (SD) of the sales for the past 10 years. The standard deviation gives the sales manager a full idea of how the market changed in the past 10 years. 1. Design an Input dialog box window which accepts last year’s sale from a drop down menu: Year 2017 2016 2015 For example, if last year’s sale selected is 2017, the SD will be calculated from 2008 to


LATEST TUTORIALS
APPROVED BY CLIENTS