Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

5) Write java code to read salesperson nome, ID and total sales and two methods. Calculate and display the commission of the salesperson as per

image text in transcribed
5) Write java code to read salesperson nome, ID and total sales and two methods. Calculate and display the commission of the salesperson as per following conditions: 20% if the total sale value is greater than or equal to $25000. 10% if the total sale value is between $25000 and $10000. 5% If the total sale value is less than or equal to $10000 Create class that hosts the main method and create one object. The created object should be used to call all methods and display appropriate messages. (15 Marks) Sample Input/Output C\Program Files (x86)Xinox Software CreatorV3LEXGE2001.exe Enter Name of Salesperson Khalid Enter ID of Salesperson Name :: 8559 Enter Total Sales #9658 Commission Amount of Salesperson 482.5 Press any key to continue... b) Explain the concept and significance of user-defined methods in details. The explanation should also cover the concepts of parameter passing and return types. Give a suitable examples with explanation (30 Marks BI DELL F10 Der F11 F12 PrtScr insert F9 FB F5 F6 F7 3 2 & Bache

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions