Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE ANSWER ALL PARTS IN JAVA PLEASE ANSWER ALL PARTS IN JAVA PLEASE ANSWER ALL PARTS IN JAVA PART 1 PART 2 PART 3 PART
PLEASE ANSWER ALL PARTS IN JAVA
PLEASE ANSWER ALL PARTS IN JAVA
PLEASE ANSWER ALL PARTS IN JAVA
PART 1
PART 2
PART 3
PART 4
PLEASE ANSWER ALL PARTS IN JAVA
PLEASE ANSWER ALL PARTS IN JAVA
PLEASE ANSWER ALL PARTS IN JAVA
PLEASE ANSWER ALL PARTS IN JAVA
PLEASE ANSWER ALL PARTS IN JAVA
PLEASE ANSWER ALL PARTS IN JAVA
PLEASE ANSWER ALL PARTS IN JAVA
PLEASE ANSWER ALL PARTS IN JAVA
PLEASE ANSWER ALL PARTS IN JAVA
We have declared a static method called countVowels with a String parameter word. TASK: Fill in the body of countVowels such that it returns the number of vowels in word. HINT: Assume the vowels are A, E, I, O, and U (not Y). Lower-case is fine as well. Sample Input: Fast and Furious Sample Output: Write a program, test using stdinstdout Time limit: 8 seconds Memory limit: 256 MB 1 static int countVowels(String word) { 2 // YOUR CODE HERE 3 } We have declared a method called put Caption with one char parameter art, two int parameters row and col, and a String parameter caption. TASK: Fill in the body of the put Caption method such that it will overlay caption onto art such that the first character of caption is placed at art[row][col) and is surrounded by a frame of asterisks (+). HINT: The top-left corner of art is the point (0,0), which is art[@][@]. HINT: The first dimension of art is the vertical dimension. For example, art(0) is the first row of art. Gollum ASCII art originally created by Shanaka Dias Sample Input: Gollum 9 8 Sos. via Sample Output: .........********* coc. via Write a program, test using stdin+stdout Time limit: 8 seconds Memory limit: 256 MB 1 static void putCaption(char(lll art, int row, int col, String caption) { 2 // YOUR CODE HERE 3} We have declared a method called crop with one char[] parameter art and four int parameters left, rightx, topy, and bottonY. TASK: Fill in the body of the crop method such that it returns the result of cropping art in the rectangle bounded by the corners (leftx, topy).(leftx, bottomy). (rightx, topy), and (rightx, bottomY), inclusive, wrapped in a frame of asterisks HINT: The top-left corner of art is the point (0,0), which is art[0][@]. HINT: The first dimension of art is the vertical dimension. For example, art(0) is the first row of art. Gollum ASCII art originally created by Shanaka Dias Sample Input: 1e 19 1 5 Sample Output Write a program, test using stdin+stdout Time limit: 8 seconds Memory limit: 256 MB 1 static charllll crop(charill) art, int leftx, int rightx, int topy, int bottony) { 2 // YOUR CODE HERE TASK: Write a static method called reverse with one int[] parameter nuns. It should reverse the elements of nums. It should not return anything. it should modify nums in place. Sample Input: 1 2 3 4 5 6 Sample Output: 6 5 4 3 2 1 Write a program, test using stdin+stdout Time limit: 8 seconds Memory limit: 256 MB 1 // YOUR CODE HEREStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started