Preview

Nt1330 Unit 8.1 Practical File

Better Essays
Open Document
Open Document
1713 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Nt1330 Unit 8.1 Practical File
Practical 8

1. Create a Form that contains two buttons, one labeled Stop and one labeled Go. Add a label telling the user to click a button. When the user clicks Stop, change the BackColor of the Form to Red; when the user clicks Go, change the BackColor of the Form to Green.

namespace Practical8
{
publicpartialclassForm1 : Form { public Form1() {
InitializeComponent();
}

privatevoidbuttonStop_Click(object sender, EventArgs e) { this.BackColor = Color.Red; }

privatevoidbuttonGo_Click(object sender, EventArgs e) { this.BackColor = Color.Green; } }
}

2. Create a Windows application that contains a button labeled OK and a textbox labeled Name. Change the
…show more content…
Create a Windows application that contains two textboxes and two buttons. One of thetextboxes and one of the buttons are initially invisible. The first textbox should be used to input a password. The textbox should be masked to some character of your choice so that the characters entered by the user are not seen on the screen. When the user clicks the first button, the second textbox and button should be displayed with a prompt asking the user to reenter his or her password. Now, when the user clicks the second button, have the application compare the values entered to make sure they are the same. Display an appropriate message indicating whether they are the …show more content…
}

//calculate the new balance publicvoidDetermineNewBal() { newBalance = balance + deposit - withdrawal; } }
}

//GUI using System; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Data; usingSystem.Drawing; usingSystem.Linq; usingSystem.Text; usingSystem.Windows.Forms; namespace Practical_8
{
publicpartialclassForm1 : Form { public Form1() {
InitializeComponent();
}

privatevoidbuttonEnter_Click(object sender, EventArgs e) { doublebal = double.Parse(balance.Text); doublewdw = double.Parse(withdrawal.Text); doubledps = double.Parse(deposit.Text);

BankingAccountbankAcc = newBankingAccount(bal, wdw, dps);

newBal.Text = bankAcc.NewBalance.ToString("C");

name.Enabled = false; accNumber.Enabled = false; balance.Enabled = false; withdrawal.Enabled = false; deposit.Enabled = false; label1.Visible = true; labelNewBal.Visible = true; newBal.Visible = true; newBal.Enabled = false; } }

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Check the linearity of the Black Box by connecting the DC Power Supply to the input of the Black Box, and the Multimeter to the output of the Black Box, then change the input voltage regularly and notice the changing in the output voltage of the Black Box.…

    • 237 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 3 Summary

    • 734 Words
    • 3 Pages

    Although Zigbee implements a wide assortment of security measures, there are still a variety of vulnerabilities and attack methods that can be used. These attacks and how they can be carried out will be described in this Section.…

    • 734 Words
    • 3 Pages
    Good Essays
  • Good Essays

    The goal of our final project was to build a car that has the following two functions: 1) follow a path made by a white line 2) respond to a sound from the environment by stopping or starting itself. The project was built on the chassis used in the previous labs, and utilized two Line Follower sensor and one microphone provided in the lab kit. Besides, an Arduino Redbeard was used as the microprocessor of the car. The car was expected to power itself and demonstrate considerable reliability while meandering along the white line.…

    • 1184 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    You issued all of the commands required by the lab and you answered all of…

    • 680 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    --controller=remote: type of controller is remote or not, here controller is remote that mean open the Xterm window and run RYU controller…

    • 282 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 2 Case Study

    • 824 Words
    • 4 Pages

    I don’t believe that the State of the USA designed to replace GDP as the primary measure of economic performance. I simply believe that the United States would like to see more indicators as to how our economy is doing and what we can do to help boost the economy. While taking in other information on what’s going on with the country. First standing us as a nonprofit agency I 2007 and would later gather more notice in 2010 with a health care bill that required Congress to help finance and raw data from education energy, economy, health care and the environment to name a few. The group is not meant to interpret the data, just too simple disseminate it to everyone in a nonpartisan manner. With The State of the USA not being designed to replace the GDP as the…

    • 824 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Configuration management documentation is important in any large organization or business, so understanding the types of documentation are important. I am going to go over the various types of documents and schematics you will have to be familiar with. I will try and explain the differences between a wiring schematic, physical network diagram, logical network diagram, policy, procedure, configuration, regulation, acceptable use policy, and the security policy.…

    • 518 Words
    • 3 Pages
    Good Essays
  • Good Essays

    The intelligent personal assistant field within speech technology is a rapidly expanding field. There is a need for a Director of Software Development for Amazon Echo—Alexa to assist in building, leading, and managing a team of talented technology professionals. Alexa will enable the Echo product line to stay ahead of the software curve amongst many competitors.…

    • 665 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Nt1310 Unit 3 Os

    • 1341 Words
    • 6 Pages

    The monolithic model differs from other operating system architectures such the microkernel architecture in that it alone defines a high-level virtual interface over computer hardware. A set of primitives or system calls implement all operating system services such as process management, concurrency, and memory management. Device drivers can be added to the kernel as modules.…

    • 1341 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Bascom8051 Program

    • 2277 Words
    • 10 Pages

    2. Write the program for a system that will turn ON a LED when the PBNO switch is pressed. Pressing and then releasing again this PBNO switch will turn the LED OFF.…

    • 2277 Words
    • 10 Pages
    Satisfactory Essays
  • Satisfactory Essays

    adfadf

    • 268 Words
    • 2 Pages

    Click Me. Close() End Sub Private Sub btnWrite_Click(ByVal sender As Object, ByVal e As System. EventArgs)…

    • 268 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Odd-Even Program C++

    • 311 Words
    • 2 Pages

    * Enter the number. Make the coding that if the entered number is ODD then display the message the “Number is odd”, else display that “Number is even”.…

    • 311 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Processmemoryreader.Cs

    • 1097 Words
    • 5 Pages

    public static extern Int32 ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [In, Out] byte[] buffer, UInt32 size, out IntPtr lpNumberOfBytesRead);…

    • 1097 Words
    • 5 Pages
    Good Essays
  • Good Essays

    WordPress Development

    • 425 Words
    • 2 Pages

    Must know how to add option boxes like a check box, radio button, drop down.…

    • 425 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Educated Filipino

    • 564 Words
    • 3 Pages

    Dim db As New OleDbCommand("Select * From login Where username='" & a & "'", con)…

    • 564 Words
    • 3 Pages
    Satisfactory Essays