100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Information Systems and Technology (ISTN200) Lecture Notes R179,00   Add to cart

Class notes

Information Systems and Technology (ISTN200) Lecture Notes

 16 views  1 purchase

These lecture notes have been uniquely reconstructed into mind maps, in a step-by-step manner of building on information. These mind maps are all you need to understand programming and will guarantee you a distinction for this module.

Preview 4 out of 41  pages

  • December 19, 2022
  • 41
  • 2020/2021
  • Class notes
  • Anonymous
  • All classes
All documents for this subject (1)
avatar-seller
akishahariparsad
12. Using the
11. More GUI Details Debugger to Locate
Logic Errors

10. Using the Math 1. Reading Input with
Class TextBox Controls




9. Declaring Variables 2. A First Look at
as Fields Variables

Processing Data



8. Using Named 3. Numeric Data Type
Constants and Variables




7. Simple Exception 4. Performing
Handling Calculations

6. Formatting 5. Inputting and
Numbers with the Outputting Numeric
ToString Method Values

, TextBox Property TextBox control


A TextBox control s Text property stores the user inputs  a rectangular area
Text property accepts only string values, e.g.  can accept keyboard input from the user
 locates in the Common Control group of the Toolbox
To clear the content of a TextBox control, assign an empty  double click to add it to the form
string("")  default name is textBoxn
where n is 1, 2, 3,

1. Reading Input with
TextBox Controls

, String Variables Data Types

A C# variable must be declared with a proper
String is a combination of characters
data type
A variable of the string data type can hold
The data type specifies the type of data a
any combination of characters, such as
variable can hold
names, phone
C# provides many data types known as primitive
numbers, and social security numbers
data types, they store fundamental types of data
Value of a string variable is assigned on the
such as strings and integers
right of = operator surrounded by a pair of 2. A First Look at
double quotes:
productDescription Cadbury Chocolate ; Variables

A variable is a storage location in memory
productLabel.Text = productDescription; Variable name represents the memory
You can also display a string variable in a location
Message Box: In C#, you must declare a variable in a
MessageBox.Show(productDescription); program before using it to store data
The syntax to declare variables is Variable Names
Example
A variable name identifies a variable
Always choose a meaningful name for
variables
Basic naming conventions are:
1. the first character must be a letter (upper
or lowercase) or an underscore (_)
2. the name cannot contain spaces
3. do not use C# keywords or reserved words

, String Concatenation
Rules of Variables
Concatenation is the appending of one string
to the end of another string
You can assign a value to a variable only if the value is use + operator for concatenation:
Compatible with the variable's data type
Concatenation can happen between a string
ERROR!)
and another data type
!!! A variable holds one value at a time !!!
In C#, a variable must be assigned a value before it
can be used. 2. A First Look at
You can initialize the variable with a value when you
declare it.
Variables

Declaring Variables Before
Multiple variables with the same type may be Using Them
declared with one
statement private void showNameButton_Click(object
sender, EventArgs e)
{
// Declare a string variable to hold the
full name.
string fullName;
// Combine the names, with a space
between them. Assign the
// result to the fullName variable.
fullName = firstNameTextBox.Text + " " +
lastNameTextBox.Text;
// Display the fullName variable in the
fullNameLabel control.
fullNameLabel.Text = fullName;
}

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller akishahariparsad. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R179,00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

76462 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R179,00  1x  sold
  • (0)
  Buy now