I Cannot Initialize the Values I Should Get Value Depending on the value of SMALL a and based on the Logic (((30*a*14) / 100)+(30*a));
Type: Posts; User: dinakar
I Cannot Initialize the Values I Should Get Value Depending on the value of SMALL a and based on the Logic (((30*a*14) / 100)+(30*a));
already i Tried total = A1+A2+A3+A4; but its not working I'm Getting value of Total==0
Please Advice me any other Logic
Let us Suppose I get Values for A=10= A2=30 A3=40=A4=50 and I wanna get Output as Total = 10+30+40+50==130
Please Suggest me Code for this to happen
In this Logic a=No Of Quantity
public...
Dude I Cannot able to understand Y u r not getting me No I'm Not Asking How to add buttons to Window
Iam Asking How to add that Button Values for example my first button value is 30 and 2nd button...
public void actionPerformed(ActionEvent ae)
{
float A=0;
int a = Integer.parseInt(tf1.getText());
if(ae.getSource()==b2)
{
A=(((30*a*14) / 100)+(30*a));
Hmm due i donno nothing about Highlighting the code and formatting I'm New in this field
I Just want to know logic to add A1,A2,A3,A4.
Dude as I Above Shown my code was for a simple hotel management
I Have 4 diff Items and different prices and atlast I Want to add the Price of that all items.
import java.applet.*;
import...
public void actionPerformed(ActionEvent ae)
{
float A=0;
int a = Integer.parseInt(tf1.getText());
if(ae.getSource()==b2)
{
A=(((30*a*14) / 100)+(30*a));