Aslamo aly'kum
good evening all
I have Assignment which deadline after tomorrow
please help
I tried to solve it but I couldn't
the Assignment in attachment box
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Aslamo aly'kum
good evening all
I have Assignment which deadline after tomorrow
please help
I tried to solve it but I couldn't
the Assignment in attachment box
If you want help you need to ask some specific questions about your problem and post the code you are working with.
If you don't understand my answer, don't ignore it, ask a question.
public class Test
{
public static void main(String[] args)
{
// Manager
Manager m = new Manager("Ahmad", "Salim", "1001", 10000.0, 3500.0);
// Customer
double purchase = 1890.0;
double budget = 2000.0;
Customer c = new Customer("Ali", "Abdullah", "", budget, purchase);
c.setAddress("Alrawdah dist., Jeddah, Saudi Arabia");
// SalesPerson
SalesPerson sp = new SalesPerson("Saleh", "Ameer", "1002", 6000.0);
//-----------------------------
// print manager information
System.out.println("Manager Information:");
System.out.println("Name is " + m.getName());
System.out.println("Number is " + m.getEmployeeNumber());
System.out.println("Salary is " + m.getBasicSalary());
System.out.println("Allowance is " + m.getAllowance());
System.out.println("The total income is " + (m.getBasicSalary() + m.getAllowance()));
System.out.println("");
// print customer information
System.out.println("Customer Information");
System.out.println("Name is " + c.getName());
System.out.println("Address is " + c.getAddress());
System.out.println("Budget is " + c.getFullBudget());
System.out.println("Purchase is " + c.getPurchase());
System.out.println("The remaining budget " + c.getBudget());
System.out.println("");
// print sales person information
double commission = purchase * 0.05;
System.out.println("Sales Person Information");
System.out.println("Name is " + sp.getName());
System.out.println("Number is " + sp.getEmployeeNumber());
System.out.println("Salary is " + sp.getBasicSalary());
System.out.println("The commission is " + commission);
System.out.println("Total income is " + (sp.getBasicSalary() + commission));
}
}
I want to using Scanner class
Welcome to the Forum! Please read this topic to learn how to post your code correctly along with other useful info for newcomers.