User Tools

Site Tools


start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
start [2011/05/10 11:23]
kel
start [2013/04/26 07:26]
taochang
Line 1: Line 1:
-Multiple Choices Algorithm ​by Mark Kelly+Our home is our castle, but that doesn'​t mean that we should be selfish about the world outside our door. It is up to us to take care of our environment,​ and that can start in our home. Read on to find some ideas which will help you implement green energy solutions within your home.[[http://​bookmarkz.info/​story.php?​title=ratings-and-reviews-with-regards-to-comflor|Corus Comflor 225]]
  
-Another in the Fun with Algorithms series+Turn your water heater temperature down. Setting ​the temperature at 120 degrees will still allow steaming hot water to come out of your faucets and showers, but you will save on your energy bills. According to research, for each 10 degrees you lower your water heater thermostat, you can save about three to five percent on energy costs.
  
-Stuff Pty Ltd sells stuffThe unit cost of the stuff varies according ​to the quantity orderedCustomers ​can order any number ​of items Stuff Pty Ltd use this scale: +When shopping for appliances, computers or other electronic items, look for products that wear an Energy Star badgeTo earn the right to display ​the Energy Star logo, products must meet certain energy-efficiency criteriaThere are different tiers of efficiency as well, which can translate into additional energy savings over the lifetime ​of the product.
-1-9 items = $100 each +
-10-19 items = $97 each +
-20-29 items = $92 each +
-30-39 items = $88 each +
-40-49 items = $85 each +
-50 or more = $82 each+
  
-Task: using pseudocode, create an algorithm to calculate the unit cost of the items at different quantitiesThen calculate a total cost with 10% GST added. ​  +Windmills are capable ​of creating electrical energy without polluting anythingPurchasing your own windmill can be expensive, and there may be restrictions on putting one up where you live. If you can install your own windmill, you will be able to sell excess electricity to your local power company and recoup some of your costs.
-Convert the pseudocode into code. +
-Create test data to fully test all aspects of the solution’s functionality. +
-Note:  Input data need not be validated, and the interface ​can be very basic. +
-  +
-Sample VB2010 solution +
-Public Class Form1 +
-    ' Multiple options algorithm +
-    ' by M.Kelly 10 May 2011 +
-    ' Version 1.+
-    ' To Do Next: nil+
  
-    Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click +Take an active part in your local community if you find that green energies are a common concernYou will learn more about alternative energy solutions ​and get a chance to convince local authorities to adopt green energies or offer tax incentives and other advantages.
-        Dim Qty As Integer = CInt(txtQty.Text) +
-        Dim inctax As Single = 0  '​declare ​and initialise in one hit +
-        ' deliberately lacks validation of qty +
-        Select Case Qty +
-            Case 1 To 9 +
-                lblCostper.Text = 100 +
-            Case 10 To 19 +
-                lblCostper.Text = 97 +
-            Case 20 To 29 +
-                lblCostper.Text = 92 +
-            Case 30 To 39 +
-                lblCostper.Text = 88 +
-            Case 40 To 49 +
-                lblCostper.Text = 85 +
-            Case Else +
-                lblCostper.Text = 82 +
-        End Select+
  
-        lblSubtotal.Text = Qty * CInt(lblCostper.Text) ​ 'using labels ​for output+Reduce energy in your home by checking the amount of insulation in your attic, crawl spaces, basement walls, floors, ceilings, and exteriorLook for any cracks or holes in and around walls, windows, ceilings, doors, light and plumbing fixtures, switches, and other electrical outlets which can leak air in and out of your home.
  
-        ​'inctax ​is here as a sample ​use of variables for calculations and  +[[http://​pawn.tom.ru/​wiki/​index.php?​title=Small_Steps_To_Living_A_More_Sustainable_Life|Comflor Alistage]] Turn off appliances when you aren't using them. This will eliminate much of the unneeded heat that is generated in your home. Make sure to also unplug everything when it is not in use; this will lower your energy costs because appliances still pull a bit of power from the outlet even if the appliance is off.
-        'using labels just for display purposes. +
-        'Using variables mean less converting back & forth between text and number.+
  
-        inctax = CInt(lblSubtotal.Text) * 1.1           '​add GST   +Contact your current energy provider and see if they offer an option for you to use renewable-energy sourcesMany providers harness renewable energy through solar or wind power and therefore, have this option available for their clientsHoweveryou should keep in mind that this may cost a little bit extra.
-        'The final total is nicely formatted currency just to show how it's done. +
-        'Nice formatting is not needed in U3O2. +
-        lblIncTax.Text = Format(inctax"​$#,####​.#0") +
-    End Sub+
  
-     +A significant green energy initiative is to is having a professional do a home energy auditThese professionals will assess your home and find areas where you can save money and conserve energySome power companies even offer this service for free to help reduce the impact of their customers on their energy supply.
-    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click +
-        End +
-    End Sub+
  
-End Class+Try heating your home with a wood pellet stove. The pellets burned in a pellet stove are made of highly compact sawdust. They burn so cleanly than they are not required to get an EPA certification for emissions. Be aware, however, that the cost of the pellets may be high in some areas.
  
-+Clean the filters in your air conditioner and dryer. Clean filters mean that your appliances use less energy, and less traditional energy means greener energy. Schedule a time to clean the filters so you don't forget. You might, for example, clean the filter for the dryer and air conditioner once every week.
  
-Sample output +[[http://​wiki.goodtogreatfoss.org/​index.php?​title=Why_Going_With_Green_Energy?​_It_Will_Save_Your_Family_A_Lot_Of_Money|Corus Comflor 225]] Now that you've read a little about how to use green energyyou should have a few ideas in your head to make your home more green. Use the ideas in this article to get you started, and to give you concrete actions you can take today to make sure you are living green.
-Perhaps more decorative ​that it needs to be for U3O2but I can’t abide messy interfaces. +
-  +
- +
- +
- +
----------------------------------------------------------------------------------------------+