(Salesperson Salary Ranges) Use a one-dimensional array to solve the following problem.
A company pays its sales people on a commission basis. The salespeople each receive S200 per week 9 percent of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receives $200 plus 9 percent of $5000, or a total of $650. Write a
a) $200-299
b) $300-399
c) $400—499
e) $500-599
f) $600-699
g) $700-799
i) $800-899
j) $900-999
i)$ 1000 and over
Trending nowThis is a popular solution!
Chapter 7 Solutions
C++ How to Program (10th Edition)
Additional Engineering Textbook Solutions
Introduction To Programming Using Visual Basic (11th Edition)
Java: An Introduction to Problem Solving and Programming (7th Edition)
Using MIS (10th Edition)
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
Concepts Of Programming Languages
Starting Out With Visual C# (5th Edition)
- Declare two characters array And take input from user in first array and at last index take slach zero (/0) similarly we take input in second array and at end /0. And take another array and copy first array in this blank array and when we come to /0 then copy second array in blank array. Example First array (this is a) Second array (book) Blank array (this is a book) Don't use built-in functionsarrow_forwardEnter two numbers and find their least common multiple. -Use for -Do not use arrays or and or functionsarrow_forward8. using c++, Write a function method that determines the mean of all the values in an array of integers. Your mean function should call a separate function that you write that determines the sum. Don’t use built-in sum or mean gadgets, but roll your own.arrow_forward
- 4. Given an array of ints, return the number of times that two 6's are next to each other in the array.int n[] = {2, 6, 71, 6, 6, 6, 34, 6, 6, 89}; C++arrow_forward- Write a program to accept n integer values in an array (array size defined and inputted by the user). Then start showing/printing the existing values in the following format. (Use Java coding language).arrow_forwardState whether the statement are true or false. If the answer is false, explain why? " If there are fewer initializers in an initializer list than the number of elements in the array , the remaining elements are initialized to the last value in the initializer list.arrow_forward
- Need help with the following question"* Return a copy of the array"arrow_forward- Write a java program that contains a two-dimensional array of 2 rows and 3 columns. Find the sum of each row in the array, trace the code using a tracing table. - Note: No two students can try the same inputs. - You should submit the code and the tracing table in a handwritten pdf file. - Also, you should submit the code and a screenshot of the output using a word file. Tracing Table may look like the following table: Line# i j Array[0][0] Array[0][1] Array[0][2] Array[1][0] Array[1][1] Array[1][2] rowSum Output …….arrow_forward- in this exercise, please do not include and use string class. The function is using only array notation and manipulation.- string functions such as strlen is not allowed.- it should not have multiple return statements in the same function- there should be no global variable.- the function should not traverse the arrays more than once (e.g. looping through the array once only) write a c++ program named "isTheLastNumberTheMax" that accepts an array of integers and its size. It will return true if the last number in the array is the maximum number in that array and false otherwise. In addition, it also returns another boolean to indicate whether this list contains more than one maximum value.For example, if this is called with the array of {10, 20, 30, 40, 50}, it will return true and falseIf this is called with the array of {50, 10, 20, 30, 40, 50}, it will return true and true.arrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning