Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Java Project in IntelliJ that reads in data from three text files, Names, Sales, and CommisionRates, and loads the data into three
Write a Java Project in IntelliJ that reads in data from three text files, Names, Sales, and CommisionRates, and loads the data into three parallel arrays. Use the data in Sales and Commission Rate to populate a fourth Parallel array that is populated with the pay amount for each sales person. For example, if Sally's sales is $1500 and her commission rate is 30% then her pay is 450. Your program should print out the following: Who got paid the most commission Who made the most profit for the company A list of all sales people, their pay and their associated profit Requirements: } Use methods listed below (you can add if you see fit) Do not use Array Class methods (end of Chapter 7) Use appropriate looping to read and populate files into arrays Use appropriate looping in your search methods Remember to close file handlers Write your program so that it works the same with 3, or 300 sales people (only needing to change the array size at the beginning of the program... and the data files of course). Name your project yourlastnameSales Profit Project, and your class yourlastnameSales Profit Zip your project as directed and submit to Moodle. No late work accepted. Your program should include the following imports and methods: import java.io.File; import java.io.IOException; import java.util.Scanner; public class Sales Payment { public static void main(String [] args) throws IOException {...} public static double getPay (double s, double c) {...} public static int getMostPaid (double [] pay) {...} public static int getMost Profit (double [] pay, double [] sales) {...} public static void display Results (String [] name, double [] pay, double sales [], double [] comm) {...} You have creative leeway in the method signatures (names and parameter lists), as well as you can add any that you'd like. You must have methods that handle at least the functionality above (getPay, getMost Paid, get Most Profit and displayResults).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Below is an example implementation of the SalesPayment class according to the provided specifications This example assumes that the data in the text f...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started