Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
koka
Sometimes clients and servers exchange roles with clients becoming servers at times, what's an example where a?
sometimes clients and servers exchange roles with clients becoming servers at times, whats an example where a client always remains the client never becomes the server.
1 AnswerComputer Networking9 years agoJava issue, I want program to start over after first error and to not continue. This is my program.?
**** IN THE FIRST LINE, WHAT I NEED IS FOR WHEN THE USER ENTERS A NUMBER THAT IS NOT IN THE 10 - 20 RANGE FOR IT SHOW THE ERROR BUT!!! START OVER FOR THE TOP SO THE USER CAN RE-ENTER ANOTHER NUMBER. THE ISSUE THAT IM HAVING IS THAT THE PROGRAM CONTINUES ON WITH/AFTER THE FIRST ERROR. I SIMPLY JUST WANT IT TO START OVER******
import java.util.Scanner;
public class Project_3 {
public static void main(String[] args) {
//Varibles
int range, direction, i, attempts = 0;
boolean repeat = true, test;
//Code
Scanner scan = new Scanner(System.in);
//To run again if wanted
while (repeat == true) {
System.out.println("----------Counter------------");
System.out.println();
do {
//Capture input from user
System.out.println(" Enter the value for how many times to run the loop. Must be between 10 and 20:");
range = scan.nextInt();
if ((range >= 10 && range <= 20)) {
test = true;
} else if (range < 10 || range > 20) {
test = false;
System.out.println("Error, invaild entry!");
System.out.println();
}
System.out.print("In which direction do you wish to count?"
+ " Enter 1 to count up and -1 to count down: ");
direction = scan.nextInt();
//Test if user input is valid
if (direction == -1 || direction == 1) {
test = true;
} else {
test = false;
System.out.println("Error: Invalid Entry: ");
attempts = attempts + 1;
}
} while (test == false && attempts < 3); // if false try again
while (test == true) {
//For loop
if (direction == 1) {
range = 0 + range;
for (i = 0; i <= range; i++) {
System.out.println("The value of i is: " + i);
}
} else {
range = 0 - range;
for (i = 0; i >= range; i--) {
System.out.println("The value of i is: " + i);
}
}
test = false;
}
System.out.print("Repeat? (true/false)");
repeat = scan.nextBoolean();
attempts = 0;
}
}
}
**** IN THE FIRST LINE, WHAT I NEED IS FOR WHEN THE USER ENTERS A NUMBER THAT IS NOT IN THE 10 - 20 RANGE FOR IT SHOW THE ERROR BUT!!! START OVER FOR THE TOP SO THE USER CAN RE-ENTER ANOTHER NUMBER. THE ISSUE THAT IM HAVING IS THAT THE PROGRAM CONTINUES ON WITH/AFTER THE FIRST ERROR. I SIMPLY JUST WANT IT TO START OVER******
2 AnswersProgramming & Design9 years agoVerify the identity. csc x + cot x = sin x/1 - cos x?
1 AnswerMathematics10 years agoVerify the identity. csc^2x - cot^2x/sec^2x = cos^2x?
1 AnswerMathematics10 years agoVerify the identity. tan^2x - cot^2x = sec^2x - csc^2x?
3 AnswersMathematics10 years agoJava issue, my answer is not coming out correct. The question is, Write a program that prompts the user to ent?
Java issue, my answer is not coming out correct. The question is, Write a program that prompts the user to enter an interger from 1 to 15 and displays a pyramid.
The pyramid should look like
_____1
____212
___32123
__4321234
_543212345
65432123456 (EXCLUDE THE UNDERSCORES) and so on, BUT I keep getting >>
1
212
32123
4321234
543212345
65432123456
I AM USING NETBEANS AND THIS IS WHAT I GOT. WHAT CAN BE CHANGED OR ADDED??
import java.util.Scanner;
public class Exercise04_17 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner input = new Scanner(System.in);
System.out.print("enter lines: ");
int k = input.nextInt();
for (int i=1; i<=k; i++){
for (int j=1; j<=i; j++){
System.out.print(" " +j);}
System.out.print("\n");
}
}
}
2 AnswersProgramming & Design1 decade agoWhen using Net-beans, how is a wind-chill temperature program be written?
Wind chill formula is -->> Wind chill temperature = 35.74 + 0.6215T - 35.75V^(0.16) + 0.4275TV^(0.16)
The program should prompt the user to enter a temperature between -58 degrees F and 41 degrees F, and the wind speed greater than or equal to 2 which will display the wind chill temp.
1 AnswerProgramming & Design1 decade agoWhat is the find function and what is the replace function in VBA (visual basic), not excel?
homework help
4 AnswersProgramming & Design1 decade agoAnyone out there a Microsoft Visual Studio genius?
homework help
1 AnswerProgramming & Design1 decade agowhats the difference between a IP address and a DNS address?
3 AnswersComputer Networking1 decade agoWhere can i download microsoft access 2003 for free, or even the trail?
access 2003
1 AnswerSoftware1 decade agoestablish the identity. 1/1 - cos x + 1/1 + cosx = 2csc^2 x?
2 AnswersMathematics1 decade agoestablish the identity. csc^2 x - 1 /csc^2 x = cos^2 x?
3 AnswersMathematics1 decade agoSolve using law of cosines of law of sines. A=50degrees B=30degrees c=9, what is a=?,b=?,C=?
CAPITAL LETTERS = degrees, lower case letter = sides
1 AnswerMathematics1 decade ago