2231-APS145-Quiz2 - AB - Answer
pdf
keyboard_arrow_up
School
Seneca College *
*We aren’t endorsed by this school
Course
145
Subject
Industrial Engineering
Date
Jan 9, 2024
Type
Pages
10
Uploaded by DeanOwl3040
Winter 2023 APS145: Quiz #2 (A) Name:________________________________ /30 PART-1 (9-Marks)
1.
(
3 marks
) Dilly identified the process of admission for tourists as a family unit to the day boat cruise was repeating redundant information like the address data for each family member. Dilly realized this can be simplified by getting the address once. What is the main computational thinking component being described: ____________________________________________________________________
Explain your answer using the provided example to justify your answer:
____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ 2.
(
3 marks
) Nilly was reviewing the system processes used for generating business reports on sales and realized there were two sub-processes developed to perform sorting on a list of data. One, for ordering the sales by product name (characters), and another that orders the result by quantity of sales (numbers). Nilly sees a way to accomplish this by creating only one sub-process that can perform the sorting regardless of the field or data type used to sort by. What is the main computational thinking component being described: ____________________________________________________________________
Explain your answer using the provided example to justify your answer: ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ Pattern Recognition and Data Representation Dilly noticed repetition in the data and the pattern of prompting for the same information for all family members. By designing the process to prompt only for this data once, repetition can be avoided while still maintaining the needed data representing for the family unit. Abstraction Freddy realized that the CONCEPT of sorting is the same no matter what field or data type is used to sort on (be it by strings like product name, or numerical data like quantity of sales). Therefore, a single process can be created to sort the data and the process can include as an extra argument value to indicate by what field it should be sorted on and the appropriate logic/data type handling can be done respectively.
Winter 2023 APS145: Quiz #2 (A) 3.
(
3 marks
) Willy is responsible for analyzing the requirements of a new system and needs to determine the scope of the problem. All that is currently known is that it is a tracking system for problem products the company manufactures. What is the main computational thinking component being described:
____________________________________________________________________ Explain your answer using the provided example to justify your answer: ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ PART-2 (21-Marks)
Carefully read the problem below. Apply your computational thinking skills to provide a solution and create the necessary flowcharts
to describe the detailed process. The Problem
A food distribution plant for apples, oranges, bananas, and pears must get rid of extra inventory. They have advertised to all grocery stores to drop by with their cube van trucks to load up on these free products. Each truck will be loaded with the four products to a maximum of 1000 cubic feet. Each truck must be loaded with the following product distributions: 25% apples, 20% oranges, 40% bananas, and 15% pears. When all four products are loaded, the next truck can be processed. Under no circumstances should loading a truck take longer than 30 minutes. If 30 minutes is reached, loading must stop immediately, and the truck must leave. The shipping bay’s operation hours are strictly enforced and will only operate between the hours of 08:00 AM to 17:00 (05:00PM). Trucks will not be served earlier than 08:00 and when 17:00 is reached operations must swiftly stop (this means it is possible to have a partially loaded truck if 17:00 is reached during the loading process). There are 10 truck loads of product to be given away, so once 10 truck loads have been loaded, the shipping bay should immediately shutdown even if it’s before closing time (17:00). The only condition that will stop this process is if all the excess inventory is loaded (10 truck loads) otherwise, it should continue to test for operational hours and trucks waiting to be loaded. Decomposition Willy only needs to determine the scope of the problem which will also identify the overall scope of the necessary solution. This begins with the decomposition stage to explore and identify what key components are required in the solution to address the problem. From this process, an overall scope of the requirements will be determined.
Winter 2023 APS145: Quiz #2 (A) Your Task Although this is not a computer application, management wants you to illustrate the preceding described business process in flowchart
form. There are two sub-processes that need to be defined (these will be two separate flowcharts): 1.
“
Loading Hours
”
(
5 marks
)
•
This subprocess receives the time range of the “open” hours
and determines if the current time is within the operational hours. If the current time is within the operating hours, it will return true otherwise, false to indicate it is currently outside the operating hours. •
Note: This subprocess will be called at least once by th
e “main” process.
2.
“
Main
” (
11 marks
)
•
This subprocess is the main logic and will describe the main flow of the required operations. Data Structures
(
5 marks
)
You must create the necessary data structure(s)
that suitably organize and group related data in a meaningful way to make it easy to manage. NOTE You must apply proper timer logic
as demonstrated in class and as was expected in your recent workshops. Record your answer on the following pages (you may use both sides). Please scratch out work that should not be graded
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Winter 2023 APS145: Quiz #2 (A) Grading Rubric Outline: Version A
Data Structure(s)
1
Operations
: Sufficiently represents the needed data to manage operations (open/close time, max. truck loads, truck load counter)
2
Shipping
: Sufficiently represents the needed data to manage the shipping contraints
(max. truck load time, max. truck cubic ft., max. for each product)
3
Loading
: Sufficiently represents the needed data to manage loading (timer, counters for each product loaded )
Sub-Process: Loading Hours
1
"
Recieves
" a data structure that represents the open/start and close/end time of operations
2
Correctly compares the current time
against both the open/start
and close/end times
3
Correctly assigns a binary result
that is is "
Returned
" to the caller (1|0, True|False, or other reasonable result)
4
Applied correct flowchart symbols and logic to perform the required task
Sub-Process: Main
1
Declares the necessary variables (must use the structures defined etc..)
2
Has a main loop
that only ends when the max. truck loads limit is reached
3
Initially checks for operating hours
as required (calls: LoadingHours
) and does not perform any logic outside of those hours
4
Monitors for a waiting truck
to be loaded (part of the main loop
)
5
A Nested Loop is created for loading a truck
(related loading data is reset)
Loading a Truck:
6
- Properly tracks loading time
(does not exceed loading time)
7
- Responsively checks for operating hours
(and stops loading
if closed)
8
- Tracks each product seperately
being loaded and is in a loop
until required amount is reached, and adds to truck load count
9
Applied correct flowchart symbols and logic to perform the required task
Winter 2023 APS145: Quiz #2 (A)
Winter 2023 APS145: Quiz #2 (B) PART-1 (9-Marks)
1.
Bobby must do a project on the habitat of the barn owl in the northwestern America’s for school. The report must be printed and should not exceed 7 pages double-spaced. Bobby must first determine the main pieces of information to focus on to ensure it aligns with the project scope. What is the main computational thinking component being described: ____________________________________________________________________
Explain your answer using the provided example to justify your answer:
____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ 2.
Robby was reviewing two custom applications used by his company and identified they are virtually performing the same tasks only focused on different data. One manages complaints about the company products and services, and the other manages customer feedback on their products and services. Robby is going to propose to his manager he merge these applications into a single application. What is the main computational thinking component being described: ____________________________________________________________________
Explain your answer using the provided example to justify your answer:
____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ Decomposition Bobby knows the first thing you need to do is breakdown the problem into simpler smaller parts. Reviewing the smaller parts will help identify what the important parts are and can be assembled to fit the scope of the project length limits. Abstraction Robby observed that that the CONCEPT of managing feedback and complaints on the company products and services is the same thing. The specific nature of the feedback (whether it is simple feedback or complaints) doesn’t matter –
it is still logging “words” related to the company products and services. The context is not important to the main purpose of the process which is the same. Therefore, a single application should be used for these tasks which will also help simplify the maintaining of the application since it can be done using one application.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Winter 2023 APS145: Quiz #2 (B) 3.
Sobby was reviewing the process of a vending machine that sends emails to vendors when inventory is low. The current defined process sends an email per product that requires more inventory, but Sobby realizes this can be done much more efficiently if a single email is sent with a list of product details that require more inventory. What is the main computational thinking component being described: ____________________________________________________________________
Explain your answer using the provided example to justify your answer:
____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ ____________________________________________________________________________________________ PART-2 (21-Marks)
Carefully read the problem below. Apply your computational thinking skills to provide a solution and create the necessary flowcharts
to describe the detailed process. The Problem
“
Food For All
”
is a charitable organization that distributes free meals to those in need. Each person will receive 500 g of food composed of the following parts: 30% mashed potato's, 20% steamed peas, 40% cooked ground meat, and 10% special sauce. When all four parts are plated, the next person can be served. Under no circumstances should the serving of a single person exceed 3 minutes. If 3 minutes is reached, serving must stop immediately, and the person will have to take what was given and move on. The organization hours of operation are between 16:00 (4:00 pm) and 20:00 (8:00 pm) and are strictly enforced. People will not be served earlier than 16:00 and when 20:00 is reached operations must swiftly stop (this means it is possible to have a partially served plate if 20:00 is reached during the serving process). There are a maximum of 80 servings of food to be given, so once 80 servings have been reached, the organization should immediately shutdown even if it’s before closing time (20:00). The only condition that will stop this process is if the maximum servings is plated (80 servings) otherwise, it should continue to test for operational hours and people waiting to be served. Pattern Recognition and Data Representation Sobby noticed unnecessary repetition in the emailing process which takes time to process, unnecessarily uses extra resources, and floods the vendor with many emails which can be avoided entirely if the data is compiled first into a list of products that need more inventory and then put into a single email.
Winter 2023 APS145: Quiz #2 (B) Your Task Although this is not a computer application, management wants you to illustrate the preceding described business process in flowchart
form. There are two sub-processes that need to be defined (these will be two separate flowcharts): 1.
“
Serving Time
” (
5 marks
)
•
This subprocess receives the time range of the “open” hours and determines if the current time is within the operational hours. If the current time is within the operating hours, it will return true otherwise, false to indicate it is currently outside the operating hours. •
Note
: This subprocess will be called at least once by the “main” process.
2.
“
Main
” (
11 marks
)
•
This subprocess is the main logic and will describe the main flow of the required operations. Data Structures
(
5 marks
)
You must create the necessary data structure(s)
that suitably organize and group related data in a meaningful way to make it easy to manage. NOTE You must apply proper timer logic
as demonstrated in class and as was expected in your recent workshops. Record your answer on the following pages (you may use both sides). Please scratch out work that should not be graded
Winter 2023 APS145: Quiz #2 (B) Grading Rubric Outline: Version B
Data Structure(s)
1
Operations
: Sufficiently represents the needed data to manage operations (open/close time, max. servings, servings counter)
2
ServingLimits
: Sufficiently represents the needed data to manage the serving contraints
(max. serving time, max. grams, max. of each food item)
3
ServingData
: Sufficiently represents the needed data to manage each serving (timer, counters for each item plated)
Sub-Process: Serving Time
1
"
Recieves
" a data structure that represents the open/start and close/end time
of operations
2
Correctly compares the current time
against both the open/start
and close/end times
3
Correctly assigns a binary result
that is is "
Returned
" to the caller (1|0, True|False, or other reasonable result)
4
Applied correct flowchart symbols and logic to perform the required task
Sub-Process: Main
1
Declares the necessary variables (must use the structures defined etc..)
2
Has a main loop
that only ends when the serving limit is reached (max.servings)
3
Initially checks for operating hours
as required (calls: ServingTime
) and does not perform any logic outside of those hours
4
Monitors for a waiting person to be served (part of the main loop
)
5
A Nested Loop is created for serving a customer
(related serving data is reset)
Serving / Plating items:
6
- Properly tracks serving time
(does not exceed serving time)
7
- Responsively checks for operating hours
(and stops serving
if closed)
8
- Tracks each item seperately
being plated and is in a loop
until required amount is reached and adds to serving counter
9
Applied correct flowchart symbols and logic to perform the required task
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Winter 2023 APS145: Quiz #2 (B)