Replace (????) with relevant code for the program to function. Details of the code have been given below. (Java has been used) a) This program should display: 16 5 2 6 5 8 */ package finalexamtakehome4; /** * * @author sweetkim */ public class Finalexamtakehome4 { // public static void show(int x, int y) { if (x = y) { x = x + 11; } else if (x > 2 * y) { x = 0; } if (x == 0 y > x) { x = x + 2; y = y + 2; } System.out.println(x + " " + y); } // public static void main(String[] args) { showYval(????); showYval(????); showYval(????); } }
3) Replace (????) with relevant code for the program to function. Details of the code have been given below. (Java has been used)
a) This program should display:
16 5
2 6
5 8
*/
package finalexamtakehome4;
/**
*
* @author sweetkim
*/
public class Finalexamtakehome4 {
//
public static void show(int x, int y) {
if (x = y) {
x = x + 11;
} else if (x > 2 * y) {
x = 0;
}
if (x == 0 y > x) {
x = x + 2;
y = y + 2;
}
System.out.println(x + " " + y);
}
//
public static void main(String[] args) {
showYval(????);
showYval(????);
showYval(????);
}
}
/*
b) This program should display:
2 -2 3
16 13 11 10 0
-10
*/
package finalexamtakehome5;
public class Finalexamtakehome5 {
//
public static void the(int x, int y) {
while (x > 0 | y > 0) {
x = x - y;
y--;
System.out.print(x + " ");
}
System.out.println(y);
}
//
public static void main(String[] args) {
theWhile(????);
theWhile(20, 4);
theWhile(40, -10, 7, 9);
}
}
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)