I am trying to write a program for an assignment that uses a For loop to produce an output that looks like this:
* ********** ********** *
** ********* ********* **
*** ******** ******** ***
**** ******* ******* ****
***** ...
User Profile
Collapse
-
Here is code I started but I am getting errors. Can anybody help me get this problem corrected?
[/CODE]
import java.util.Scann er;
public class CreditCheck
{
Scanner input = new Scanner( System.in );
// define instance variable
int acctNo = 0;
double shopinitA = 0.0;// initial balance
double shopcharges = 0.0; // charges applied to user's acct
double shopcredits... -
-
For this program I started coding it using the For Loop but I am not sure how to show the results under the 4 headers. If somebody can help me I would appreciate it.The output on the screen is suppose to looks like this:
N 10*N 100*N 1000*N
1 10 100 1000
2 20 200 ...Leave a comment:
-
Java Exercise
Hi, I have an exercise I need to do for Java. I am not sure how to start this program. Can somebody help me get started on this problem? Thanks in advance for your help. The problem is as follows:
Develop a Java application that will determine whether any of several department-store customers has exceeded the credit limit on a charge account. For each customer, the following facts are available:
a) account number
... -
Help on looping in java
Let me first start off by saying I am a beginner at Java. I need help on an assignment to produce a loop which I believe for this particular assignment would be the for loop. The output needs to look like this
N 10*N 100*N 1000*N
1 10 100 1000
2 20 200 2000
3 30 300 3000
...
No activity results to display
Show More
Leave a comment: