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
  • 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
  • Powerful Essays

    3.0 Test and Evaluation includes the knowledge of efficient and cost effective methods for planning, monitoring, conducting and evaluating tests of prototype, new or modified systems equipment or material, including the need to develop a thorough strategy to validate system performance through measurable methods that relate directly to requirements and to develop metrics that demonstrate system success or failure. In this section, please include a discussion pertaining to activities you have participated in that involve, but are not limited to, preparing project analysis documents and tailoring acquisition documents to ensure that quality, effective, efficient systems or products are delivered.…

    • 1095 Words
    • 5 Pages
    Powerful 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
  • Satisfactory Essays

    Cis170 Ilab 5

    • 363 Words
    • 2 Pages

    0,counter=0; do { Console. Write("Enter Player's Name (Q to quit): "); player[counter] = Console. ReadLine(); if (player[counter] == "q" || player[counter] = = "Q") { addName = 1; } else…

    • 363 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 1.3

    • 887 Words
    • 4 Pages

    1 3 5 Unit 1 Skin Disorders Skin Disorders Skin lesions 2 4 6 Objectives At the end of the session students will be able to: Explain the disease process and nursing care of following conditions seen in children: Ringworm infections Candidiasis Candidiasis Pediculosis Scabies Herpes Simplex Ringworm infections Ringworm infections Ringworm infections Ringworm infections Tinea or ringworm infection is a fungal infection caused by dermatophytes (class of fungus)…

    • 887 Words
    • 4 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
  • 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

    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
  • Satisfactory Essays

    adfadf

    • 268 Words
    • 2 Pages

    Handles btnWrite. Click ' writes a name to a sequential access file ' declare a StreamWriter variable Dim outfile As IO.StreamWriter ' open the file for append outfile = IO.File. AppendText("Contestant.txt") ' write the name on a separate line in the file outfile.…

    • 268 Words
    • 2 Pages
    Satisfactory 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
  • 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