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

Write a java program using two-dimensional arrays that determines the ODD numbers among the 12 input values typed from the keyboard and prints the list of these ODD numbers.

N a country of zombies each city has a certain percentage of zombies. Cities are designated as 1....


n a country of zombies each city has a certain percentage of zombies. Cities are designated as



1. A city[i] is magical if city[i] and city[i+1] have no common divisor other than 1.



2. A city is good if the percentage of zombies in the city[i] is more than percentage of zombies in city[i+1]



Find a city that is perfect, where perfect means both good and magical,



if there are more than one perfect cities, output the left-most city index. Also, the minimum number of cities in a country is 2 and there will be at least one perfect city



Input Specification:



input1: An array representing the percentage of zombies in each city



input2: Number of cities in the country



Output Specification:



Return the favourable city index "i



2 dimentional arrays that determines the odd number among 12 inputs



Write a program to print the following,


Input

The first line contains a string representing a scrambled word.

The second line contains some space-separated strings representing words guessed by the player.


Output

The output should be a single integer of the final score.


Explanation

scramble word = "tacren"

guessed words = ["trance", "recant"]


Since "trance" and "recant" both have length 6 then you score 54 pts each.

So the output is 108.


Sample Input1

tacren

trance recant

Sample Output1

108


Sample Input2

rceast

cat create sat

Sample Output2

2


Write a program to print the following, Given a word W and pattern P, you need to check whether the pattern matches the given word.The word will only contain letters(can be Uppercase and Lowercase). The pattern can contain letters, ? and *.

? : Can be matched with any single letter.
* : Can be matched with any sequence of letters (including an empty sequence).


If the pattern matches with the given word, print True else False.


Sample Input1

3

Hello *l?

Hell He?ll

Hell ?*

Sample Output1

True

False

True


Sample Input2

3

Hello Hell*

Hell He*ll

Hell hell*

Sample Output2

True

True

False


Create a Java program in jdoodle that will determine if the score is Passed/Failed. (10 is the passing score out of 20)

  • Will not accept special characters.
  • will not accept blank score.
  • will not accept if it's greater than 20.
  • will not accept if it's lesser than 1.

Instructions:



An array containing 10 predefined double values are already provided for you in the code editor. Print each of the element out in separate lines, starting from the last array element down to the first.


Each outputted value must also only show up to two decimal places.



Output



Multiple lines containing a float number.



5.10


5.50


4.00


4.02


3.00


3.66


2.50


2.20


1.21

a) Write a method GetOneStudent that asks a student for both of his/her WRAV101 and

WRSC111 marks (each as a real number). The method must return both of these marks. The

method must ensure that each of the marks is in the range 0 to 100.

b) Write a method CanContinue that takes as input two marks, one for WRAV101 and one for

WRSC111. Each of these marks is in the range 0 to 100. The method must return the value

true if both of these marks are at least 50, otherwise the method must return the value false.

c) Write a method DisplayDecision that takes as input two marks, one for WRAV101 and one

for WRSC111. Each of these marks is in the range 0 to 100. If the student can continue with

the second semester modules (use CanContinue above), an appropriate message and the

average mark for the two modules is displayed, otherwise the student is informed that he may


Jack `N Poy


The winner is selected depending on the following rules:

  • Rock beats Scissors
  • Scissors beats Paper
  • Paper beats Rock
  • If both players chose the same option, then it's a tie

Instructions:

  1. In the code editor, you are provided with an enum called option which contains three possible named values:
  2. ROCK - 'r'
  3. PAPER - 'p'
  4. SCISSORS - 's'
  5. Your task is to ask two users for there chosen options. And then based on their options, determine the winner.

Input


1. Option selected by Player 1

2. Option selected by Player 2

Output

If Player 1 wins, print the message "Player 1 wins!"

If Player 2 wins, print the message "Player 2 wins!"

If it's a tie, print the message "It's a tie!"

Player·1:·r
Player·2:·p
Player·2·wins!




Write a two class application that has as a data member an array that can store state



area codes. The class should have a member method that enables users to test an



area code to determine if the number is one of the area codes in the state exchange.



The member method should use one of the predefined methods of the Array



class and return true if the argument to the method is one of the state codes.



Override the ToString( ) method to return the full list of area codes with each



surrounded by parentheses. To test the class, store a list of state codes in a onedimensional array. Send that array as an argument to the class. Your application



should work with both an ordered list of area codes or an unordered list

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS