Week 3. Apply Discount
Problem:
-Finding the cost of a Parcel Where Price is x and Weight is y
Inputs:
-Weight
-PostageCost
Output:
-Cost To Post Parcel
Processing:
-Price x Weight (kg)
-IF PostageCost = >$100 then 10%discount
Algorithm:
Start PostageCost
Prompt user for PkgWeight
Get PkgWeight
Get Price
Verify PkgWeight, Price
PostageCost = PkgWeight * Price
IF Price = >$100
PostageCost - 10%
Display PostageCost
End
Dark Horse5992's Blog Spot of Java Programming!
A blog about my course at Cranbourne Chisholm
Tuesday, February 28, 2012
Tuesday, February 14, 2012
Week 2. Algorithm 5 Step Process
Week 2. Algorithm With Flow Charts
Problem:
-Finding the cost of a Parcel Where Price is x and Weight is y
Inputs:
-Weight
-PostageCost
Output:
-Cost To Post Parcel
Processing:
-Price x Weight (kg)
Algorithm:
Start PostageCost
Prompt user for PkgWeight
Get PkgWeight
Get Price
Verify PkgWeight, Price
PostageCost = PkgWeight * Price
Display PostageCost
End
Problem:
-Find the Estimated number of hours it will take to complete all the levels in a Video Game based on other performance from other games.
Input:
-Hours from games
-No. of Games played
Output:
-Estimated Time To Finish New Game
Processing:
-Hours Divided by No. Of Games
Algorithm:
Start
Prompt user for Hours, #Games
GetHours, #Games
Verify GetHours, #Games
AverageTime = Hours / #Games
Display AverageTime
End
Week 2: What Is An Algorithm
Week 2.
Today in class we have been asked to describe an Algorithm...so here we go:
-An Algorithm is an instance of reality that is written in the software to make a program become more effective in its purpose, which in layman's terms means "The computer does things really well"
Link to proper description: http://en.wikipedia.org/wiki/Algorithm
Today in class we have been asked to describe an Algorithm...so here we go:
-An Algorithm is an instance of reality that is written in the software to make a program become more effective in its purpose, which in layman's terms means "The computer does things really well"
Link to proper description: http://en.wikipedia.org/wiki/Algorithm
Monday, February 13, 2012
Week 1
Week 1.
Well so far it has been quite productive starting a blog and making it look interesting, makes me feel like we are becoming DEVELOPERS!
Subscribe to:
Comments (Atom)

