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...
-
Draw a circle in a diagram with labor services on one axis and capital services on the other. This circle represents all the combinations of labor and capital that produce 100 units of output. Now,...
-
Use a calculator to find the value of e x to 4 decimal places when a. x = 1 b. x = 4 c. x = 10 d. x = 0.2
-
\(4 \sqrt{35}+0=4 \sqrt{35}\) Identify the property of real numbers that is being illustrated.
-
Refer to the gasoline sales time series data in Table. a. Compute four- and five-week moving averages for the time series. b. Compute the MSE for the four- and five-week moving average forecasts. c....
-
Polaski Company manufactures and sells a single product called a Ret. Operating at capacity, the company can produce and sell 42,000 Rets per year. Costs associated with this level of production and...
-
In 1879, A.A. Michelson measured the velocity of light in air using a modification of a method proposed by the French physicist Foucault. Twenty of these measurements are in table 6E.27 (the value...
-
question 1 Sofrie academy sdn bhd requires an immediate additional working capital of rm2 million. There are three possible sources: Sorce 1: a loan from galleria bank at 12% discounted interest. A...
-
A stock price is currently $20 and in each of two time steps the stock price may go up by 10% or down by 10%. Each time step is 3 months long. The risk-free rate is 12% per annum with continuous...
-
Mongo Millions is a lottery game played in the United States. The way the game is played, numbers picked for the prizes consist of 5 numbers picked at random from a pool of 42 numbers (the White...
-
Flexible Budget for Selling and Administrative Expenses for a Service Company Digital Solutions Inc. uses flexible budgets that are based on the following data: Sales commissions Advertising expense...
-
As a Senior Policy Analyst in the Ministry of Economic Growth and Job Creation in your country, the Financial Secretary has asked you to write a Discussion Paper to analyse the factors that impact...
-
On January 1, 2021, Eagle Company borrows $100,000 cash by signing a four-year, 7% installment note. The note requires four equal payments of $29,523, consisting of accrued interest and principal on...
-
Stock R has a beta of 2 . 1 , Stock S has a beta of 0 . 5 5 , the required return on an average stock is 9 % , and the risk - free rate of return is 7 % . By how much does the required return on the...
-
Before the latest financial crisis and recession, when was the largest recession of the past 50 years, and what was the cumulative loss in output over the course of the slowdown?
-
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?
-
Use Laplace transforms to convert the following nonhomogeneous systems of differential equations into an algebraic system, and find the solutions of the differential equations. a. \[\begin{aligned}...
-
Consider the series circuit in Problem 2. 20 and in Figure 2. 7 with \(L=\) \(1.00 \mathrm{H}, R=1.00 \times 10^{2} \Omega, C=1.00 \times 10^{-4} \mathrm{~F}\), and \(V_{0}=1.00 \times 10^{3}...
-
Use Laplace transforms to prove \[\sum_{n=1}^{\infty} \frac{1}{(n+a)(n+b)}=\frac{1}{b-a} \int_{0}^{1} \frac{u^{a}-u^{b}}{1-u} d u\] Use this result to evaluate the following sums: a....
Study smarter with the SolutionInn App