Concept explainers
Prepare a payroll earnings statement for the sales force at the Arctic Ice Company. All of Arctic's employees are on a straight commission basis of
a.
b.
c.
Use the test data in Table 4-2 to test the program.
Want to see the full answer?
Check out a sample textbook solutionChapter 4 Solutions
Computer Science: A Structured Programming Approach Using C, Third Edition
- The same description as Problem I. You are asked to display order's item list and meal cost to customer. Each meal must have at least one main item, but side item and drink are optional. Also, a 10% coupon code is available to use. So the main items can be decorated by the side items, drink and coupon. This gives a customer flexibility to order any number of sides or drinks for a meal. Please note that each side item and drink can be multiple or partial. The cost of multiple or partial side and drink is adjusted proportionally, for example, cost of 2 orders of Coke is 2x$1.00, 40% order of Fries is 0.4x$1.5. However, coupon can be used only once per order. We would like to use the Decorator pattern and Singleton pattern to create the receipt to show order's item name, quantity, item unit price, item cost, any coupon applied and final cost. The singleton is to ensure that the coupon can be applied only once in an order. Here is price for each item Main items, Hamburger: $6.5;…arrow_forwardThe system to be developed for Williams and Son needs to produce the following slip for a customer once the sale has been concluded. Williams & Son VATnr: 0123456 Product Price Screwdriver R 100 Super glue R 20 Total: R120 Please note: For the purpose of this assignment, assume that a customerwill only purchase one unit of each item.arrow_forwardThe Marketing team of InstantRide wants to know that how many discounts have been offered for each ride. You need to calculate this information for each travel where a discount is applied and return two columns: TRAVEL_ID and DISCOUNT_AMOUNT. In addition, you need to return the calculation as a money value using the ROUND function to 2 decimals.arrow_forward
- Below are the total sales by month and the retail price of each product. Enter formula in Column I to answer the question in column K. You must type a formula and references to the data table. You cannot input a numerical answer, it must be a typed formula. Data Table 1 Type the formula Product Jan Feb March April May June Instructions HINT: Baseballs 43 66 96 122 188 144 2,629.41 CORRECT What is the total dollar sales from Baseballs? Add all of the months and multiply by retail price What is the total dollar sales from soccer balls? 13,513.24 CORRECT 3,243.50 ICORRECT soccer balls 26 48 72 165 199 166 $ Add all of the months and multiply by retail price Soft Balls 38 22 99 146 157 188 what is the total dollar sales from Soft Balls? Add all of the months and multiply by retail price Use values from Column I in your formula. 19 should be your total units for soccer balls. Divide by the total units of baseballs, soccer balls, and soft Enter Formula What percentage of total sales are…arrow_forwardThe table shows monthly test requests and the average days to complete one request. On average, how many test requests are being processed? Note that a typical month is 20 days.arrow_forwardFor this project, you are to complete the following assignment: Given a certain temperature in Fahrenheit and a maximum wind velocity (speed) in Miles Per Hour, calculate and display a series of wind chill factors from a wind velocity of 1 MPH to the maximum wind velocity in a table. The user is allowed to specify a maximum wind velocity of up to 50 MPH. Here are the programming instructions for this project: • You must use coding techniques from only Chapter 1 through Section 5.1 in our textbook. You may not use any other coding techniques from any other sources. • Create a project and class in BlueJ named Project2 • In main(), do the following: o Prompt the user to enter the current temperature and use a Scanner object to store it in a double variable. o Call a method named getVelocity that returns an integer and has a Scanner parameter. This method must use a either a while loop or a do-while loop to prompt the user to enter the maximum wind velocity (speed) and return it. A valid…arrow_forward
- A real estate agency pays a sales representative monthly minimum income of 1000, 54 TL, additional allowance according to his/her title, plus 200 TL for each property sold by the sales representative in that month and a certain amount of the sales amount. Additional allowance amounts by title and bonus rates are given in the tables below: Title Additional Allowance (TL) Trainee (1) 250 Beginner (2) 350 Expert (3) Senior (4) 500 750 Sales Amount (TL) Bonus Rate (%) 0- 499.999,99 0.25 500.000- 999.999,99 0.5 1.000.000- 1.999.999,99 0.75 2.000.000-.. 1 By adhering the rules stated above, find the total salary amount of a sales representative for a particular month, by obtaining the title of a sales representative from the user (1 for the trainee, 2 for the novice, 3 for the specialist, 4 for the senior), the number of real estate sold this month and the total sales amount made by the sales representative. Write a C code that prints the total salary on the screen using the switch-case…arrow_forwardThe program should ask the user to enter the balance: 4 choices: balance, deposit, withdrawal, Exit Use program decomposition. Check whether invalid data is entered, and request to re-enter until the correct data is entered. The output should be formatted as monetary values, and all reports should maintain overall consistency.arrow_forwardIf a team is unable to complete all the points of work allocated for an iteration, the team should use the number of points that were completed as basis for the work for the next iteration. True/Falsearrow_forward
- Submit Test Reader Which type of function best models the relationship between the number of days and the inventory remaining?arrow_forwardYou are given a list of courses that are currently available in Oxford College that looks like the following: courses = ['CSE110','CSE111','MAT620','CSE520','EEE361','CSE650','MAT510']. All courses till 400 level (499) are for the undergraduate students whereas any courses above 500 are for the graduate or masters students. Write a python program that creates a dictionary from the above list where the keys will be each department name (CSE,EEE,MAT for the above example) and their values will be a dictionary of two keys - Undergraduate Courses and Graduate Courses. Each key will have courses that fall in Undergraduate and Graduate level respectively. Sample Input - No need to take input ['CSE110','CSE111','MAT620','CSE520','EEE361','CSE650','MAT510'] Sample Output: (You just have to print the resultant dictionary. No need to follow the pattern below) { 'CSE':{ 'Undergraduate':['CSE110','CSE111'], 'Graduate':['CSE520','CSE650'] },…arrow_forwardAll objectives are important. Truer/Falsearrow_forward
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage