100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary ICT2611 hands on project assignment 4 2022

Rating
-
Sold
1
Pages
5
Uploaded on
27-09-2022
Written in
2022/2023

solutions to some of the visual basic hands on project










Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
September 27, 2022
Number of pages
5
Written in
2022/2023
Type
Summary

Subjects

Content preview

Source code for some of the hands on project
Calculator
Rental
Palindrome



please run the program on your vs code editor and design to
suit your needs
these are just my designs so I won’t be responsible for any
mark you get nor copyright, if you just copy and past


Calculator
Public Class Form1
Private Sub BtnAdd_Click(sender As Object, e As EventArgs) Handles
BtnAdd.Click
Dim iNumber1 As Integer
Dim iNumber2 As Integer
Dim iAns As Integer

iNumber1 = txtNum1.Text
iNumber2 = txtNum2.Text


iAns = iNumber1 + iNumber2

txtAns.Text = iAns
End Sub

Private Sub BtnMultiplication_Click(sender As Object, e As EventArgs)
Handles BtnMultiplication.Click
Dim iNumber1 As Integer
Dim iNumber2 As Integer
Dim iAns As Integer


iNumber1 = txtNum1.Text
iNumber2 = txtNum2.Text


iAns = iNumber1 * iNumber2

txtAns.Text = iAns

End Sub

Private Sub BtnDivision_Click(sender As Object, e As EventArgs) Handles
BtnDivision.Click
Dim iNumber1 As Integer
Dim iNumber2 As Integer
Dim iAns As Integer

iNumber1 = txtNum1.Text
iNumber2 = txtNum2.Text

, iAns = iNumber1 / iNumber2

txtAns.Text = iAns
End Sub

Private Sub BtnSubstract_Click(sender As Object, e As EventArgs) Handles
BtnSubstract.Click
Dim iNumber1 As Integer
Dim iNumber2 As Integer
Dim iAns As Integer

iNumber1 = txtNum1.Text
iNumber2 = txtNum2.Text

iAns = iNumber1 - iNumber2

txtAns.Text = iAns
End Sub
End Class




Rental Cost

Public Class Form1
Private Sub btnDisplayRentalRates_Click(sender As Object, e As EventArgs)
Handles btnDisplayRentalRates.Click
lstRentalRates.Items.Add("Price of Equipment" & vbTab & "Half Day" &
vbTab & "Full Day")
lstRentalRates.Items.Add("1. Rug cleaner" & vbTab & "$16.00" & vbTab
& "$24.00")
lstRentalRates.Items.Add("2. Lawn mower" & vbTab & "$12.00" & vbTab &
"$18.00")
lstRentalRates.Items.Add("3. Paint sprayer" & vbTab & "$20.00" &
vbTab & "$30.00")

End Sub

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
phegelelo University of South Africa (Unisa)
View profile
Follow You need to be logged in order to follow users or courses
Sold
17
Member since
3 year
Number of followers
15
Documents
12
Last sold
1 year ago

5,0

1 reviews

5
1
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions