(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 (Early Objects Version)
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)
- (Area of a convex polygon) A polygon is convex if it contains any line segment that connects two points of the polygon. Write a program that prompts the user to enter the number of points in a convex polygon, then enter the points clockwise, and display the area of the polygon. Sample Run Enter the number of points: 7 Enter the coordinates of the points: -12 0 -8.5 10 0 11.4 5.5 7.8 6 -5.5 0 -7 -3.5 -5.5 The total area is 244.575arrow_forwardPROBLEM: A company pays its employees on a commission basis. An employee receives an amount of $1500 per week plus 6 percent of their sales for that week. (Ex. sales of employee is $10000, commission would be $1500 + 6% of $10000 which is $600 for a total of $2100 commission.). Write a program (using an array of counters) that determines how many of the employees eamed salaries in each of the following ranges (assume that each employee's salary is truncated to an integer amount): a. $1500 to $2999: b. $3000 to $4499: c. $4500 to $5999: d. $6000 to $7499: e. $7500 to $8999: f. $9000 to $:10499: g. $10500 to $11999: h. $12000 to $13499: i. $13499 and over: SPECIFICS: - Program uses a vector or single script array. - Max array size is 50 but you may adjust the looping to a number less than 50 for simplicity. - All lines of code must contain a comment or pseudocodes - Make the code as basic as it can get SAMPLE PROGRAM: Enter employee sales (-1 to end): 200000 Employee commission is $13500…arrow_forward[Fish Tank] You play with a clown fish that has an initial size so. The fish can eat other fish in a tank organized in m columns and n rows. The fish at column i and row j has a positive size si,j. When your fish eats another fish, it grows by that amount. For example, if your clown fish has a size of 10 and eats a fish of size 5, it becomes of size 15. You cannot eat a fish that is bigger than your size. The game starts by eating any fish in the first (left-most) column that is not bigger than yours. After that, you advance one column at a time by moving right. You have only three allowed moves. You either stay at the same row, move one row higher or one row lower. You will always move to the right. Thus, you will make exactly m moves to advance from left to right. Your goal is to exit the fish tank from the right with the biggest possible size. The figure below shows an example with the best answer highlighted. In this case, the final fish size is 71 (10+8+7+24+22). You are required…arrow_forward
- [hey expert! kindly answer is simple c++ ] :) You are required to write a program that takes input from the user the marks of his programming fundamentals quizzes in an array. You are required to write the program that caters for 10 students. That means the program asks the user to enter 10 quizzes marks for 10 students (use 2 dimensional array). The program calculates the percentage of all 10 quizzes for each student.Based on the percentage, the program should calculate the grade of each student and store it in a char-one dimensional array. The program should also display the grade of the student on the screen. The grade is calculated by the formula percentage>=80 --- grade = A for percentage >=70 and less than 80 ---------- grade = B for percentage >=60 and less than 70--------- grade = C for percentage >=50 and less than 60 ----------grade = D for percentage less than 50 ----------grade= F In the end when all the grades have been calculated the program should…arrow_forward(with Java please)arrow_forward(Random sentences and story writer) Write an app that uses random-number generation to create sentences. Use four arrays of strings, called article, noun, verb andprepostion. Create a sentence by selecting a word at random from each array in the following order: article, noun, verb, preposition, article, noun.As each word is picked, concatenate it to the previous words in the sentence. The words should be separated by spaces. When the sentence is output, it should start witha capital letter and end with a period. The program should generate 10 sentences and output them to a text box. The arrays should be filled as follows:The article array should contain the articles "the", "a", "one", "some" and "any";The noun array should contain the nouns "boy", "girl", "dog", "town", "car";The verb array should contain the past tense verbs "drove", "jumped", "ran", "walked" and "skipped";The preposition array should contain the preposotions "to", "from", "over", "under" and "on";arrow_forward
- (Sort three numbers) Write the following function to display three numbers in increasing order: def displaySortedNumbers(num1, num2, num3): Write a test program that prompts the user to enter three numbers and invokes the function to display them in increasing order. Here are some sample runs:arrow_forward(True or False) Seven different positive integers are randomly chosen between 1 and 2022 (including 1 and 2022).There must be a pair of these integers has a difference that is a multiple of 6.arrow_forwardPlease help answer these two questions in Python. (See attached image) Attach screenshots of your code for clarity.arrow_forward
- (Flattening arrays with flatten vs. ravel) Create a 2-by-3 array containing the first six powers of 2 beginning with 2^0. Flatten the array first with method flatten, then with ravel. In each case, display the result then display the original array to show that it was unmodified. Please use Python and keep it simple.arrow_forwardusing c++ programming ::::: 16. (Pick 5 Lotto) Write a program to simulate a pick-5 lottery game. Your program should generate and store 5 distinct numbers between 1 and 9 (inclusive) into an array. The program prompts the user to enter five distinctbetween 1 and 9 and stores the number into another array. The programthen compares and determines whether the two arrays are identical. If thetwo arrays are identical, then the user wins the game; otherwise the program outputs the number of matching digits and their position in the array.Your program must contain a function that randomly generates thepick-5 lottery numbers. Also, in your program, include the functionsequential search to determine if a lottery number generated hasalready been generated.arrow_forward(C PROGRAMMING ONLY) Thanks for fixing me! I am now okay. My next problem though is I don't know what to do with my life. Can you please show me? Instructions: In the code editor, you are provided with an array called me that contains 100 elements. Your task is to print all the elements of the array starting from the last element up to the first element. For this problem, using a loop would be very helpful. Outputarrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education