#Markup Calculator Help please!

2 messages · Page 1 of 1 (latest)

void dragon
#

Hi I am trying to make a markup calculator but I am not sure how to divide my Price and Markup % to get the final price..

import javax.swing.JOptionPane;
        public class NameDisplay {
        public static void main(String[] args ) {
            //variables
            String ItemNumber; //user input item number
            String Description; //user input description
            String Price; //user input price
            String Markup; //user input markup
            String Final;// user input Fian
            
               
            //get the user's item number
            ItemNumber = JOptionPane.showInputDialog("Item Number?");

            //get the user's item description
            Description = JOptionPane.showInputDialog("Item " + ItemNumber + " Description?");

            //gets the users price
            Price = JOptionPane.showInputDialog("Current price of item " + 
            ItemNumber + "?");
            Integer.parseInt(Price);
                
            //gets the users markup percent
            Markup = JOptionPane.showInputDialog("Enter the percent markup %");
            Integer.parseInt(Markup);
                
                
            //shows the user the Item number, description, current and markup price
            JOptionPane.showMessageDialog(null,"Item Number : " + ItemNumber +"\n               Description: " + Description +"\n Price: "+ Price +
            "\n Markup : " + Markup +"\n Markup Price :");
                        
                
            System.exit(0);
                
                
            }
        }```
ancient vector
#

Someone might incidentally be able to help you but this is a Javascript server, not Java