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...
-
Rio National Corp. is a U.S.-based company and the largest competitor in its industry. Tables F-I present financial statements and related information for the company. Table J presents relevant...
-
Is the set of functions f 1 (x) = e x+2 , f 2 (x) = e x3 linearly dependent or linearly independent on (, )? Discuss.
-
The following table presents the numbers of employees, by age group, who were promoted, or not promoted, in a sample drawn from a certain industry during the past year. Can you conclude that the...
-
1. What are the options for Red Fish-Blue Fish as far as global intermediaries are concerned? What do you recommend? Why? 2. What other options does Red Fish-Blue Fish have to expand their Asian...
-
The Massachusetts Port Authority (Massport) contended that "peak-period pricing would not represent an effective demand management tool, since Logan's operations did not generally come near to...
-
The Laurenster Corporation is getting into the construction business. A list of activities and their optimistic, most likely, and pessimistic completion times are given in the following table for the...
-
Changes in HRD at Hansen Group The Hansen Group is one of the UK's largest construction groups. Traditionally, the company has been involved primarily in civil engineering but it has recently begun...
-
Cash account balance During the month, Bavarian Auto Co. received $489,650 in cash and paid out $413,250 in cash. a. Does this information indicate that Bavarian Auto Co. had net income of $76,400...
-
Two items are omitted from each of the following summaries of balance sheet and income statement data for two corporations for the year 2022, Cullumber Company and Ayayai Enterprises. Determine the...
-
Jackson, Inc. has prepared a year-end 2024 trial balance. Certain accounts in the trial balance do not reflect all activities that have occurred. 1. The Supplies account shows a balance of $2,540,...
-
Complete this question by entering your answers in the tabs below. Required A Required B Complete the schedule of cash payments for inventory purchases by filling in the missing amounts. Schedule of...
-
Consider a world that only consists of the three stocks shown in the following table: a. Calculate the total value of all shares outstanding currently. b. What fraction of the total value outstanding...
-
in "damaged goods" strategy refers to Trying to sell damaged goods to your customers Damaging in goods after iny have been paid for but before in shipping Incurring additional costs to make in...
-
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...
-
A medical researcher believed the number of ear infections in swimmers can be reduced if the swimmers use earplugs. A sample of 10 people was selected, and the number of infections for a four-month...
-
A study was done to detect hidden chemicals in various types of beers. Three beers were tested for glyphosate (a weed killer). The following amounts (in parts per billion) were found. The data are...
-
In a large department store, the owner wishes to see whether the number of shoplifting incidents per day will change if the number of uniformed security officers is doubled. A random sample of 7 days...
Study smarter with the SolutionInn App