Can you tell me what "nbr" stand for?
Type: Posts; User: namenamename
Can you tell me what "nbr" stand for?
You misunderstand me. Look at this original set of numbers:
4 5 2 0
7 2 1 4
9 4 2 0
7 8 9 3
Transpose 1:
2 2 4 8
9 6 8 8
0 2 6 9
Output:
Enter the number of the matrix:
4
Original:
2 9 0 4
2 6 2 5
4 8 6 3
8 8 9 3
Transpose 1:
2 2 4 8
What the program is supposed to do:
Write a program which builds two dimensional array ( n x n matrix ) with the dimentions entered by the user, populates the array with random numbers from 0 to 9,...
import java.util.*;
import java.io.*;
class arraysort{
public static void main(String args[]) throws Exception{
int index,number=0;
Scanner input = new Scanner(new...
Hi guys, I'm trying to sort a string array that has 100 words using the selection sort algorithm. Here's my code so far:
import java.util.*;
class arraysort{
public static void main(String...
import java.util.Scanner;
class array2{
public static void main(String args[]){
Scanner input = new Scanner(System.in);
int values;
int num[] = new int[10];...
Here's my code:
import java.util.*;
class array1{
public static void main(String args[]){
Random number = new Random();
int num[] = new int[100];
no, and btw I'm new to java programming.
So the program begins with two single digit numbers. The next number is obtained by adding the first two numbers together and saving only the ones digit. This process is repeated until the necklace...
import java.util.*;
import java.io.*;
class Cubesum {
public static void main(String args[]){
int input=0;
int num1,num2,num3;
//read the number
System.out.print("Enter a positive...
output is this:
http://i.imgur.com/Rd4FYZh.png
class upsidedown {
public static void main(String args[]){
int x,y;
for (y= 1; y <= 5; y++)
{
for (x= 0; x < 5-y; x++)
System.out.print(' ');
...
class series {
public static void main(String args[]){
int numerator, denominator;
numerator = 1;
denominator = 1;
System.out.print(numerator);
for(int...
Now could you put that in English? I'm only a beginner in java.
Ok now I have to add all those numbers together, for e.g., the sum of 1 - 1/2 + 1/3 - 1/4 + 1/5 = 0.783
class series {
public static void main(String args[]){
int numerator, denominator;
numerator = 1;
denominator = 1;
System.out.print(numerator);
for(int...
So my code is:
class series {
public static void main(String args[]){
int numerator, denominator;
numerator = 1;
denominator = 1;
So I have the main part of the code which is letting the user guess a randomly generated number by the computer, but I now need to display how many guesses it took the user to guess the number.
...
so how do you fix it?
Create a Randoms application that generates 16 random numbers between 1 and 100, inclusive and displays them in rows of 4.
So here's what I have so far:
import java.util.Random;
class...
So this is my code so far:
import java.util.Random;
import java.util.Scanner;
class rps2{
public static void main(String args[]){
Random number = new Random();
Scanner input = new...
it's spelled "ass" not "arse". Get your spelling correct.
I just want a SIMPLE input validation loop