Assignment1
.docx
keyboard_arrow_up
School
Centennial College *
*We aren’t endorsed by this school
Course
100
Subject
Industrial Engineering
Date
Feb 20, 2024
Type
docx
Pages
11
Uploaded by MagistrateGoldfish4027
Programming Fundamentals: IPO Charts
Assignment 1
Answer the questions below in this file. Save it. Once you are done, upload to eCentennial under Assessments / Assignment / Assignment 1
For each of the problems below determine what is required i.e., identify the output(s) and then the given input(s). Do a sample calculation that will transform the input into the required output. If this is successful, then the problem is solvable.
If it can be solved, then create a three-column IPO chart similar to the sample solution provided for item #1 below.
Else if it is not solvable then explain what is needed to make it solvable. If you make any assumption in your calculation, then you must clearly state so.
In the end, do a sample calculation that will transform the input into the required output.
For each question in your submission, you must have either
a)
the question, output, input, processing (if any), any assumptions, the IPO chart and a sample calculation
or b)
the question and an explanation why it is not solvable
Please note that the IPO chart should not contains numbers, just items.
1.
Acme Builder’s Inc. has worked out that the wiring of an average house requires 45m of 14AWG wire. If a contractor has to wire 5 houses, what length of wire will be needed?
2.
Burnaby Farms wants to estimate the cost of fertilizing their fields for the coming year. Each hectare of cultivated land requires 15kg and they intend to work 300 hectares.
3.
Cherry Entertainment Corp. is looking into the profitability of hosting MMA XXII at the Rogers Center. The sale of tickets, broadcasting rights and advertising will gross approximately $2 million. How much profit will Cherry Entertainment Center make if Rogers Centre cost $800,000 and this is their only cost?
4.
Delta Airlines estimates that the fuel efficiency of a Boeing 747 jet is 12 liters per km. If the price of aviation fuel is $1 per liter, how much would it cost the airline to fly to New York and back from Toronto?
5.
Estelle’s Grocery is having a back-to-school sale of up to 50% off on food items. The price of potatoes is 11
₵
per kg. A plastic bag costs 5
₵
. What will the total cost (potatoes and bag) if someone buys 25kg of potatoes?
6.
Fancy Jewelers is in the Scarborough Town Center on the second floor near to Walmart. In their Boxing week sale earrings were priced at $20 per pair. If John wants to get a pair for as many females in his family as he can. How many pairs can he get if he has $125? [You may assume that there are more females in his family than he can buy earrings.]
7.
Gerard The Plumber charges $1.25 per meter for pipe installation. Each join cost 90
₵
. How much will Gerard charge for a job that is 12m with 4 joins?
8.
Last year at the CNE, the Halls family bought 100 ride tokens. If the Polar Express, the Ferris Wheel, the HighDrop and the WaterFall costs 15, 10, 12 and 9 tokens respectively per person, how
many tickets will remain at the end of the day?
9.
Isabelle’s Confectionary sells a packet of Maynard’s sourdrops for 25
₵
. Each packet contains approximately 30 candies. How many packets will Sarah get if she has $3?
Page 1
of 11
Programming Fundamentals: IPO Charts
10.
Jake’s Towing Services works out of the Markham/Finch area. They charge $5.50 per km for towing in addition to a flat service fee of $18. What would be the cost of towing a Toyota RAV 4 from Morningside/Ellesmere to McCowan/Sheppard?
SOLUTION SAMPLE
1.
SOLVABLE - Acme Builder’s Inc. has worked out that the wiring of an average house requires 45m of 14AWG wire. If a contractor has to wire 5 houses, what length of wire will be needed? IPO Chart
Input
Processing
Output
lengthPerHouse
numOfHouses
Assumptions: 1.
All houses require the same type of wire. 2.
The houses are the same
average size
Processing Items:
None
Algorithm: 1.
Enter lengthPerHouse and numOfHouses
2.
Calculate totalLength of the wire by multiplying lengthPerHouse by numOfHouses
3.
Display totalLength
totalLength
Sample Calculation / Desk-Checking Table
lengthPerHouse [input]
numOfHouses [input]
totalLength [output]
45m
5
225m
2.
UNSOLVABLE Burnaby Farms wants to estimate the cost of fertilizing their fields for the coming
year. Each hectare of cultivated land requires 15kg, and they intend to work 300 hectares.
We do not have the information about cost of fertilizer. That’s why we cannot calculate the cost of fertilizing the fields.
Page 2
of 11
Programming Fundamentals: IPO Charts
3.
SOLVABLE Cherry Entertainment Corp. is looking into the profitability of hosting MMA XXII at the Rogers Center. The sale of tickets, broadcasting rights and advertising will gross approximately $2 million. How much profit will Cherry Entertainment Center make if Rogers Centre cost $800,000 and this is their only cost?
IPO Chart
Input
Processing
Output
-
grossSale
-
costOfRogersCenter
Assumptions: Processing Items:
-
totalProfit
Algorithm
-
Enter grossSale;
-
Enter costOfRogersCenter;
-
Calculate totalProfit by substracting grossSale by costOfRogersCenter;
-
Display totalProfit
-
totalProfit
Sample Calculation / Desk-Checking Table
Gross revenue [input]
Cost of hosting Rogers Centre [input]
Profit [output]
$2,000,000
$800,000
$1,200,000
Page 3
of 11
Programming Fundamentals: IPO Charts
4.
UNSOLVABLE Delta Airlines estimates that the fuel efficiency of a Boeing 747 jet is 12 liters per
km. If the price of aviation fuel is $1 per liter, how much would it cost the airline to fly to New York and back from Toronto?
We don't know the airline's distance from New York and from there to Toronto. That's why we can't calculate it.
IPO Chart
Input
Processing
Output
-
fuelEfficiency
-
flightDistance
-
fuelPrice
-
fuelAmount
-
fuelCost
Assumptions: Processing Items:
-
fuelCost
Algorithm
-
Enter fuelEfficiency
-
Enter flightDistance
-
Enter fuelPrice
-
Calculate fuelAmount by: fuelEfficiency * flightDistance * 2
-
Calculate fuelCost by multiplying fuelAmount
by fuelPrice
-
Display fuelAmount and
fuelCost
-
fuelCost
Page 4
of 11
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