Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 28th, 2006, 05:46 PM
moeski301 moeski301 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Location: Michigan
Posts: 2 moeski301 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 56 sec
Reputation Power: 0
Send a message via Yahoo to moeski301
Unhappy Help with Java program

Ok.. I'm trying a different format, but somewhat on the same lines. Can someone help me out with this..
Thanks,

import java.util.*;
public class project1

{
original_price = console.nextdouble();


public static void main ( String [] args)

{

//declares variables
double orginal_price;
double marked_up_pct;
double sales_tax_pct;

System.out.print ("Enter orginal price: ");
System.out.flush();
oringal price = console.nextInt();
System.out.println();

System.out.print("Marked up Percentage: ");
System.out.flush();
marked_up_pct = console.nextInt();
System.out.println();

Sytem.out.print("Enter Sales Tax Percentage: ");
System.out.flush();
sales_tax_pct = console.nextInt();
System.out.println();


System.out.println();
System.out.println ("Enter The original price of the item");

System.out.println();
System.out.println ("Marked up percentage of the item");

System.out.println();
System.out.println ("The selling price=$ + selling price");

System.out.println();
System.out.println ("The Final price");


marked_up_pct = orginal_price * marked_up_pct;
selling_price = orginal_price + marked_up_amt;
sales_amt = selling_price * sales_tax_pct;
Final_Price = selling_price + sales_amt;



}
}

Reply With Quote
  #2  
Old September 29th, 2006, 04:03 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 473 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 19 m 14 sec
Reputation Power: 3
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
Please surround your text with [ CODE ] tags

colton22

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Help with Java program


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT