diff --git a/.project b/.project new file mode 100644 index 0000000..5bb1583 --- /dev/null +++ b/.project @@ -0,0 +1,11 @@ + + + java_Projects + + + + + + + + diff --git a/Book2.jar b/Book2.jar deleted file mode 100644 index eb190e3..0000000 Binary files a/Book2.jar and /dev/null differ diff --git a/CarDealer.jar b/CarDealer.jar deleted file mode 100644 index 7dd0604..0000000 Binary files a/CarDealer.jar and /dev/null differ diff --git a/Car_Dealer_Validation_Spec.docx b/Car_Dealer_Validation_Spec.docx deleted file mode 100644 index 0c8b128..0000000 Binary files a/Car_Dealer_Validation_Spec.docx and /dev/null differ diff --git a/Golf.exe b/Golf.exe deleted file mode 100644 index c4039cf..0000000 Binary files a/Golf.exe and /dev/null differ diff --git a/Hotel_Reservation.jar b/Hotel_Reservation.jar deleted file mode 100644 index de42baf..0000000 Binary files a/Hotel_Reservation.jar and /dev/null differ diff --git a/Hotel_validation_Spec.docx b/Hotel_validation_Spec.docx deleted file mode 100644 index a76f24b..0000000 Binary files a/Hotel_validation_Spec.docx and /dev/null differ diff --git a/Member.exe b/Member.exe deleted file mode 100644 index 4954db4..0000000 Binary files a/Member.exe and /dev/null differ diff --git a/Photo.exe b/Photo.exe deleted file mode 100644 index 01f1114..0000000 Binary files a/Photo.exe and /dev/null differ diff --git a/StudentEntry.jar b/StudentEntry.jar deleted file mode 100644 index 54a2853..0000000 Binary files a/StudentEntry.jar and /dev/null differ diff --git a/Student_Entry_Validation_Spec.docx b/Student_Entry_Validation_Spec.docx deleted file mode 100644 index 793dd6e..0000000 Binary files a/Student_Entry_Validation_Spec.docx and /dev/null differ diff --git a/WageCalculator.jar b/WageCalculator.jar deleted file mode 100644 index 7544fd9..0000000 Binary files a/WageCalculator.jar and /dev/null differ diff --git a/WageCalulator_Validation_Spec.docx b/WageCalulator_Validation_Spec.docx deleted file mode 100644 index 77b5ace..0000000 Binary files a/WageCalulator_Validation_Spec.docx and /dev/null differ diff --git a/_config.yml b/_config.yml deleted file mode 100644 index c419263..0000000 --- a/_config.yml +++ /dev/null @@ -1 +0,0 @@ -theme: jekyll-theme-cayman \ No newline at end of file diff --git a/c# car hire/App.config b/c# car hire/App.config deleted file mode 100644 index d740e88..0000000 --- a/c# car hire/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/c# car hire/MyCarHire.csproj b/c# car hire/MyCarHire.csproj deleted file mode 100644 index 6597c83..0000000 --- a/c# car hire/MyCarHire.csproj +++ /dev/null @@ -1,90 +0,0 @@ - - - - - Debug - AnyCPU - {15B97C6D-C535-4B44-8AA8-084D85D0738A} - WinExe - Properties - mock - mock - v4.5.2 - 512 - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - Form - - - frmEstimate.cs - - - - - frmEstimate.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - - - - \ No newline at end of file diff --git a/c# car hire/Program.cs b/c# car hire/Program.cs deleted file mode 100644 index 3e2a33d..0000000 --- a/c# car hire/Program.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace mock { - static class Program { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new frmEstimate()); - } - } - } diff --git a/c# car hire/Properties/AssemblyInfo.cs b/c# car hire/Properties/AssemblyInfo.cs deleted file mode 100644 index 6ffb3d7..0000000 --- a/c# car hire/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using 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. -[assembly: AssemblyTitle("mock")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("mock")] -[assembly: AssemblyCopyright("Copyright © Microsoft 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("15b97c6d-c535-4b44-8aa8-084d85d0738a")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/c# car hire/Properties/Resources.Designer.cs b/c# car hire/Properties/Resources.Designer.cs deleted file mode 100644 index 352d09e..0000000 --- a/c# car hire/Properties/Resources.Designer.cs +++ /dev/null @@ -1,62 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace mock.Properties { - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if((resourceMan == null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("mock.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - } - } diff --git a/c# car hire/Properties/Resources.resx b/c# car hire/Properties/Resources.resx deleted file mode 100644 index ffecec8..0000000 --- a/c# car hire/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/c# car hire/Properties/Settings.Designer.cs b/c# car hire/Properties/Settings.Designer.cs deleted file mode 100644 index 6dc8839..0000000 --- a/c# car hire/Properties/Settings.Designer.cs +++ /dev/null @@ -1,26 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace mock.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default { - get { - return defaultInstance; - } - } - } - } diff --git a/c# car hire/Properties/Settings.settings b/c# car hire/Properties/Settings.settings deleted file mode 100644 index abf36c5..0000000 --- a/c# car hire/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/c# car hire/bin/Debug/mock.exe b/c# car hire/bin/Debug/mock.exe deleted file mode 100644 index 0daf1e4..0000000 Binary files a/c# car hire/bin/Debug/mock.exe and /dev/null differ diff --git a/c# car hire/bin/Debug/mock.exe.config b/c# car hire/bin/Debug/mock.exe.config deleted file mode 100644 index d740e88..0000000 --- a/c# car hire/bin/Debug/mock.exe.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/c# car hire/bin/Debug/mock.pdb b/c# car hire/bin/Debug/mock.pdb deleted file mode 100644 index 17e4871..0000000 Binary files a/c# car hire/bin/Debug/mock.pdb and /dev/null differ diff --git a/c# car hire/bin/Debug/mock.vshost.exe b/c# car hire/bin/Debug/mock.vshost.exe deleted file mode 100644 index 681ab77..0000000 Binary files a/c# car hire/bin/Debug/mock.vshost.exe and /dev/null differ diff --git a/c# car hire/bin/Debug/mock.vshost.exe.config b/c# car hire/bin/Debug/mock.vshost.exe.config deleted file mode 100644 index d740e88..0000000 --- a/c# car hire/bin/Debug/mock.vshost.exe.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/c# car hire/bin/Release/mock.exe b/c# car hire/bin/Release/mock.exe deleted file mode 100644 index 7e3f8c3..0000000 Binary files a/c# car hire/bin/Release/mock.exe and /dev/null differ diff --git a/c# car hire/bin/Release/mock.exe.config b/c# car hire/bin/Release/mock.exe.config deleted file mode 100644 index d740e88..0000000 --- a/c# car hire/bin/Release/mock.exe.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/c# car hire/bin/Release/mock.pdb b/c# car hire/bin/Release/mock.pdb deleted file mode 100644 index a1081b3..0000000 Binary files a/c# car hire/bin/Release/mock.pdb and /dev/null differ diff --git a/c# car hire/bin/Release/mock.vshost.exe b/c# car hire/bin/Release/mock.vshost.exe deleted file mode 100644 index 681ab77..0000000 Binary files a/c# car hire/bin/Release/mock.vshost.exe and /dev/null differ diff --git a/c# car hire/bin/Release/mock.vshost.exe.config b/c# car hire/bin/Release/mock.vshost.exe.config deleted file mode 100644 index d740e88..0000000 --- a/c# car hire/bin/Release/mock.vshost.exe.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/c# car hire/bin/Release/mock.vshost.exe.manifest b/c# car hire/bin/Release/mock.vshost.exe.manifest deleted file mode 100644 index f96b1d6..0000000 --- a/c# car hire/bin/Release/mock.vshost.exe.manifest +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/c# car hire/frmEstimate.Designer.cs b/c# car hire/frmEstimate.Designer.cs deleted file mode 100644 index 7b98b1b..0000000 --- a/c# car hire/frmEstimate.Designer.cs +++ /dev/null @@ -1,409 +0,0 @@ -namespace mock { - partial class frmEstimate { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) { - if(disposing && (components != null)) { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() { - this.grpCarMake = new System.Windows.Forms.GroupBox(); - this.radAudi = new System.Windows.Forms.RadioButton(); - this.radBmw = new System.Windows.Forms.RadioButton(); - this.radToyota = new System.Windows.Forms.RadioButton(); - this.radFord = new System.Windows.Forms.RadioButton(); - this.tbFord = new System.Windows.Forms.TextBox(); - this.tbToyota = new System.Windows.Forms.TextBox(); - this.tbBmw = new System.Windows.Forms.TextBox(); - this.tbAudi = new System.Windows.Forms.TextBox(); - this.grpAssessories = new System.Windows.Forms.GroupBox(); - this.radExtra = new System.Windows.Forms.RadioButton(); - this.radStandard = new System.Windows.Forms.RadioButton(); - this.menuStrip1 = new System.Windows.Forms.MenuStrip(); - this.programToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.lblDays = new System.Windows.Forms.Label(); - this.lblExVat = new System.Windows.Forms.Label(); - this.lblIncVat = new System.Windows.Forms.Label(); - this.tbDays = new System.Windows.Forms.TextBox(); - this.tbExVat = new System.Windows.Forms.TextBox(); - this.tbIncVat = new System.Windows.Forms.TextBox(); - this.cmdCalculate = new System.Windows.Forms.Button(); - this.cmdClear = new System.Windows.Forms.Button(); - this.cmdExit = new System.Windows.Forms.Button(); - this.cmdGo = new System.Windows.Forms.Button(); - this.lblMain = new System.Windows.Forms.Label(); - this.lblCostPerDay = new System.Windows.Forms.Label(); - this.lblOutput = new System.Windows.Forms.Label(); - this.grpCarMake.SuspendLayout(); - this.grpAssessories.SuspendLayout(); - this.menuStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // grpCarMake - // - this.grpCarMake.Controls.Add(this.radAudi); - this.grpCarMake.Controls.Add(this.radBmw); - this.grpCarMake.Controls.Add(this.radToyota); - this.grpCarMake.Controls.Add(this.radFord); - this.grpCarMake.Location = new System.Drawing.Point(29, 43); - this.grpCarMake.Name = "grpCarMake"; - this.grpCarMake.Size = new System.Drawing.Size(102, 133); - this.grpCarMake.TabIndex = 0; - this.grpCarMake.TabStop = false; - this.grpCarMake.Text = "Car Make"; - // - // radAudi - // - this.radAudi.AutoSize = true; - this.radAudi.Location = new System.Drawing.Point(23, 98); - this.radAudi.Name = "radAudi"; - this.radAudi.Size = new System.Drawing.Size(46, 17); - this.radAudi.TabIndex = 3; - this.radAudi.TabStop = true; - this.radAudi.Text = "Audi"; - this.radAudi.UseVisualStyleBackColor = true; - this.radAudi.CheckedChanged += new System.EventHandler(this.radAudi_CheckedChanged); - // - // radBmw - // - this.radBmw.AutoSize = true; - this.radBmw.Location = new System.Drawing.Point(23, 75); - this.radBmw.Name = "radBmw"; - this.radBmw.Size = new System.Drawing.Size(52, 17); - this.radBmw.TabIndex = 2; - this.radBmw.TabStop = true; - this.radBmw.Text = "BMW"; - this.radBmw.UseVisualStyleBackColor = true; - this.radBmw.CheckedChanged += new System.EventHandler(this.radBmw_CheckedChanged); - // - // radToyota - // - this.radToyota.AutoSize = true; - this.radToyota.Location = new System.Drawing.Point(23, 52); - this.radToyota.Name = "radToyota"; - this.radToyota.Size = new System.Drawing.Size(58, 17); - this.radToyota.TabIndex = 1; - this.radToyota.TabStop = true; - this.radToyota.Text = "Toyota"; - this.radToyota.UseVisualStyleBackColor = true; - this.radToyota.CheckedChanged += new System.EventHandler(this.radToyota_CheckedChanged); - // - // radFord - // - this.radFord.AutoSize = true; - this.radFord.Location = new System.Drawing.Point(23, 26); - this.radFord.Name = "radFord"; - this.radFord.Size = new System.Drawing.Size(46, 17); - this.radFord.TabIndex = 0; - this.radFord.TabStop = true; - this.radFord.Text = "Ford"; - this.radFord.UseVisualStyleBackColor = true; - this.radFord.CheckedChanged += new System.EventHandler(this.radFord_CheckedChanged); - // - // tbFord - // - this.tbFord.Enabled = false; - this.tbFord.Location = new System.Drawing.Point(165, 63); - this.tbFord.Name = "tbFord"; - this.tbFord.Size = new System.Drawing.Size(100, 20); - this.tbFord.TabIndex = 1; - this.tbFord.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - // - // tbToyota - // - this.tbToyota.Enabled = false; - this.tbToyota.Location = new System.Drawing.Point(165, 89); - this.tbToyota.Name = "tbToyota"; - this.tbToyota.Size = new System.Drawing.Size(100, 20); - this.tbToyota.TabIndex = 2; - this.tbToyota.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - // - // tbBmw - // - this.tbBmw.Enabled = false; - this.tbBmw.Location = new System.Drawing.Point(165, 115); - this.tbBmw.Name = "tbBmw"; - this.tbBmw.Size = new System.Drawing.Size(100, 20); - this.tbBmw.TabIndex = 3; - this.tbBmw.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - // - // tbAudi - // - this.tbAudi.Enabled = false; - this.tbAudi.Location = new System.Drawing.Point(165, 141); - this.tbAudi.Name = "tbAudi"; - this.tbAudi.Size = new System.Drawing.Size(100, 20); - this.tbAudi.TabIndex = 4; - this.tbAudi.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - // - // grpAssessories - // - this.grpAssessories.Controls.Add(this.radExtra); - this.grpAssessories.Controls.Add(this.radStandard); - this.grpAssessories.Location = new System.Drawing.Point(316, 47); - this.grpAssessories.Name = "grpAssessories"; - this.grpAssessories.Size = new System.Drawing.Size(94, 100); - this.grpAssessories.TabIndex = 5; - this.grpAssessories.TabStop = false; - this.grpAssessories.Text = "Assessories"; - // - // radExtra - // - this.radExtra.AutoSize = true; - this.radExtra.Location = new System.Drawing.Point(17, 48); - this.radExtra.Name = "radExtra"; - this.radExtra.Size = new System.Drawing.Size(49, 17); - this.radExtra.TabIndex = 1; - this.radExtra.TabStop = true; - this.radExtra.Text = "Extra"; - this.radExtra.UseVisualStyleBackColor = true; - this.radExtra.CheckedChanged += new System.EventHandler(this.radExtra_CheckedChanged); - // - // radStandard - // - this.radStandard.AutoSize = true; - this.radStandard.Location = new System.Drawing.Point(17, 22); - this.radStandard.Name = "radStandard"; - this.radStandard.Size = new System.Drawing.Size(68, 17); - this.radStandard.TabIndex = 0; - this.radStandard.TabStop = true; - this.radStandard.Text = "Standard"; - this.radStandard.UseVisualStyleBackColor = true; - this.radStandard.CheckedChanged += new System.EventHandler(this.radStandard_CheckedChanged); - // - // menuStrip1 - // - this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.programToolStripMenuItem}); - this.menuStrip1.Location = new System.Drawing.Point(0, 0); - this.menuStrip1.Name = "menuStrip1"; - this.menuStrip1.Size = new System.Drawing.Size(422, 24); - this.menuStrip1.TabIndex = 6; - this.menuStrip1.Text = "menuStrip1"; - // - // programToolStripMenuItem - // - this.programToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.exitToolStripMenuItem}); - this.programToolStripMenuItem.Name = "programToolStripMenuItem"; - this.programToolStripMenuItem.Size = new System.Drawing.Size(65, 20); - this.programToolStripMenuItem.Text = "Program"; - // - // exitToolStripMenuItem - // - this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; - this.exitToolStripMenuItem.Size = new System.Drawing.Size(92, 22); - this.exitToolStripMenuItem.Text = "Exit"; - this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); - // - // lblDays - // - this.lblDays.AutoSize = true; - this.lblDays.Location = new System.Drawing.Point(92, 197); - this.lblDays.Name = "lblDays"; - this.lblDays.Size = new System.Drawing.Size(83, 13); - this.lblDays.TabIndex = 7; - this.lblDays.Text = "Number of Days"; - // - // lblExVat - // - this.lblExVat.AutoSize = true; - this.lblExVat.Location = new System.Drawing.Point(79, 227); - this.lblExVat.Name = "lblExVat"; - this.lblExVat.Size = new System.Drawing.Size(96, 13); - this.lblExVat.TabIndex = 8; - this.lblExVat.Text = "Cost Excluding Vat"; - // - // lblIncVat - // - this.lblIncVat.AutoSize = true; - this.lblIncVat.Location = new System.Drawing.Point(82, 261); - this.lblIncVat.Name = "lblIncVat"; - this.lblIncVat.Size = new System.Drawing.Size(93, 13); - this.lblIncVat.TabIndex = 9; - this.lblIncVat.Text = "Cost Including Vat"; - // - // tbDays - // - this.tbDays.Location = new System.Drawing.Point(193, 194); - this.tbDays.Name = "tbDays"; - this.tbDays.Size = new System.Drawing.Size(100, 20); - this.tbDays.TabIndex = 10; - this.tbDays.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - // - // tbExVat - // - this.tbExVat.Enabled = false; - this.tbExVat.Location = new System.Drawing.Point(193, 227); - this.tbExVat.Name = "tbExVat"; - this.tbExVat.Size = new System.Drawing.Size(100, 20); - this.tbExVat.TabIndex = 11; - this.tbExVat.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - // - // tbIncVat - // - this.tbIncVat.Enabled = false; - this.tbIncVat.Location = new System.Drawing.Point(196, 258); - this.tbIncVat.Name = "tbIncVat"; - this.tbIncVat.Size = new System.Drawing.Size(100, 20); - this.tbIncVat.TabIndex = 12; - this.tbIncVat.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - // - // cmdCalculate - // - this.cmdCalculate.Location = new System.Drawing.Point(343, 197); - this.cmdCalculate.Name = "cmdCalculate"; - this.cmdCalculate.Size = new System.Drawing.Size(75, 23); - this.cmdCalculate.TabIndex = 13; - this.cmdCalculate.Text = "Calculate"; - this.cmdCalculate.UseVisualStyleBackColor = true; - this.cmdCalculate.Click += new System.EventHandler(this.cmdCalculate_Click); - // - // cmdClear - // - this.cmdClear.Location = new System.Drawing.Point(343, 227); - this.cmdClear.Name = "cmdClear"; - this.cmdClear.Size = new System.Drawing.Size(75, 23); - this.cmdClear.TabIndex = 14; - this.cmdClear.Text = "Clear"; - this.cmdClear.UseVisualStyleBackColor = true; - this.cmdClear.Click += new System.EventHandler(this.cmdClear_Click); - // - // cmdExit - // - this.cmdExit.Location = new System.Drawing.Point(343, 307); - this.cmdExit.Name = "cmdExit"; - this.cmdExit.Size = new System.Drawing.Size(75, 23); - this.cmdExit.TabIndex = 15; - this.cmdExit.Text = "Exit"; - this.cmdExit.UseVisualStyleBackColor = true; - this.cmdExit.Click += new System.EventHandler(this.cmdExit_Click); - // - // cmdGo - // - this.cmdGo.Location = new System.Drawing.Point(196, 307); - this.cmdGo.Name = "cmdGo"; - this.cmdGo.Size = new System.Drawing.Size(75, 23); - this.cmdGo.TabIndex = 16; - this.cmdGo.Text = "&Go"; - this.cmdGo.UseVisualStyleBackColor = true; - this.cmdGo.Click += new System.EventHandler(this.cmdGo_Click); - // - // lblMain - // - this.lblMain.AutoSize = true; - this.lblMain.Font = new System.Drawing.Font("Times New Roman", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblMain.ForeColor = System.Drawing.Color.Red; - this.lblMain.Location = new System.Drawing.Point(139, 9); - this.lblMain.Name = "lblMain"; - this.lblMain.Size = new System.Drawing.Size(106, 26); - this.lblMain.TabIndex = 17; - this.lblMain.Text = "Car Hire"; - // - // lblCostPerDay - // - this.lblCostPerDay.AutoSize = true; - this.lblCostPerDay.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.lblCostPerDay.Location = new System.Drawing.Point(169, 43); - this.lblCostPerDay.Name = "lblCostPerDay"; - this.lblCostPerDay.Size = new System.Drawing.Size(69, 13); - this.lblCostPerDay.TabIndex = 18; - this.lblCostPerDay.Text = "Cost Per Day"; - // - // lblOutput - // - this.lblOutput.BackColor = System.Drawing.Color.Yellow; - this.lblOutput.Location = new System.Drawing.Point(79, 281); - this.lblOutput.Name = "lblOutput"; - this.lblOutput.Size = new System.Drawing.Size(300, 23); - this.lblOutput.TabIndex = 19; - // - // frmEstimate - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(422, 340); - this.Controls.Add(this.lblOutput); - this.Controls.Add(this.lblCostPerDay); - this.Controls.Add(this.lblMain); - this.Controls.Add(this.cmdGo); - this.Controls.Add(this.cmdExit); - this.Controls.Add(this.cmdClear); - this.Controls.Add(this.cmdCalculate); - this.Controls.Add(this.tbIncVat); - this.Controls.Add(this.tbExVat); - this.Controls.Add(this.tbDays); - this.Controls.Add(this.lblIncVat); - this.Controls.Add(this.lblExVat); - this.Controls.Add(this.lblDays); - this.Controls.Add(this.grpAssessories); - this.Controls.Add(this.tbAudi); - this.Controls.Add(this.tbBmw); - this.Controls.Add(this.tbToyota); - this.Controls.Add(this.tbFord); - this.Controls.Add(this.grpCarMake); - this.Controls.Add(this.menuStrip1); - this.MainMenuStrip = this.menuStrip1; - this.Name = "frmEstimate"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "Car Hire Estimate"; - this.grpCarMake.ResumeLayout(false); - this.grpCarMake.PerformLayout(); - this.grpAssessories.ResumeLayout(false); - this.grpAssessories.PerformLayout(); - this.menuStrip1.ResumeLayout(false); - this.menuStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - private System.Windows.Forms.GroupBox grpCarMake; - private System.Windows.Forms.RadioButton radAudi; - private System.Windows.Forms.RadioButton radBmw; - private System.Windows.Forms.RadioButton radToyota; - private System.Windows.Forms.RadioButton radFord; - private System.Windows.Forms.TextBox tbFord; - private System.Windows.Forms.TextBox tbToyota; - private System.Windows.Forms.TextBox tbBmw; - private System.Windows.Forms.TextBox tbAudi; - private System.Windows.Forms.GroupBox grpAssessories; - private System.Windows.Forms.RadioButton radExtra; - private System.Windows.Forms.RadioButton radStandard; - private System.Windows.Forms.MenuStrip menuStrip1; - private System.Windows.Forms.ToolStripMenuItem programToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; - private System.Windows.Forms.Label lblDays; - private System.Windows.Forms.Label lblExVat; - private System.Windows.Forms.Label lblIncVat; - private System.Windows.Forms.TextBox tbDays; - private System.Windows.Forms.TextBox tbExVat; - private System.Windows.Forms.TextBox tbIncVat; - private System.Windows.Forms.Button cmdCalculate; - private System.Windows.Forms.Button cmdClear; - private System.Windows.Forms.Button cmdExit; - private System.Windows.Forms.Button cmdGo; - private System.Windows.Forms.Label lblMain; - private System.Windows.Forms.Label lblCostPerDay; - private System.Windows.Forms.Label lblOutput; - } - } - diff --git a/c# car hire/frmEstimate.cs b/c# car hire/frmEstimate.cs deleted file mode 100644 index 3522ed7..0000000 --- a/c# car hire/frmEstimate.cs +++ /dev/null @@ -1,186 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace mock { - public partial class frmEstimate : Form { - double price = 45.50; - string vehicle = ""; - string assessories = "standard" ; - - public frmEstimate() { - InitializeComponent(); - startUpDisplay(false); // setup display - tbFord.Text = "45.50"; // set text fields - tbToyota.Text = "35.75"; // set text fields - tbBmw.Text = "50.00"; // set text fields - tbAudi.Text = "48.60"; // set text fields - radFord.Checked = true; - radStandard.Checked = true; - lblOutput.Visible = false; - - } - - private void cmdGo_Click(object sender, EventArgs e) { - startUpDisplay(true); // setup display - lblMain.ForeColor = Color.Blue; - - } - private void startUpDisplay(bool shouldShow) { // setup display - lblDays.Visible = shouldShow; - tbDays.Visible = shouldShow; - lblExVat.Visible = shouldShow; - tbExVat.Visible = shouldShow; - lblIncVat.Visible = shouldShow; - tbIncVat.Visible = shouldShow; - cmdCalculate.Visible = shouldShow; - cmdClear.Visible = shouldShow; - - tbAudi.Visible = !shouldShow; - tbBmw.Visible = !shouldShow; - tbFord.Visible = !shouldShow; - tbToyota.Visible = !shouldShow; - lblCostPerDay.Visible = !shouldShow; - } - - private void cmdCalculate_Click(object sender, EventArgs e) { - int days = 0; - - if(String.IsNullOrEmpty(tbDays.Text)) { - MessageBox.Show("Number of days not entered"," Reminder", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); - } - if(!String.IsNullOrEmpty(tbDays.Text)) { - - try { - days = int.Parse(tbDays.Text); - double subTotal = 0; - if(assessories == "standard") { - subTotal = days * price; - } - else { - double sub = days * price; - subTotal = (sub * .25) + sub; - } - - tbExVat.Text = subTotal.ToString(); - double vat = (subTotal / 100) * 23; - double totalIncVat = subTotal + vat; - tbIncVat.Text = totalIncVat.ToString(); - string output = vehicle + " hired with " + assessories + " assessories for " + days + " days"; - lblOutput.Text = output; - lblOutput.Visible = true; // setup display - - } - catch(Exception) { - - MessageBox.Show("Number of days must be numeric", " Error", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - - } - - private void cmdClear_Click(object sender, EventArgs e) { // clear all data - tbDays.Text = ""; - tbIncVat.Text = ""; - tbExVat.Text = ""; - lblOutput.Text = ""; - lblOutput.Visible = false; // setup display - - } - - private void cmdExit_Click(object sender, EventArgs e) { // display yes / no message box - const string message = "Do you want to exit?"; - const string caption = "EXIT"; - var result = MessageBox.Show(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question); - if(result == DialogResult.Yes) { - Application.Exit(); - } - else if(result == DialogResult.Yes) { - this.Close(); - } - } - - private void exitToolStripMenuItem_Click(object sender, EventArgs e) {// display yes / no message box - const string message = "Do you want to exit?"; - const string caption = "EXIT"; - var result = MessageBox.Show(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question); - if(result == DialogResult.Yes) { - Application.Exit(); - } - else if(result == DialogResult.Yes) { - this.Close(); - } - } - - private void radFord_CheckedChanged(object sender, EventArgs e) { - if(radFord.Checked) { - price = double.Parse(tbFord.Text); // set price for calculation - vehicle = "Ford"; // set text for label - startUpDisplay(false); // setup display - lblOutput.Visible = false; - - } - } - - private void radToyota_CheckedChanged(object sender, EventArgs e) { - if(radToyota.Checked) { - price = double.Parse(tbToyota.Text);// set price for calculation - vehicle = "Toyota"; // set text for label - startUpDisplay(false); // setup display - lblOutput.Visible = false; - - } - } - - private void radBmw_CheckedChanged(object sender, EventArgs e) { - if(radBmw.Checked) { - price = double.Parse(tbBmw.Text);// set price for calculation - vehicle = "BMW"; // set text for label - startUpDisplay(false); // setup display - lblOutput.Visible = false; - - } - } - - private void radAudi_CheckedChanged(object sender, EventArgs e) { - if(radAudi.Checked) { - price = double.Parse(tbAudi.Text);// set price for calculation - vehicle = "Audi"; // set text for label - startUpDisplay(false); // setup display - lblOutput.Visible = false; - - } - } - - private void radStandard_CheckedChanged(object sender, EventArgs e) { - if(radStandard.Checked) { - assessories = "standard"; // set text for label - startUpDisplay(false); // setup display - lblOutput.Visible = false; - - //tbFord.Text = "45.50"; - //tbToyota.Text = "35.75"; - //tbBmw.Text = "50.00"; - //tbAudi.Text = "48.60"; - } - } - - private void radExtra_CheckedChanged(object sender, EventArgs e) { - assessories = "extra"; // set text for label - startUpDisplay(false); // setup display - lblOutput.Visible = false; - - //tbFord.Text = "56.87"; - //tbToyota.Text = "44.69"; - //tbBmw.Text = "62.25"; - //tbAudi.Text = "71.92"; - - } - } - } diff --git a/c# car hire/frmEstimate.resx b/c# car hire/frmEstimate.resx deleted file mode 100644 index 4cfb3f4..0000000 --- a/c# car hire/frmEstimate.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - 49 - - \ No newline at end of file diff --git a/c# car hire/mock.exe b/c# car hire/mock.exe deleted file mode 100644 index 0daf1e4..0000000 Binary files a/c# car hire/mock.exe and /dev/null differ diff --git a/c# car hire/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/c# car hire/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache deleted file mode 100644 index 528aef7..0000000 Binary files a/c# car hire/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and /dev/null differ diff --git a/c# car hire/obj/Debug/MyCarHire.csproj.FileListAbsolute.txt b/c# car hire/obj/Debug/MyCarHire.csproj.FileListAbsolute.txt deleted file mode 100644 index 014aa59..0000000 --- a/c# car hire/obj/Debug/MyCarHire.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,9 +0,0 @@ -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\bin\Debug\mock.exe.config -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\bin\Debug\mock.exe -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\bin\Debug\mock.pdb -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\obj\Debug\MyCarHire.csprojResolveAssemblyReference.cache -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\obj\Debug\mock.frmEstimate.resources -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\obj\Debug\mock.Properties.Resources.resources -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\obj\Debug\MyCarHire.csproj.GenerateResource.Cache -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\obj\Debug\mock.exe -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\obj\Debug\mock.pdb diff --git a/c# car hire/obj/Debug/MyCarHire.csproj.GenerateResource.Cache b/c# car hire/obj/Debug/MyCarHire.csproj.GenerateResource.Cache deleted file mode 100644 index cfc345c..0000000 Binary files a/c# car hire/obj/Debug/MyCarHire.csproj.GenerateResource.Cache and /dev/null differ diff --git a/c# car hire/obj/Debug/MyCarHire.csprojResolveAssemblyReference.cache b/c# car hire/obj/Debug/MyCarHire.csprojResolveAssemblyReference.cache deleted file mode 100644 index 5bae815..0000000 Binary files a/c# car hire/obj/Debug/MyCarHire.csprojResolveAssemblyReference.cache and /dev/null differ diff --git a/c# car hire/obj/Debug/mock.Properties.Resources.resources b/c# car hire/obj/Debug/mock.Properties.Resources.resources deleted file mode 100644 index 6c05a97..0000000 Binary files a/c# car hire/obj/Debug/mock.Properties.Resources.resources and /dev/null differ diff --git a/c# car hire/obj/Debug/mock.exe b/c# car hire/obj/Debug/mock.exe deleted file mode 100644 index 0daf1e4..0000000 Binary files a/c# car hire/obj/Debug/mock.exe and /dev/null differ diff --git a/c# car hire/obj/Debug/mock.frmEstimate.resources b/c# car hire/obj/Debug/mock.frmEstimate.resources deleted file mode 100644 index 6c05a97..0000000 Binary files a/c# car hire/obj/Debug/mock.frmEstimate.resources and /dev/null differ diff --git a/c# car hire/obj/Debug/mock.pdb b/c# car hire/obj/Debug/mock.pdb deleted file mode 100644 index 17e4871..0000000 Binary files a/c# car hire/obj/Debug/mock.pdb and /dev/null differ diff --git a/c# car hire/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/c# car hire/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache deleted file mode 100644 index 407aa69..0000000 Binary files a/c# car hire/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache and /dev/null differ diff --git a/c# car hire/obj/Release/MyCarHire.csproj.FileListAbsolute.txt b/c# car hire/obj/Release/MyCarHire.csproj.FileListAbsolute.txt deleted file mode 100644 index 4e0fb37..0000000 --- a/c# car hire/obj/Release/MyCarHire.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,8 +0,0 @@ -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\bin\Release\mock.exe.config -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\bin\Release\mock.exe -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\bin\Release\mock.pdb -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\obj\Release\mock.frmEstimate.resources -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\obj\Release\mock.Properties.Resources.resources -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\obj\Release\MyCarHire.csproj.GenerateResource.Cache -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\obj\Release\mock.exe -C:\Users\SwDev07\Dropbox\Visual Studio\WindowsFormsApplication4\mock\obj\Release\mock.pdb diff --git a/c# car hire/obj/Release/MyCarHire.csproj.GenerateResource.Cache b/c# car hire/obj/Release/MyCarHire.csproj.GenerateResource.Cache deleted file mode 100644 index 76fe0bc..0000000 Binary files a/c# car hire/obj/Release/MyCarHire.csproj.GenerateResource.Cache and /dev/null differ diff --git a/c# car hire/obj/Release/mock.Properties.Resources.resources b/c# car hire/obj/Release/mock.Properties.Resources.resources deleted file mode 100644 index 6c05a97..0000000 Binary files a/c# car hire/obj/Release/mock.Properties.Resources.resources and /dev/null differ diff --git a/c# car hire/obj/Release/mock.exe b/c# car hire/obj/Release/mock.exe deleted file mode 100644 index 7e3f8c3..0000000 Binary files a/c# car hire/obj/Release/mock.exe and /dev/null differ diff --git a/c# car hire/obj/Release/mock.frmEstimate.resources b/c# car hire/obj/Release/mock.frmEstimate.resources deleted file mode 100644 index 6c05a97..0000000 Binary files a/c# car hire/obj/Release/mock.frmEstimate.resources and /dev/null differ diff --git a/c# car hire/obj/Release/mock.pdb b/c# car hire/obj/Release/mock.pdb deleted file mode 100644 index a1081b3..0000000 Binary files a/c# car hire/obj/Release/mock.pdb and /dev/null differ diff --git a/c# car hire/screenshots/1.png b/c# car hire/screenshots/1.png deleted file mode 100644 index 2910dcd..0000000 Binary files a/c# car hire/screenshots/1.png and /dev/null differ diff --git a/c# car hire/screenshots/10.png b/c# car hire/screenshots/10.png deleted file mode 100644 index fc1362a..0000000 Binary files a/c# car hire/screenshots/10.png and /dev/null differ diff --git a/c# car hire/screenshots/2.png b/c# car hire/screenshots/2.png deleted file mode 100644 index b77be90..0000000 Binary files a/c# car hire/screenshots/2.png and /dev/null differ diff --git a/c# car hire/screenshots/3.png b/c# car hire/screenshots/3.png deleted file mode 100644 index 3c77ef0..0000000 Binary files a/c# car hire/screenshots/3.png and /dev/null differ diff --git a/c# car hire/screenshots/5.png b/c# car hire/screenshots/5.png deleted file mode 100644 index 9d1abbd..0000000 Binary files a/c# car hire/screenshots/5.png and /dev/null differ diff --git a/c# car hire/screenshots/6.png b/c# car hire/screenshots/6.png deleted file mode 100644 index 9310e35..0000000 Binary files a/c# car hire/screenshots/6.png and /dev/null differ diff --git a/c# car hire/screenshots/7.png b/c# car hire/screenshots/7.png deleted file mode 100644 index 92b1eee..0000000 Binary files a/c# car hire/screenshots/7.png and /dev/null differ diff --git a/c# car hire/screenshots/Test_Plan_log_My_Car_Hire.xlsx b/c# car hire/screenshots/Test_Plan_log_My_Car_Hire.xlsx deleted file mode 100644 index 4ef3ec2..0000000 Binary files a/c# car hire/screenshots/Test_Plan_log_My_Car_Hire.xlsx and /dev/null differ diff --git a/c# car hire/screenshots/program listing.docx b/c# car hire/screenshots/program listing.docx deleted file mode 100644 index 22ada8c..0000000 Binary files a/c# car hire/screenshots/program listing.docx and /dev/null differ diff --git a/hotfix.txt b/hotfix.txt deleted file mode 100644 index 66a6a0e..0000000 --- a/hotfix.txt +++ /dev/null @@ -1,38 +0,0 @@ -Hot Fix for Microsoft Knowledge Base article number(s) 2526163 - -Knowledge Base Article -====================== -To view the contents of the knowledge base article for this update, visit -http://support.microsoft.com/?kbid=2526163 directly, or -visit http://support.microsoft.com and query the Knowledge base -for the product and the KB number of this update. - -Installation Instructions -========================= -1. If this hotfix was delivered with hfx.exe then it can be installed by running -hfx.exe from the appropriate platform directory. - -2. Install and run - -Disclaimer of Liability -====================== -The software which may include "online" or electronic documentation (together the "Software"), -are provided to you at no additional charge. The Software is protected by United States copyright -laws and international copyright treaties, as well as other intellectual property laws and treaties. -Microsoft Corporation owns all right, title and interest to the Software. The Software is licensed, -not sold. - -DISCLAIMER OF WARRANTIES. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND ITS -SUPPLIERS EXPRESSLY DISCLAIM ALL WARRANTIES FOR THE SOFTWARE. THE SOFTWARE IS PROVIDED "AS IS" -WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. -THE ENTIRE RISK ARISING OUT OF USE OR PERFORMANCE OF THE SOFTWARE REMAINS WITH YOU. - -The Software is provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by the Government -is subject to restrictions set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and -Computer Software clause at DFARS 252.227-7013 or subparagraphs (c)(1) and (2) of the Commercial -Computer Software--Restricted Rights at 48 CFR 52.227-19, as applicable. Manufacturer is Microsoft -Corporation, One Microsoft Way, Redmond, WA 98052-6399. Any transfer of this Software must be -accompanied by this statement and may only be transferred if first approved by Microsoft. - -(c) 2002 Microsoft Corporation, All Rights Reserved. diff --git a/lotto/moneyCalculator.java b/lotto/moneyCalculator.java new file mode 100644 index 0000000..1af8c1d --- /dev/null +++ b/lotto/moneyCalculator.java @@ -0,0 +1,40 @@ +/* + * 8. a. Write a program that calculates and displays the conversion of EUR57 into 20's, 10's, 5's, and 1 's. + * Create a separate method to do the calculation and display. Pass 57 as a variable to this method. + * Save the program as Ex0308.java b. In the Ex0308.java program, + * alter the value of the variable that holds the amount of money. + * Run the program and confirm that the amount of each denomination calculates correctly. + */ + +import java.util.Scanner; + +public class moneyCalculator { + public static void main(String[] args) { + Scanner myScanner = new Scanner(System.in); + System.out.println("Enter number : "); + int number = myScanner.nextInt(); + total(number); + } + public static int total(int numIn){ + + int twenties = numIn / 20; + int modOfTwentie = numIn % 20; + + int tens = modOfTwentie /10; + int modOfTen = modOfTwentie % 10; + + int fives = modOfTen / 5; + int modOfFives = modOfTen % 5; + + int ones = modOfFives /1; + int modOfOnes = ones % 1; + + System.out.println("In the number " + numIn); + System.out.println("number of 20's " + twenties); + System.out.println("number of 10's " + tens); + System.out.println("number of 5's " + fives); + System.out.println("number of 1's " + ones); + return 1; + } + +} diff --git a/menu/src/menuDemo.java b/menu/src/menuDemo.java new file mode 100644 index 0000000..e93b6f1 --- /dev/null +++ b/menu/src/menuDemo.java @@ -0,0 +1,243 @@ + +import java.awt.event.*; +import java.awt.*; + +import javax.swing.JMenuBar; +import javax.swing.JMenu; +import javax.swing.JMenuItem; +import javax.swing.JCheckBoxMenuItem; +import javax.swing.KeyStroke; + +import javax.swing.JFileChooser; + +import javax.swing.JFrame; +import javax.swing.JOptionPane; + +public class menuDemo extends JFrame implements ActionListener { + + private final String APP_NAME = "Menus Demonstration Program"; + + private int frameWidth = 500; + private int frameHeight = 500; + + private Toolkit toolkit; + + // constructor + public menuDemo() { + + // setup the container frame + this.setSize(this.frameWidth, this.frameHeight); // set initial size + this.setTitle(this.APP_NAME); + this.setDefaultCloseOperation(EXIT_ON_CLOSE); + + // centre the frame on the screen + toolkit = getToolkit(); + Dimension size = toolkit.getScreenSize(); + this.setLocation((size.width - getWidth())/2, (size.height - getHeight())/2); + + this.setJMenuBar( this.createMenuBar() ); + + // --------------------------------------------------------------------- + + + //this.pack(); + this.setVisible(true); + } // end of constructor + + + public JMenuBar createMenuBar() { + JMenuBar menuBar = new JMenuBar(); + + menuBar.add( this.createFileMenu() ); + menuBar.add( this.createEditMenu() ); + menuBar.add( this.createFormatMenu() ); + menuBar.add( this.createViewMenu() ); + menuBar.add( this.createHelpMenu() ); + + return menuBar; + } + + public JMenu createFileMenu() { + JMenu menu = new JMenu("File"); + menu.setMnemonic(KeyEvent.VK_F); + + JMenuItem menuItem; + + menuItem = new JMenuItem("New"); + menuItem.setMnemonic(KeyEvent.VK_N); + menuItem.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_N, ActionEvent.CTRL_MASK ) ); + menuItem.setEnabled(false); + menu.add(menuItem); + + menuItem = new JMenuItem("Open..."); + menuItem.setMnemonic(KeyEvent.VK_O); + menuItem.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_O, ActionEvent.CTRL_MASK ) ); + menuItem.addActionListener(this); + menu.add(menuItem); + + menuItem = new JMenuItem("Save"); + menuItem.setMnemonic(KeyEvent.VK_S); + menuItem.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_S, ActionEvent.CTRL_MASK ) ); + menuItem.addActionListener(this); + menu.add(menuItem); + + menuItem = new JMenuItem("Save As..."); + menuItem.setMnemonic(KeyEvent.VK_A); + menuItem.addActionListener(this); + menu.add(menuItem); + + menu.addSeparator(); + + menuItem = new JMenuItem("Page Setup..."); + menuItem.setMnemonic(KeyEvent.VK_U); + menuItem.setEnabled(false); + menu.add(menuItem); + + menuItem = new JMenuItem("Print..."); + menuItem.setMnemonic(KeyEvent.VK_P); + menuItem.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_P, ActionEvent.CTRL_MASK ) ); + menuItem.setEnabled(false); + menu.add(menuItem); + + menu.addSeparator(); + + menuItem = new JMenuItem("Exit"); + menuItem.setMnemonic(KeyEvent.VK_X); + menuItem.addActionListener(this); + menu.add(menuItem); + + return menu; + } + + public JMenu createEditMenu() { + JMenu menu = new JMenu("Edit"); + menu.setMnemonic(KeyEvent.VK_E); + + return menu; + } + + public JMenu createFormatMenu() { + JMenu menu = new JMenu("Format"); + menu.setMnemonic(KeyEvent.VK_F); + + JMenuItem menuItem; + JCheckBoxMenuItem cbMenuItem; + + cbMenuItem = new JCheckBoxMenuItem("Word Wrap"); + cbMenuItem.setMnemonic(KeyEvent.VK_W); + menu.add(cbMenuItem); + + menuItem = new JMenuItem("Font..."); + menuItem.setMnemonic(KeyEvent.VK_F); + menu.add(menuItem); + + return menu; + } + + public JMenu createViewMenu() { + JMenu menu = new JMenu("View"); + menu.setMnemonic(KeyEvent.VK_V); + + JMenuItem menuItem; + + menuItem = new JMenuItem("Status Bar"); + menuItem.setMnemonic(KeyEvent.VK_S); + menuItem.setEnabled(false); + menu.add(menuItem); + + return menu; + } + + public JMenu createHelpMenu() { + JMenu menu = new JMenu("Help"); + menu.setMnemonic(KeyEvent.VK_H); + + JMenuItem menuItem; + + menuItem = new JMenuItem("View Help"); + menuItem.setMnemonic(KeyEvent.VK_H); + menu.add(menuItem); + + menu.addSeparator(); + + menuItem = new JMenuItem("About " + this.APP_NAME); + menuItem.setMnemonic(KeyEvent.VK_A); + menu.add(menuItem); + + return menu; + } + + public void actionPerformed(ActionEvent event) { + if (event.getActionCommand().equals("New")) { + System.out.println("File|New selected"); + } else if (event.getActionCommand().equals("Open...")) { + this.fileOpen(); + } else if (event.getActionCommand().equals("Save")) { + System.out.println("File|Save selected"); + } else if (event.getActionCommand().equals("Save As...")) { + this.fileSaveAs(); + } else if (event.getActionCommand().equals("Page Setup...")) { + System.out.println("File|Page Setup... selected"); + } else if (event.getActionCommand().equals("Print...")) { + System.out.println("File|Print selected"); + } else if (event.getActionCommand().equals("Exit")) { + this.fileExit(); + } + } + + private void fileOpen() { + JFileChooser fc = new JFileChooser(); + + int returnVal = fc.showOpenDialog(this); + if ( returnVal == JFileChooser.APPROVE_OPTION ) { + java.io.File file = fc.getSelectedFile(); + // This is where a real application would open the file. + System.out.println("Opening: " + file.getName()); + } else { + System.out.println("Open command cancelled by user."); + } + } + + private void fileSave() { + // This is where a real application would save the file. + System.out.println("Saving the file."); + } + + private void fileSaveAs() { + JFileChooser fc = new JFileChooser(); + int returnVal = fc.showSaveDialog(this); + if ( returnVal == JFileChooser.APPROVE_OPTION ) { + java.io.File file = fc.getSelectedFile(); + // This is where a real application would save as the file. + System.out.println("Saving file as: " + file.getName()); + } else { + System.out.println("Save As command cancelled by user."); + } + } + + private void filePageSetup() { + System.out.println("Open the Java Tutorial:"); + System.out.println(" 2D Graphics"); + System.out.println(" Printing"); + System.out.println(" using Print Setup Dialogs"); + } + + private void filePrint() { + System.out.println("Open the Java Tutorial:"); + System.out.println(" 2D Graphics"); + System.out.println(" Printing"); + System.out.println(" using Print Setup Dialogs"); + } + + private void fileExit() { + String message = "Do you want to Exit the application?"; + int choice = JOptionPane.showConfirmDialog( this, message, this.APP_NAME, + JOptionPane.YES_NO_OPTION, + JOptionPane.WARNING_MESSAGE, null); + if (choice == 0) { + System.exit(0); + } + } + + +} // end of class MenuDemo \ No newline at end of file diff --git a/menu/src/menuDemoStub.java b/menu/src/menuDemoStub.java new file mode 100644 index 0000000..a484b73 --- /dev/null +++ b/menu/src/menuDemoStub.java @@ -0,0 +1,9 @@ + +public class menuDemoStub { + public static void main(String[] args) { + + new menuDemo(); +} + + +} \ No newline at end of file diff --git a/s.html b/s.html deleted file mode 100644 index 180afe3..0000000 --- a/s.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - CSS Tutorial - - - - - - -
- -
- - - -
- - - - -
- - -
- -

Interesting

- - -
- -

Body Language

-

In this article, I’ll cover Arm and Hand Body - Language Analysis. I know doubt know someone that reads this article - will say to themselves, "I just feel more comfortable with my arms - crossed in front of me." Body Language Analysis is used because it - has been proven to work for many people. -

-

- If you feel comfortable with a specific body position it is because - you are feeling a certain way. Ask yourself, when would you feel - comfortable with your arms crossed while enjoying yourself with a - loved one? Have you ever seen anyone cross their arms in excitement? - Just a few things to think about, as you read this article. -

-

- This article was created because one of my readers asked for it. If - you have any questions leave them in the comment section below. I’ll - gladly answer any questions that I can. -

-

- When shaking someones hand, if your hand is on top you are trying - to dominate and vice versa. -

-

- An equal handshake, in which both people shake in a vertical manor, - with equal pressure, is the best way to generate good rapport. -

- -
-
Google
-
YouTube
-
Yahoo
-
- -
-
-
-
-
-
-
-
- -
- -
- -
- - - -
- - - -
- - - - - diff --git a/stylesheet.css b/stylesheet.css deleted file mode 100644 index bdf1288..0000000 --- a/stylesheet.css +++ /dev/null @@ -1,135 +0,0 @@ -#lorem { - /* Inside Border - padding 10px 10px 10px 10px : Top, Right, Bottom, Left - padding 10px 25px 15px : Top, Right / Left, Bottom - padding 10px 15px : Top / Bottom, Left / Right - */ - padding-top: 20px; - padding-bottom: 20px; - padding-left: 20px; - padding-right: 20px; - - /* Outside Border - margin 10px 10px 10px 10px : Top, Right, Bottom, Left - margin 10px 25px 15px : Top, Right / Left, Bottom - margin 10px 15px : Top / Bottom, Left / Right - */ - margin-top: 10px; - margin-bottom: 10px; - margin-left: 10px; - margin-right: 10px; - - /* - border: 5px solid green; - border-width, border-style, border-color - none, dotted, dashed, solid, double, groove, ridge, inset, outset - */ - border-top: 5px solid #00308F; - border-bottom: 5px dotted #00308F; - border-left: 5px dashed #00308F; - border-right: 5px double #00308F; - - /* - background: color position/size repeat origin clip attachment - image|initial|inherit; - background-position: left top bottom right - (If you only specify one the other value will be center) - background-size: auto length; - background-repeat: repeat repeat-x repeat-y no-repeat - background: #F2F3F4 url("Repeat.png") repeat; - */ - background: #F2F3F4; - - /* - font: font-style font-variant font-weight font-size/line-height font-family; - font-style: normal, italic, oblique - font-varient: normal, small-caps - font-weight: normal, bold, bolder, lighter, 100 - 900 - font-size: medium, xx-small - small, xx-large - large, %, length in pt - line-height: normal, length in pt, % - font-family: "Times New Roman", Georgia, Serif - */ - - color: black; -} - -#fsNormal { - font-style: normal; -} - -#fsItalic { - font-style: italic; -} - -#fsOblique { - font-style: oblique; -} - -#fvNormal { - font-variant: normal; -} - -#fvSmallCaps { - font-variant: small-caps; -} - -#fwNormal { - font-weight: normal; -} - -#fwBold { - font-weight: bold; -} - -#fwBolder { - font-weight: bolder; -} - -#fwLighter { - font-weight: lighter; -} - -#fszMedium { - font-size: medium; -} - -#fszXXSmall { - font-size: xx-small; -} - -#fszSmall { - font-size: small; -} - -#fszXXLarge { - font-size: xx-large; -} - -#fszLarge { - font-size: large; -} - -#fszPrct { - font-size: 200%; -} - -#fsz25pt { - font-size: 25pt; -} - -#lhNormal { - line-height: normal; -} - -#lh25pt { - line-height: 25pt; -} - -#lh200prct { - line-height: 200%; -} - -#lh200prct { - line-height: 200%; -} - diff --git a/stylesheet2.css b/stylesheet2.css deleted file mode 100644 index bdf1288..0000000 --- a/stylesheet2.css +++ /dev/null @@ -1,135 +0,0 @@ -#lorem { - /* Inside Border - padding 10px 10px 10px 10px : Top, Right, Bottom, Left - padding 10px 25px 15px : Top, Right / Left, Bottom - padding 10px 15px : Top / Bottom, Left / Right - */ - padding-top: 20px; - padding-bottom: 20px; - padding-left: 20px; - padding-right: 20px; - - /* Outside Border - margin 10px 10px 10px 10px : Top, Right, Bottom, Left - margin 10px 25px 15px : Top, Right / Left, Bottom - margin 10px 15px : Top / Bottom, Left / Right - */ - margin-top: 10px; - margin-bottom: 10px; - margin-left: 10px; - margin-right: 10px; - - /* - border: 5px solid green; - border-width, border-style, border-color - none, dotted, dashed, solid, double, groove, ridge, inset, outset - */ - border-top: 5px solid #00308F; - border-bottom: 5px dotted #00308F; - border-left: 5px dashed #00308F; - border-right: 5px double #00308F; - - /* - background: color position/size repeat origin clip attachment - image|initial|inherit; - background-position: left top bottom right - (If you only specify one the other value will be center) - background-size: auto length; - background-repeat: repeat repeat-x repeat-y no-repeat - background: #F2F3F4 url("Repeat.png") repeat; - */ - background: #F2F3F4; - - /* - font: font-style font-variant font-weight font-size/line-height font-family; - font-style: normal, italic, oblique - font-varient: normal, small-caps - font-weight: normal, bold, bolder, lighter, 100 - 900 - font-size: medium, xx-small - small, xx-large - large, %, length in pt - line-height: normal, length in pt, % - font-family: "Times New Roman", Georgia, Serif - */ - - color: black; -} - -#fsNormal { - font-style: normal; -} - -#fsItalic { - font-style: italic; -} - -#fsOblique { - font-style: oblique; -} - -#fvNormal { - font-variant: normal; -} - -#fvSmallCaps { - font-variant: small-caps; -} - -#fwNormal { - font-weight: normal; -} - -#fwBold { - font-weight: bold; -} - -#fwBolder { - font-weight: bolder; -} - -#fwLighter { - font-weight: lighter; -} - -#fszMedium { - font-size: medium; -} - -#fszXXSmall { - font-size: xx-small; -} - -#fszSmall { - font-size: small; -} - -#fszXXLarge { - font-size: xx-large; -} - -#fszLarge { - font-size: large; -} - -#fszPrct { - font-size: 200%; -} - -#fsz25pt { - font-size: 25pt; -} - -#lhNormal { - line-height: normal; -} - -#lh25pt { - line-height: 25pt; -} - -#lh200prct { - line-height: 200%; -} - -#lh200prct { - line-height: 200%; -} - diff --git a/stylesheet3.css b/stylesheet3.css deleted file mode 100644 index ef9b80a..0000000 --- a/stylesheet3.css +++ /dev/null @@ -1,94 +0,0 @@ -#parent-div{ - background: #B2BEB5; - border: 0.1em solid black; -} - -#default{ - background: #DBE9F4; -} - -/* - auto makes sure space on the left = right - Show how changing between em, % and pixels changes things -*/ -#centered{ - background: #89CFF0; - width: 50%; - margin: auto; -} - -/* text-align: left, right, center, justify */ -#centered-text{ - text-align: center; -} - -/* Absolute Positioning : Positioning Based on the Document */ -#top-left-pos{ - background: #89CFF0; - border: 0.1em solid black; - position: absolute; - width: 200px; - height: 100px; - z-index: 4; /* Element with highest z index goes on top */ -} - -#bottom-right-tl-parent { - background: #DBE9F4; - position: absolute; - bottom: 0px; - right: 0px; -} - -#top-right-pos{ - background: #89CFF0; - border: 0.1em solid black; - position: absolute; - width: 400px; - height: 100px; - top: 0px; - right: 0px; -} - -#bottom-left-tr-parent { - background: #DBE9F4; - position: absolute; - bottom: 0px; - left: 0px; -} - -/* Fixed positioning : Positioning Based on the Browser */ - -#fixed-pos{ - position: fixed; - top: 0; - left: 0; - width: 100%; - background: #DBE9F4; - border: 0.1em solid black; - margin: 0; -} - -/* Relative Positioning : Positioned Relative to the original */ - -#relative-1{ - background: #DBE9F4; - border: 0.1em solid black; - height: 100px; -} - -#relative-2{ - position: relative; - left: 20px; /* 20px to the right of original */ - top: -30px; /* 30px up from original */ - width: 300px; - background: yellow; - border: 0.1em solid black; -} - -/* Floating Content : Float an element to the left or right of the parent */ - -img[src="LittleBrain.png"] { - float: left; - padding: 10px; -} - diff --git a/stylesheet5.css b/stylesheet5.css deleted file mode 100644 index 52067ef..0000000 --- a/stylesheet5.css +++ /dev/null @@ -1,231 +0,0 @@ -/* Change the color of links in the document based on events */ -a:hover { color: blue; } -a:active { color: red; } -a:visited { color: #989898; } - -body { - background: #5D8AA8; -} - -div#wrapper{ - margin:0 auto; - background:white; - width:800px; - height:1500px; -} - -header { - /* Display like a

instead of like a */ - display:block; - /* Padding Top, Right, Bottom, Left */ - padding: 0px 0px 10px 0px; -} - -#websiteLogo{ - padding: 5px 0px 0px 5px; -} - -/* Treat the nav tag as a block element */ -#horzNav { - display:block; - /* Padding Top, Right, Bottom, Left */ - padding: 5px 20px 5px 0px; - background: black; -} - -/* Remove underlines from links in the nav element */ -#horzNav a { - text-decoration: none; - padding: 0px 0px 0px 20px; - color: white; -} - -/* Add hover color */ -#horzNav a:hover { - color: #89CFF0; -} - -main { - /* Padding Top, Right, Bottom, Left */ - padding: 10px 10px 20px 20px; - float: left; - width: 600px; -} - -#sidebar{ - padding: 20px 10px 0px 10px; - float: right; - width: 150px; - height: auto; - background: #DBE9F4; -} - -h2{ - font-size: 1em; -} - -/* text-align aligns text either to the left, center, or right */ -/* word-spacing defines the size of the space between words */ -#para-1 { - text-align: left; - word-spacing: .5em; -} - -#para-2 { - text-align: right; -} - -#para-3 { - text-align: center; -} - -#para-4 { - text-indent: 2em; -} - -/* letter-spacing changes the space between letters */ -#para-5 { - letter-spacing: .5em; -} - -/* clear makes sure no elements appear next to footer */ -footer{ - clear: both; - background: black; - color: white; - padding: 10px 10px 10px 10px; -} - -/* Different list marker options -circle, disc, lower-latin, lower-greek, upper-latin, upper-greek, -square, url("pic.png"), upper-roman, lower-roman, decimal -*/ -#sidebar-list{ - list-style-type: lower-latin; - list-style-position: outside; -} - -/* You can define that list markers should be inside list item -content boxes (Default is outside above)*/ - -#sidebar-list-2{ - list-style-position: inside; -} - -/* You can place content before an element */ -p#para-1:before{ - content: "*"; -} - -/* You can place content after as well */ -p#para-1:after{ - content: "@"; -} - -/* Auto generate numbered content -Create a counter to count the number of h3 tags starting with 1 -and store the value in num, or sub. You can also define the increment -amount. -You can output the values with content -*/ -h3{ - font-size: .9em; - counter-increment: num; -} - -h4{ - font-size: .7em; - counter-increment: sub 2; -} - -h3:before{ - content: counter(num) " "; -} - -h4:before{ - content: counter(num) "." counter(sub) " "; -} - -/* There are many CSS Pseudo-classes */ -/* You can style the first letter in an element */ -#para-2:first-letter{ - font-size: 25pt; -} - -/* You can style the first line */ -#para-3:first-line{ - background: yellow; -} - -/* Color the first child span in the document */ -span:first-child{ - background-color: orange; -} - -/* Select every p that is the last child of its parent */ -p:last-child { - background: #FAE7B5; -} - -/* Select the 2nd child span */ -span:nth-child(2){ - background: #FFE4C4; -} - -h3:hover { - background: orange; -} - -/* We can change the cursor when an element is hovered over -pointer, crosshair, move, text, wait, progress, help, url(samp.cur) -*/ -#common-quote { - cursor: pointer; -} - -/* Draw a box around an element */ -#para-4 { - outline: 2px solid blue; -} - -#para-5 { - border: 2px solid black; -} - -/* You can create buttons with hover effects as well */ -dl#buttons{ - width: 150px; -} - -dt.site-button{ - text-align: center; - margin-bottom: 5px; -} - -dt.site-button a{ - display: block; - color: white; - text-decoration: none; -} - -dt.site-button a:link{ - background: blue; - border: 5px solid blue; -} - -dt.site-button a:hover{ - background: green; - border: 5px solid blue; -} - -dl#kids-pics a img.hidden{ - visibility: hidden; - position: absolute; - left: 110px; - top: 742px; -} - -dl#kids-pics a:hover img.hidden{ - visibility: visible; -} -