CSE2111 Sample Final- Key Access Terms (50 Points) Fill in the blank Multiple Choice Matching (See Exercise 8.1 for Terms.) Excel Problem: (150 points) As the new manager of Toys America, a retail toy store chain, one of your jobs is to keep track of items sold and returned. You have designed several worksheets to help you keep track of all items in stock and the revenue made from these items. Revenue is defined as retail price times quantity. Expenses are the wholesale price of an item and the shipping costs. The markup is your profit. Items This worksheet contains information about the name of the item in stock, the company that makes it, the category id of the item, the wholesale cost and the quantity sold in the last month. Wholesale cost is the cost of the goods purchased straight from the manufacturer. You will use this information later to write formulas and perform calculations. Markup This worksheet contains information about the markup percentage for each item you sell. This percentage is based on the wholesale cost of each item and there is a different markup percentage for each category ID. The retail price of an item is the wholesale price plus the markup and shipping. Retail =Wholesale + Markup + Shipping Cost Units This table contains information about shipping costs associated with purchasing the item from the manufacturer and also some conversions you may need. There is a $2.00 shipping charge for every 10 lbs of toys shipped. In order to calculate the retail cost of your items in stock, you will also need to calculate the shipping cost and add it to the wholesale cost. Misc This worksheet contains information about whether or not the item requires adult assembly before it can be played with and if it is safe for children under age 3. A TRUE in the corresponding cell indicates that this item does require assembly or that it is safe for children under 3 years of age (respectively). You will also find the shipping weight in kilograms for each item of a particular category. For instance, one Krazy Racer weighs 3.5 kg. Please refer to the Excel worksheets shown at the end of this exam to answer the following questions. Use cell references whenever possible. 1 1. Write a formula for cell Misc!D2 to calculate the total shipping cost for one CIS Barbie. Write this formula so that it can be copied down the column. (Round to two decimal places.) =KGS * #/KG /10 * $/10 KG = $ = ROUND(C2 * UNITS!B$5/UNITS!B$3 * UNITS!C$3,2) 2. Write a formula for Items!F3 to calculate the total shipping costs for all Krazy Racers. Write this formula so that it can be copied down the column. =VLOOKUP(A3,misc!A$2:D$7,4,FALSE)*items!E3 3. Write a formula for cell Items!G3 to be copied down to calculate the retail cost for one Krazy Racer in stock. =D3+(D3*HLOOKUP(C3,Markup!A$2:E$3,2,FALSE))+(F3/E3) 4. Write a formula for cell Items!H3 to calculate the total revenue for all of the Krazy Racers sold this past month. Write this formula so that it can be copied down the column. =E3*G3 5. Write a formula for cell Items!I3 to calculate the total profit for all Krazy Racers sold in the past month. Write this formula so that it can be copied down the column. =H3-(D3*E3)-F3 6. Write a formula for Items!G9 to calculate the total retail cost for items in stock. Write this formula so that it can be copied across the row. Use a function. =SUM(G3:G8) 7. Write a formula for cell Items!H11 to calculate the total revenue made for all items manufactured by Fisher Price. =SUMIF(B3:B8,"Fisher Price",H3:H8) 8. Write a formula for cell Items!H12 to answer TRUE/FALSE if there are more types of products made by Matel than Hot Wheels. =COUNTIF(B3:B8,"Fatel")>COUNTIF(B3:B8,"Hot Wheels") 9. Write a formula for Items!H13 to answer TRUE/FALSE if none of the items in stock requires assembly. =NOT(OR(misc!B2:B7)) 2 10. Write a formula for cell Items!H14 to answer TRUE/FALSE if Krazy Racers is the only item that requires assembly. =AND(misc!B6,NOT(OR(misc!B2:B5,misc!B7))) 11. You are deciding whether or not to lower your prices for specific items in stock. Price reduction is based on the following criteria: If the item is a low-selling item (meaning that less than 100 of that item have been sold), you will reduce the retail price for each item by 15%. If this is not the case, but less than 250 of the item have been sold, you will reduce the retail price for each item by 10%. If you have sold at least 250 of the item, you will not reduce the price. Write a formula to be placed in cell Items!J3 to calculate the discounted price (if applicable) of Krazy Racers. Write this formula so that it can be copied down the column. =IF(E3<100, G3-G3*0.15, IF(E3<250, G3-G3*0.1,G3)) 12. You have just started a new layaway plan at your store. You will allow customers to put their items in layaway for 3 months and make weekly payments to completely pay for the items. You will charge 10.5% annual interest compounded monthly. If a customer wants to buy a Dream Castle, what would the weekly payment be for this item? Write an Excel formula that would calculate this payment. Assume there are exactly four weeks in a month and the customer will pay the reduced price for the item. = PMT(.105/12, 3, items!J8)/4 3 Access (150 points) To enhance your ability to keep track of items in stock, you have created an Access database to accomplish this task. You will have a total of items in stock at the beginning of the month. During the month sales will be made and items will be returned. One of your tasks will be to keep track of your item inventory remaining at the end of the month. You have set up 4 tables. They are as follows: Items This table contains information about each item in stock. Each items has an ID#, name category ID, supplier ID, wholesale cost (written as ws cost) and retail cost. The wholesale cost is the cost the manufacturer charges you for the goods. The retail cost is the wholesale cost plus any markup you have imposed on the item. Also included in this worksheet is the in stock total for your items for the beginning of the month. Suppliers: This table contains information about each supplier for all items in stock. Each supplier has an ID#, name and contact person for whom you work with at that company. Sales: This table contains information about all sales of the items you have in stock. Sales are listed by item#. Also included, is the quantity of each item sold for a particular purchase and the date of the sale. Returns: This table contains information about the items that have been returned to your store. Each return is listed by item#. The dates of the returns and reasons for the returns are also listed. Assume that only one item has been returned for each record listed. 4 1. Create a relationship diagram for the Employee database a. Identify the primary keys and foreign keys b. Establish the relationships between each table FK: Item# on Sales FK: SupplierID on Items FK: Item# on Returns FK: ReasonCode on Reason 2. Has referential data integrity been violated between any tables? If so, identify the orphans. Yes. Item# 7 on in the Sales table is an orphan. 5 3. Using the Access design view below, write a query to result in the following: The item# and name of all items that were sold between December 1, 2012 and December 10, 2012. Sort lowest to highest by item# and by date starting from the most current. Query Name: Query 3 Tables Required: Items/Sales Join On: (Also Known as the Foreign Key) Item# Join Type: Inner Field Item# Toy DateSold Table Items Items Sales Total Sort Ascending Show x Descending x Criteria Between #12/1/2012# And #12/10/2012# OR OR Additional Room for Expressions if needed: 5. Write a query to result in the following information for all broken items that were returned: The item#, date returned and supplier name. Query Name: Query 4 Tables Required: Suppliers/Items/Returns Join On: SupplierID/ Item# Join Type: Inner Field Item# DateReturned SupplierName ReasonCode Table Items Returns Suppliers Returns x x x Total Sort Show Criteria 1 6 6. Write a query to summarize the total revenue for all items sold (don’t worry about any items that were returned). This query should include item#, item name, and total revenue. Query Name: Query 5 Tables Required: Items/Sales Join On: Item# Join Type: Inner Revenue: Sum([QuantitySold]*[RetailPrice]) Field Item# Toy Table Items Items Total Group By Group By Expression x x x Sort Show Criteria 1 Additional Room for Expressions if needed: 7. Design a query that will result in the following information. A list of all items returned (including item# and name) that were either: Krazy racers returned because they were broken CIS Barbies returned because the child hated it. Query Name: Query 6 Tables Required: Items/Returns Join On: Item# Join Type: Inner Field Item# Toy ReasonCode Table Items Items Returns x x Total Sort Show Criteria OR “Krazy Racers” 1 “CIS Barbie” 3 7 8. It’s the end of the month and you are trying to account for your entire inventory. Be advised that any returns made by customers must also be considered in this calculation. Using the Access design views below, construct queries that will result in the dynaset below. This means that after you have written your queries, your results should look like the query shown below. You may also use any relevant queries from this final that you have already constructed. Query Name: Query 7A Tables Required: Items/Sales Join On: Item# Join Type: Outer Field Item# Inventory Toy QuantitySold Table Items Items Items Sales Total Group By Group By Group By Sum x x x x Sort Show Criteria OR 8 Query Name: Query 7B Tables Required: Items/Returns Join On: Item# Join Type: Outer Field Item# Item# Table Items Returns Total Group By Count x x Sort Show Criteria OR Query Name: Query 8C Tables Required: Query 7A/Query 7B Join On: Item# Join Type: Inner Field Item# Toy Table Query 8A Query 8A x x Current Inventory: Total Sort Show x Criteria OR Additional Room for Expressions if needed: Current Inventory: [Inventory] – NZ([SumOfQuantitySold],0) - [CountOfItem#] 9 A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 B C D E F G H I J Toys America Item Name Krazy Racers CIS Barbie Crib Nite-lite Roller Blades Football ROM Dream Castle TOTAL Company Hot Wheels Matel Fisher Price Fisher Price Sierra Matel Category ID CA BA IN SP CD BA Wholesale Quantity cost Sold $ 6.25 625 $ 3.50 730 $ 7.85 105 $ 15.65 112 $ 12.50 156 $ 45.68 234 Total shipping Retail New price cost/all cost/one after items item reduction Total revenue Total Profit $ 467.50 $ 9.50 $ 5,936.25 $ 1,562.50 $ 9.50 $ 481.80 $ 6.44 $ 4,697.55 $ 1,660.75 $ 6.44 $ 115.50 $ 13.35 $ 1,401.33 $ 461.58 $ 12.01 $ 231.62 $ 23.20 $ 2,597.90 $ 613.48 $ 20.88 $ 27.46 $ 18.93 $ 2,952.46 $ 975.00 $ 17.03 $ 833.98 $ 78.94 $ 18,471.02 $ 6,947.93 $ 71.04 $ 150.34 $ 36,056.51 $ 12,221.24 Total the total revenue for all items made by fisher price There are more items made by Matel than Hot Wheels? None of the items listed require assembly? Krazy Racers is the only item that requires assembly? $ 3,999.23 TRUE FALSE FALSE Items A A B 1 Markup Percentage 2 CA BA IN 3 40% 65% C D SP E CD 56% 35% 50% Markup B C Shipping costs lbs cost Ship cost/10 lbs of 3 toys 10 $ 2.00 4 5 lbs/kgs 2.2 1 2 Units A B C D Item Needs weight in Shipping 1 Assembly Kilograms cost/item 2 CIS Barbie FALSE 1.5 $ 0.66 3 Crib Nite-lite TRUE 2.5 $ 1.10 4 Dream Castle TRUE 8.1 $ 3.56 5 Football ROM FALSE 0.4 $ 0.18 6 Krazy Racers TRUE 1.7 $ 0.75 7 Roller Blades FALSE 4.7 $ 2.07 Misc * All given data is shaded in gray 10 11