Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

POS/408 Version 6 .NET I- All Individuals

uetian_cute
uetian_cute 


Individual Home Utility Auditing Program Design, implement, test, and debug a Visual Basic® program to create a simple home utility auditing program. The user should be able to do the following: • Enter the cost per kilowatt-hour. • Select a home appliance from a list of home appliances. • Enter the power needed in kilowatts (kW) for the selected appliance. • Enter the number of hours used per day for the selected appliance. The program should do the following: • Validate that the data entered has the correct format and is within a reasonable range. • Calculate and display the cost for operating a home appliance as soon as the data is entered. Design a GUI for the program that will be intuitive for a novice user. Write the code for the program and test the results. Individual Enhanced Home Utility Auditing Program Design, implement, test, and debug a Visual Basic® program to create an enhanced home utility auditing program based on Week Two. The user should be able to do the following: • Enter the cost per kilowatt-hour. • Select from a list of home appliances which includes a washer, among other appliances. • Enter the power needed in kilowatts (kW) for the selected appliance. • Enter the number of hours used per day for the selected appliance. • If the washer is selected, enter both the number of gallons of water used by the washer per hour and the cost per gallon. The program should do the following: • Validate that the data entered has the correct format, and is within a reasonable range. • Calculate and display the cost for operating a home appliance as soon as the data is entered. • Create a listing area to display each of the following for each appliance entered: o Home appliance o Number of hours per day o Cost o Display and update the total cost of all appliances, as soon as a new entry is added to the listing area. Write the code for the program and test the results. Individual Data Structures in a Visual Basic® Program Design, implement, test, and debug a Visual Basic® program to create an enhanced home utility auditing program based on Week Three. The user should be able to do the following: • Export the data in the listing area to an external text file. • Change default power ratings of a selected appliance. The program should do the following: • Use arrays or structures where applicable. • Read the default power rating for appliances from an external text file. Write the code for the program and test the results. Attachments
Tags
vb
Clarifications

Answers

POS/408 Version 6 .NET I- All Individuals

uetian_cute
uetian_cute 



Full code.Inbox me for further assistance. Attachments
Electric Application.zip (257 K) Download





























































Preview
<configuration> <startup>

Preview
CurrentUICulture property for all resource lookups using this strongly typed resource class. </summary> </member><member name="T:WindowsApplication1.My.Resources.Resources"> <summary>

Preview
14 Me.ListView1.UseCompatibleStateImageBehavior = False Me.ListView1.View = System.Windows.Forms.View.Details ' 'ColumnHeader1 ' Me.ColumnHeader1.Text = "Home Appliance" Me.ColumnHeader1.Width = 115 ' 'ColumnHeader2 ' Me.ColumnHeader2.Text = "No. of Hr Per day" Me.ColumnHeader2.Width = 109 ' 'ColumnHeader3 ' Me.ColumnHeader3.Text

Preview
ElseIf ComboBox1.Text.Contains("COFFIE MAKER") Then result2 = ccost * cpower * chours Label6.Text = "$" + result2.ToString Label6.Visible = "True" ElseIf ComboBox1.Text.Contains("HEATER") Then result3 = ccost * cpower * chours Label6.Text = "$" + result3.ToString Label6.Visible = "True" ElseIf

Preview
not modify it directly. To make changes, ' or if you encounter build errors in this file, go to the Project Designer ' (go to Project Properties or double-click the My Project node in ' Solution Explorer), and make changes on the Application tab.

Preview
<Assembly: AssemblyTitle("WindowsApplication1")> <Assembly: AssemblyDescription("")> <Assembly: AssemblyCompany("HP")> <Assembly: AssemblyProduct("WindowsApplication1")> <Assembly: AssemblyCopyright("Copyright © HP 2013")> <Assembly: AssemblyTrademark("")> <Assembly: ComVisible(False)> 'The following GUID is for the ID of the typelib if this project is exposed to COM <Assembly: Guid("c099be4e-ea60-4789-8c5a-2abe0a8ef63f")> ' Version

Preview
member, edit your .ResX file then rerun ResGen 'with the /str option, or rebuild your VS project. '''<summary> ''' A strongly-typed resource class, for looking up localized strings, etc. '''</summary> <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _ Global.Microsoft.VisualBasic

Preview
_ Partial Friend NotInheritable Class MySettings Inherits Global.System.Configuration.ApplicationSettingsBase Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings) #Region "My.Settings Auto-Save Functionality" #If _MyType = "WindowsForms" Then Private Shared addedHandler As Boolean Private Shared addedHandlerLockObject As New Object <Global.System.Diagnostics.DebuggerNonUserCodeAttr

Preview
Studio 2010\Projects\WindowsApplication2\WindowsApplication1\obj\x86\Debug\WindowsApplication1.pdb C:\Users\USI\Documents\Visual Studio 2010\Projects\WindowsApplication2\WindowsApplication1\bin\Debug\WindowsApplication1.exe C:\Users\USI\Documents\Visual Studio 2010\Projects\WindowsApplication2\WindowsApplication1\bin\Debug\WindowsApplication1.pdb C:\Users\USI\Documents\Visual Studio 2010\Projects\WindowsApplication2\WindowsApplication1\bin\Debug\WindowsApplication1.xml C:\Users\USI\Documents

Preview
<summary> Returns the cached ResourceManager instance used by this class. </summary> </member><member name="P:WindowsApplication1.My.Resources.Resources.Culture"> <summary> Overrides the

Preview
?> <configuration> <startup>

Preview
COFFIE MAKER

Preview
this class. </summary> </member><member name="P:WindowsApplication1.My.Resources.Resources.Culture"> <summary> Overrides the current thread's CurrentUICulture property for all resource lookups

Preview
= 5 ' 'Label4 ' Me.Label4.AutoSize = True Me.Label4.Font = New System.Drawing.Font("Cambria", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label4.Location = New System.Drawing.Point(80, 312) Me.Label4.Name = "Label4" Me.Label4.Size = New System.Drawing.Size(137, 19) Me.Label4.TabIndex = 6 Me.Label4.Text = "No. of hours used"

Preview
cost" Dim SaveFile As New SaveFileDialog SaveFile.FileName = "" SaveFile.Filter = "Text Files (*.txt)|*.txt" SaveFile.Title = "Save" SaveFile.ShowDialog() Try Dim Write As New System.IO.StreamWriter(SaveFile.FileName) Write.WriteLine(msg) For Each lvi In ListView1.Items msg = lvi.SubItems(0).Text.ToString + Space(23) + lvi.SubItems(1).Text.ToString + Space(23)

Preview
(go to Project Properties or double-click the My Project node in ' Solution Explorer), and make changes on the Application tab. ' Partial Friend Class MyApplication <Global.System.Diagnostics.DebuggerStepThroughAttribute()> _ Public Sub New() MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) Me.IsSingleInstance = false Me.EnableVisualStyles = true

Preview
' set of attributes. Change these attribute values to modify the information ' associated with an assembly. ' Review the values of the assembly attributes <Assembly: AssemblyTitle("WindowsApplication1")> <Assembly: AssemblyDescription("")> <Assembly: AssemblyCompany("HP")> <Assembly: AssemblyProduct("WindowsApplication1")> <Assembly: AssemblyCopyright("Copyright © HP 2013")> <Assembly: AssemblyTrademark("")>

Preview
Property '''<summary> ''' Overrides the current thread's CurrentUICulture property for all ''' resource lookups using this strongly typed resource class. '''</summary> <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ Friend Property Culture() As Global.System.Globalization.CultureInfo Get Return resourceCulture End Get Set(ByVal value As Global.System.Globalization.CultureInfo) resourceCulture

Preview
addedHandler = True End If End SyncLock End If #End If Return defaultInstance End Get End Property End Class End Namespace Namespace My <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _ Friend Module MySettingsProperty <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _

Preview
2010\Projects\WindowsApplication2\WindowsApplication1\obj\x86\Debug\GenerateResource.read.1.tlog C:\Users\USI\Documents\Visual Studio 2010\Projects\WindowsApplication2\WindowsApplication1\obj\x86\Debug\GenerateResource.write.1.tlog C:\Users\USI\Documents\Visual Studio 2010\Projects\WindowsApplication3\WindowsApplication1\obj\x86\Debug\WindowsApplication1.exe C:\Users\USI\Documents\Visual Studio 2010\Projects\WindowsApplication3\WindowsApplication1\obj\x86\Debug\WindowsApplication1.xml C:\Use

Preview
resource lookups using this strongly typed resource class. </summary> </member><member name="T:WindowsApplication1.My.Resources.Resources"> <summary> A strongly-typed resource class,

Preview
<?xml version="1.0" encoding="utf-8" ?>

Preview
Returns the cached ResourceManager instance used by this class. </summary> </member><member name="P:WindowsApplication1.My.Resources.Resources.Culture"> <summary> Overrides the current thread's

Preview
= 13 Me.Label10.Text = "Please Enter No. of Hours till 1 Month for Selected Appliance" ' 'Form1 ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.BackColor = System.Drawing.SystemColors.ActiveCaption Me.ClientSize = New System.Drawing.Size(754, 471) Me.Controls.Add(Me.Label10) Me.Controls.Add(Me.Label9) Me.Controls.Add(Me.Label8) Me.Controls.Add(Me.Label7)

Preview
TextBox1.KeyPress If InStr(TextBox1.Text, ".") And e.KeyChar = "." Then e.Handled = True If Char.IsDigit(e.KeyChar) = False And Char.IsControl(e.KeyChar) = False Then If e.KeyChar <> "." Then e.Handled = True End If If (TextBox1.Text.Length >= 9) Then MsgBox("Length for cost is too large ")

Preview
by a tool. ' Runtime Version:4.0.30319.296 ' ' Changes to this file may cause incorrect behavior and will be lost if ' the code is regenerated. ' </auto-generated> '------------------------------------------------------------------------------ Option Strict On Option Explicit On Namespace My 'NOTE: This file is auto-generated; do

Preview
Imports System.Reflection Imports System.Runtime.InteropServices ' General Information about an assembly is controlled through the following ' set of attributes. Change these attribute values to modify the information ' associated with an assembly. ' Review the values of the assembly attributes

Preview
Property '''<summary> ''' Overrides the current thread's CurrentUICulture property for all ''' resource lookups using this strongly typed resource class. '''</summary> <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ Friend Property Culture() As Global.System.Globalization.CultureInfo Get Return resourceCulture End Get Set(ByVal value As Global.System.Globalization.CultureInfo) resourceCulture

Preview
addedHandler = True End If End SyncLock End If #End If Return defaultInstance End Get End Property End Class End Namespace Namespace My <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _ Friend Module MySettingsProperty <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _

Preview
c:\users\usi\documents\visual studio 2010\Projects\WindowsApplication1\WindowsApplication1\obj\x86\Debug\WindowsApplication1.Form1.resources c:\users\usi\documents\visual studio 2010\Projects\WindowsApplication1\WindowsApplication1\obj\x86\Debug\WindowsApplication1.Resources.resources c:\users\usi\documents\visual studio 2010\Projects\WindowsApplication1\WindowsApplication1\obj\x86\Debug\GenerateResource.read.1.tlog c:\users\usi\documents\visual

Preview
by this class. </summary> </member><member name="P:WindowsApplication1.My.Resources.Resources.Culture"> <summary> Overrides the current thread's CurrentUICulture property for all resource

Screenshots
Purchase Answer