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
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
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
Programming Fundamentals: IPO Charts
5.
SOLVABLE 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?
IPO Chart
Input
Processing
Output
-
PricePerKgOfPotatoes.
-
costOfPlasticBag
Assumptions: -
The sale discount is applicable only to food items
(potatoes) and not the plastic bag.
-
The discount percentage is known and can be applied to the cost of potatoes.
Processing Items:
Total cost of potatoes and bag per 25kg
Total cost of potatoes and bag per 25kg
Total cost -
Total cost Total cost of potatoe
s and bag
per 25kg
Page 5
of 11
Programming Fundamentals: IPO Charts
of potatoes and bag per 25kg
Total cost of potatoes and bag per 25kg
-
Total cost of potatoes and bag per 25kg
Total cost of potatoes and bag per 25kg
Algorithm
-
Enter PricePerKgOfPotatoes
;
-
Enter costOfPlasticBag;
-
Enter amountOfPotatoesPurchased;
-
Calculate totalCost by multiplying Page 6
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
Programming Fundamentals: IPO Charts
PricePerKgOfPotatoes
by amountofPotatoesPurchased;
-
Display totalCost
Sample Calculation / Desk-Checking Table
Quantity of potatoes [input]
Cost of potatoes [input]
Cost of potatoes [output]
25 kg
11 ¢ (per kg)
275 ¢
Sample Calculation / Desk-Checking Table
Cost of potatoes [input]
Cost of a plastic bag
[input]
Total cost [output]
275 ¢
5 ¢
280
¢
6.
SOLVABLE
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.]
IPO Chart
Input
Processing
Output
-
earringsPrice
-
johnsBudget
Assumptions: Processing Items:
-
numberOfEarrings John can purchase
Algorithm
-
Calculate numberOfEarrings by dividing johnsBudget earringsPrice;
-
Display numberOfEarrings
-
numberOfEarrings
Sample Calculation / Desk-Checking Table
Budget of John [input]
Earrings Price [input]
Number of Earrings
$125
$20
6.25 = 6 pairs of earrings
Page 7
of 11
Programming Fundamentals: IPO Charts
7.
SOLVABLE
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?
IPO Chart
Input
Processing
Output
-
perMeterCharges
-
totalMeters
-
costOfJoin
-
totalJoins
Assumptions: Processing Items:
-
plumberCharges
-
costOfJoins
Algorithm
-
Enter perMeterCharges;
-
Enter totalMeters;
-
Calculate plumberCharges by multiplying perMeterCharges by totalMeters;
-
Enter costOfJoins; -
Enter totalJoins;
-
Calculate costOfJoins by costOfJoins* totalJoins/100;
-
Calculate totalCharges by adding plumberCharges and costOfJoins;
-
Display totalCharges
-
totalCharges
Page 8
of 11
Programming Fundamentals: IPO Charts
Sample Calculation / Desk-Checking Table
Cost of Pipe [input]
Total Cost of Joins [input]
Total Charge
12 meters x $1.25 = 15
4 joins x 90 Cents = 360 Cents = $3.60
$18.6
8.
UNSOLVABLE
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?
We cannot calculate it because we do not know how many people the Halls family.
IPO Chart
Input
Processing
Output
-
numberOfRideTokens
-
costOfPolarExpressPe
rPerson
-
costOfFerrisWheelPer
Person
-
costOfHighDropPerPe
rson
Assumptions: Processing Items:
-
sumTokensRequired
-
tokensBought
Algorithm
-
Enter the number of tokens required per attraction/ride; -
Calculate sumTokensRequired by adding all the ride token costs;
-
Calculate numberOfRideTokensRe
maining by substracting tokensBought by sumTokensRequired
-
numberOfRideTokensRe
maining
Page 9
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
Programming Fundamentals: IPO Charts
9.
SOLVABLE
Isabelle’s Confectionary sells a packet of Maynard’s sour drops for 25
₵
. Each packet contains approximately 30 candies. How many packets will Sarah get if she has $3?
IPO Chart
Input
Processing
Output
-
priceOfPacket
-
totalCost
Assumptions: Processing Items:
-
number ofPackets
Algorithm
-
Enter priceOfPacket;
-
Enter totalCost;
-
Calculate totalPackets by dividing totalCost by priceOfPacket;
-
Display totalPackets
-
totalPackets
Sample Calculation / Desk-Checking Table
Sarah’s budget [input]
Cost per packet [input]
Number of Packets
$3
25₵
12
Page 10
of 11
Programming Fundamentals: IPO Charts
10.
SOLVABLE
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?
IPO Chart
Input
Processing
Output
-
towingRatePerKm
-
flatServiceFee
-
distanceToBeTowed
Assumptions: Processing Items:
-
costDistance
Algorithm
-
Enter towingRatePerKm;
-
Enter flatServiceFee;
-
Ask distanceToBeTowed;
-
Calculate totalCostofTowing by multiplying distanceToBeTowed by towingRatePerKm and adding the flatServiceFee;
-
Display totalCostOfTowing
-
totalCostOfTowing
Sample Calculation / Desk-Checking Table
Towing Cost [input]
Flat Service Fee [input]
Total Towing Cost
15km x $5.50/km = $82.5
$18
$100.5
Page 11
of 11