|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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; } } |
|
#2
|
||||
|
||||
|
Please surround your text with [ CODE ] tags
colton22 |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Help with Java program |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|