User Profile
Collapse
-
the input is to determine the type of customer using the value btw 0-9999 and prompt user for the present and previous reading. the output is to print something that looks like a bill including header,customer type,presenet and previous reading,number cubic used and amount due..... -
how can i improve this program....thank you
the program is supposed to calculate home or commercial gas usage and then print the type of customer,presen t reading,previou s reading,cubic used and cost for the month..the user inputs values btw 0-9999 and to determine number of cubic used subtract the previous from present.if present is less then previous subtract previous reading form 9999
add the current reading to that difference ot get cubic used
my trouble is the calculation... -
how do you read...
this loop to get this answer...
thank you... -
Help requested for program to "calculate coin change"
my program is suppose to show my due change and i got it working but my change and coins are wrong how can i improve it thank you..(its supposed to be in java)... -
help with java programming..
i have to write a program that will display the purchase,tender ed,change,dolla rs,Q,D,N,P
the purchase & tendered has to be double and the number of coins have to be an int when i run the prgm it only asks me to enter purchase and tendered amount and thats it. it does not ask anything else it like skips everything else..anybody has an advice on how i can improve it pleaseee and thank u..
[CODE=Java]import java.util.Scann er;...Last edited by BigDaddyLH; Jan 31 '08, 03:37 PM. Reason: quote tags were mistakenly used instead of code tags. -
hi, am new to java and not sure how to improve this program.....
the program has to calculate the change due after a purchase, the program runs but my coins are in decimal point and it supposed to like single point..can someone help me with this i am not sure how what to do next...thanks alot
[CODE=java]import java.util.Scann er;
public class Program1
{
public static void main(String [] args)
{
double purchase,change ,quarters,dimes ,nickels,pennie s;
Scanner... -
Java beginner problem: arrays and ints
how do i write a java program tht will store seven integer values in an array of type integer......pl ease helppppp... this is what i got but not sure about it...thnkss...a nd it has to include reverse order.
import java.io.Buffere dReader;
import java.io.IOExcep tion;
import java.io.InputSt reamReader;
public class SevenIntegers
{
public static void main(String args[])
{
... -
java programming
hi, am stuck on writting a java program that will output three integers in descending order(highest to lowest)...pleas e helppp...thks.. this is what i got and i think tht its so wrong..
public class HighToLow
{
public static void main(int a, int b, int c)
{
int max = a;
int med = b;
int low = c;
int temp;
if(a < b)
{
temp = a;
... -
monkey1001 replied to hi, i have to write a program that calculates and displays numbers btw 1 and 100 inclin Javathe "n" stands for user entered value and the "+" represntd "and"...Leave a comment:
-
monkey1001 started a topic hi, i have to write a program that calculates and displays numbers btw 1 and 100 inclin Javahi, i have to write a program that calculates and displays numbers btw 1 and 100 incl
this is what i got and am stuck...please helpp..thanks
[CODE=java]import java.util.Rando m; //Needed for Scanner class
import java.util.*;
/**
This program demonstrates value between 1 and 100 inclusive
*/
public class Value
{
public static int getValidValue()
{
Scanner keyboard = new Scanner(System. in);
int...
No activity results to display
Show More
Leave a comment: