Course Hero Logo

SalesDocumentation.docx - 1. Introduction: Java program...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 5 out of 5 pages.

1.Introduction:Java program which consumes Salesperson number, product number and sales amountfrom user and then displays the details along with the totals in tabular form.2.Running instructions for Executing Java code:Open eclipse, create a new java project Sales. Create a java class with name “Sales2”.After saving the java file, click on Run icon (at top), then enter the salesperson number,product number and sales amount in console. Make sure salesperson ranges between 1 to4, Product number ranges between 1 to 5 and the sales amount is a positive non-zeronumber.
Output:
3.Steps in developing the code:1.Created a java file named as “Sales2”.2.Created main method as the actual program starts here.3.Import the scanner library to pass the user specified values from the command promptarguments, this will assign the values to the variables at the time of execution4.Create a 2-dimensional array of length 5 and 4 for storing sales details.

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 5 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture