Write a Java Project in IntelliJ that reads in data from three text files, Names, Sales,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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). 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).
Expert Answer:
Answer rating: 100% (QA)
Below is an example implementation of the SalesPayment class according to the provided specifications This example assumes that the data in the text f... View the full answer
Related Book For
Accounting Principles
ISBN: 978-1118875056
12th edition
Authors: Jerry Weygandt, Paul Kimmel, Donald Kieso
Posted Date:
Students also viewed these programming questions
-
A scientist inoculates several mice, one at a time, with a disease germ until he finds 2 that have contracted the disease. If the probability of contracting the disease is 1/6, what is the...
-
Complete the http://try.github.com lesson and provide a full-size screen shot of your badge page at the end.
-
Every Thanksgiving, my wife and I debate about how we should prepare the turkey we will serve (and will then have left over). My wife likes preparing turkeys the conventional way roasted in the oven...
-
Prepare an Orientation Plan for the select position utilizing the theories discussed in the text. Discuss appropriate and effective orientation plans and your decision-making process for selecting a...
-
The weighted average cost-flow assumption is a common technique used to value inventory and determine cost of goods sold. It falls between LIFO and FIFO as to the differential effect on inventory and...
-
A random sample of 55 Canadian men aged 25 to 54 were asked to keep a daily log of the hours spent doing unpaid work around the home. The time was averaged over the week. The survey was conducted in...
-
Comparative income statements for Cramer Carpets, a carpet retailer, are given below: The president is concerned that net income is down in 2009 even though sales have increased during the year. The...
-
Guo Company has owners equity of $400,000 and net income of $66,000. It has a payout ratio of 20% and a return on assets of 15%. How much did Guo pay in cash dividends, and what were its average...
-
Consider the following $1,000 face value bond which makes semi-annual coupon payments, Bond Coupon rate Price Maturity Settlement Date HSBC 4.5% 109.52 December 1, 2030 January 15, 2019 What is the...
-
I See The Light Projected Income Statement For the Period Ending December 31, 20x1 $ 1,125,000.00 25,000 lamps @ $45.00 @ $30.00 Sales Cost of Goods Sold 750.000.00 Gross Profit $ 375.000.00 Selling...
-
Three charged marbles are glued to a nonconducting surface and are placed in the diagram as shown. The charges of each marble are 91 - 93 = -1.91 C. Marble q is a distance r = 3.00 cm to the left of...
-
A vocabulary test was given to students at an elementary school. The students ages ranged from 5 to 11 years old. It was found that the students with larger vocabularies tended to be taller than the...
-
A theater concession stand sells soft drink and popcorn combos that come in sizes small, medium, large, and jumbo. True or false: a. Size is a qualitative variable. b. Size is an ordinal variable. c....
-
The characteristics of individuals about which we collect information are called_____________. In Exercises 510, fill in each blank with the appropriate word or phrase.
-
People who are asked to participate in a study but refuse to do so are called _______________. In Exercises 35, fill in each blank with the appropriate word or phrase.
-
A large company wants to sample 200 employees to ask their opinions about providing a day car center for the employees children. They want to be sure to sample equal numbers of men and women....
-
Include a brief overview of the 1960 disease model by Jellinek and the models (disease model and family model) Compare and contrast the 1960 disease model by Jellinek and the model you selected (...
-
Don Griffin worked as an accountant at a local accounting firm for five years after graduating from university. Recently, he opened his own accounting practice, which he operates as a corporation....
-
N. Essex, C. Gilmore, and C. Heganbart have capital balances of $50,000, $40,000, and $30,000, respectively. Their income ratios are 5:3:2. Heganbart withdraws from the partnership under each of the...
-
Cigale Company prepares reversing entries. If the adjusting entry for interest payable is reversed, what type of an account balance, if any, will there be in Interest Payable and Interest Expense...
-
On April 1, Julie Spengel established Spengels Travel Agency. The following transactions were completed during the month. 1. Invested $15,000 cash to start the agency. 2. Paid $600 cash for April...
-
Question: Cruise.com operated a Web site selling cruise vacations. It sent unsolicited e-mail advertisements-dubbed "E-deals"-to prospective customers. Eleven of these "E-deals" went to...
-
Question: Jerry Falwell was a nationally known Baptist minister. You can read about him on falwell.com. You can read about his views on homosexuality at fallwell.com-a site critical of his views....
-
Question: Timothy Vemor bought used (but original) versions of AutoCAD software at garage and office sales. Each time he tried to sell them on eBay, AutoDesk (the company that produced the software)...
Study smarter with the SolutionInn App