A salesman works on commission. When asked how much he earns on a sale, he explains...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A salesman works on commission. When asked how much he earns on a sale, he explains it as follows: "All my sale prices are whole numbers. I like whole numbers, and never settle for any fractions. If the sale amount is divisible by seven, my commision is two sevenths of the sale amount. If the sale amount is divisible by five, my commission is one fifth of the sale amount. If the sale amount is divisible by eleven, my commission is three elevenths of the sale amount. If two or more of the above happen, I my commission is the largest possible, but I can not get two commissions on one sale. And if none of the above happen, I get no commission at all." When asked how much money he made last year, he says: "Well, I never know because I spend them as soon as I earn them. But I remember this: The largest sale amount I had was 1000, and there was only one of that. There were 2 sales of 999 each. 3 sales of 998 each; and this went just like this all the way down. The least sales amount I had was 550, and I can not remember how many happened, but I am sure you can figure that out, being a computer scientist and everything." Question Write a Java program to compute the total commission the salesman earned in the last year. Activate Wi A salesman works on commission. When asked how much he earns on a sale, he explains it as follows: "All my sale prices are whole numbers. I like whole numbers, and never settle for any fractions. If the sale amount is divisible by seven, my commision is two sevenths of the sale amount. If the sale amount is divisible by five, my commission is one fifth of the sale amount. If the sale amount is divisible by eleven, my commission is three elevenths of the sale amount. If two or more of the above happen, I my commission is the largest possible, but I can not get two commissions on one sale. And if none of the above happen, I get no commission at all." When asked how much money he made last year, he says: "Well, I never know because I spend them as soon as I earn them. But I remember this: The largest sale amount I had was 1000, and there was only one of that. There were 2 sales of 999 each. 3 sales of 998 each; and this went just like this all the way down. The least sales amount I had was 550, and I can not remember how many happened, but I am sure you can figure that out, being a computer scientist and everything." Question Write a Java program to compute the total commission the salesman earned in the last year. Activate Wi
Expert Answer:
Related Book For
Auditing a risk based approach to conducting a quality audit
ISBN: 978-1133939153
9th edition
Authors: Karla Johnstone, Audrey Gramling, Larry Rittenberg
Posted Date:
Students also viewed these programming questions
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
Cancer is a frightening disease. The biological process that creates cancerous cells from healthy tissue is poorly understood at best. Much research has been conducted into how external conditions...
-
The terms of three different contracts follow. 1. $8,000 received at the beginning of each year for ten years, compounded at a 6 percent annual rate. 2. $8,000 received today and $20,000 rece3ived...
-
A local deli prepares fresh potato salad for its customers every day. The unsold salad has to be thrown away. The demand for potato salad can be classified as low (100 lb), medium (200 lb), or high...
-
Plaintiff sought to enforce against the defendant estate a promise made by his now-deceased uncle to pay Plaintiff a sum of money if Plaintiff refrained from the use of alcohol and tobacco for a...
-
Beka Company owns equipment that cost $50,000 when purchased on January 1, 2007. It has been depreciated using the straight-line method based on estimated salvage value of $5,000 and an estimated...
-
what are three techniques for processing BI DATA? explain clearly REPORTING ANALYSIS, RFM ANALYSIS,ONLINE ANALYTICAL PROCESSING,DATA MINING ANALYSIS?
-
You have been hired as the new controller for Paulson Paint, Inc. You will have the opportunity to utilize your financial and managerial accounting experience. You will be responsible for preparing...
-
Create an Employee class that has properties for the following data: Employee name Employee number Next, create a class named Productionworker that is derived from the employee class. The...
-
Starting next year you plan on saving for a trip 10 years from now. You plan to save a $1000 a year from year 1 to year 9 because in year 10 there is no point in putting money away if you are going...
-
BRIEFLY DESCRIBE an essay for THESE THREE THINGS (TOPICS) YOU WILL ADDRESS. Define the goals of business writing, summarize the 3-x-3 writing process, and explain how it guides a writer. Analyze the...
-
http://owl.english.purdue.edu/owl/resource/652/1/ On the discussion board, post a message that describes how the OWL paper related to material (Planning Business Messages). Specifically discuss: Why...
-
Muhammad bin Salman's capriciousness is hurting Saudi Arabia The Economist - Print edition | Leaders Aug 18th 2018 ELON MUSK, a mercurial entrepreneur, wants to take Tesla, his electric-car firm,...
-
Choose an Interpersonal Communication topic that you would like to explore in depthfor example, listening, enhancing relationships, self-concept, perception, conflict, empathy, technology etc. Please...
-
A sinusoidal voltage Ecos(at), where t is time and E, is a constant voltage, is passed through a half-wave rectifier that clips the negative portion of the wave. Find the Fourier of the resulting...
-
Refrigerant R-12 at 30C, 0.75 MPa enters a steady flow device and exits at 30C, 100 kPa. Assume the process is isothermal and reversible. Find the change in availability of the refrigerant.
-
An important part of Phase II of the audit opinion formulation process is determining how to respond to identified risks of material misstatement. As indicated in Exhibit 5.8, the auditor might...
-
What are the difficulties that the auditor may experience in using MUS?
-
What are the relevant accounts when auditing debt obligations, and what is the auditor's primary objective?
-
a. Find the Laplace transform of the given function. Use Table 2.2 when applicable. b. Confirm the result of (a) in MATLAB. \(t^{2} \sin \left(\frac{1}{2} t ight)\) TABLE 2.2 Laplace Transform Pairs...
-
a. Express the signal in terms of unit-step functions. b. Find the Laplace transform of the expression in (a) by using the shift on \(t\)-axis. \(g(t)\) in Figure 2.16 FIGURE 2.16 Signal in Problem...
-
a. Express the signal in terms of unit-step functions. b. Find the Laplace transform of the expression in (a) by using the shift on \(t\)-axis. \(g(t)\) in Figure 2.15 FIGURE 2.15 Signal in Problem...
Study smarter with the SolutionInn App