Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

help me

help

  • Please log in to reply
16 replies to this topic

#13 student9

student9

    CC Newcomer

  • Member
  • PipPip
  • 15 posts

Posted 12 April 2015 - 07:39 AM

import.java.Scanner;
public class program1{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
s.o.p("enter the pris of abaisc");
double a= input.nextDouble();
s.o.p
("enter the pris of alawas");

double b= input.nextDouble();

s.o.p("enter the pris of house rent");


double c= input.nextDouble();


s.o.p("the total salary"+total(a,b,c);
}
public static double total(double d, double e, double f){

(for int i=1;i>=5;i++)
total=d+e+f;
retern total;
}
}
the error in the last stetment
↓↓↓↓↓↓

total= d+e+f;

i rewrite it
double total= d+e+f;
but stile error
  • 0

#14 student9

student9

    CC Newcomer

  • Member
  • PipPip
  • 15 posts

Posted 12 April 2015 - 07:59 AM

import.java.Scanner;
public class program1{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
s.o.p("enter the pris of abaisc");
double a= input.nextDouble();
s.o.p
("enter the pris of alawas");

double b= input.nextDouble();

s.o.p("enter the pris of house rent");


double c= input.nextDouble();


s.o.p("the total salary"+total(a,b,c);
}
public static double total(double d, double e, double f){

(for int i=1;i>=5;i++)
total=d+e+f;
retern total;
}
}
import.java.Scanner;
public class program1{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
s.o.p("enter the pris of abaisc");
double a= input.nextDouble();
s.o.p
("enter the pris of alawas");

double b= input.nextDouble();

s.o.p("enter the pris of house rent");


double c= input.nextDouble();


s.o.p("the total salary"+total(a,b,c);
}
public static double total(double d, double e, double f){

(for int i=1;i>=5;i++)
total=d+e+f;
retern total;
}
}
import.java.Scanner;
public class program1{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
s.o.p("enter the pris of abaisc");
double a= input.nextDouble();
s.o.p
("enter the pris of alawas");

double b= input.nextDouble();

s.o.p("enter the pris of house rent");


double c= input.nextDouble();


s.o.p("the total salary"+total(a,b,c);
}
public static double total(double d, double e, double f){

(for int i=1;i>=5;i++)
total=d+e+f;
retern total;
}
}
  • 0

#15 student9

student9

    CC Newcomer

  • Member
  • PipPip
  • 15 posts

Posted 12 April 2015 - 08:27 AM

import.java.Scanner;
public class program1{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
s.o.p("enter the pris of abaisc");
double a= input.nextDouble();
s.o.p
("enter the pris of alawas");

double b= input.nextDouble();

s.o.p("enter the pris of house rent");


double c= input.nextDouble();


s.o.p("the total salary"+total(a,b,c);
}
public static double total(double d, double e, double f){

(for int i=1;i>=5;i++)
total=d+e+f;
retern total;
}
}
  • 0

#16 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 13 April 2015 - 04:23 AM

please create a new post, with the code you already have, and what's going wrong with. Of course, include the error messages in the post.

This right here. You did one of the four things asked, student9


  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#17 lespauled

lespauled

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1360 posts
  • Programming Language:C, C++, C#, JavaScript, PL/SQL, Delphi/Object Pascal, Visual Basic .NET, Pascal, Transact-SQL, Bash

Posted 13 April 2015 - 06:04 AM

Did you misspell your post so it read, post your code here 4 times?  :rules:


  • 0
My Blog: http://forum.codecal...699-blog-77241/
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download