100% found this document useful (1 vote)
424 views8 pages

Advanced Programming-1

The document is a cover sheet for a student's final assessment on an advanced programming project using Visual Basic. It contains information such as the student's name, project title, year of study, lecturer's comments and marks. The student project contains an introduction discussing advanced C# programming and Visual Basic. It provides example codes demonstrating messages boxes and a counter that increases each second. The body discusses programming concepts and languages like Scala, Haskell, Jolt, Cuda and MATLAB. It explains their applications and strengths. The conclusion restates that the project focused on providing code examples for programmers. It discusses the legacy of Visual Basic and how different programming languages have their own strengths depending on the problem to be solved

Uploaded by

Musa Mahdi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
100% found this document useful (1 vote)
424 views8 pages

Advanced Programming-1

The document is a cover sheet for a student's final assessment on an advanced programming project using Visual Basic. It contains information such as the student's name, project title, year of study, lecturer's comments and marks. The student project contains an introduction discussing advanced C# programming and Visual Basic. It provides example codes demonstrating messages boxes and a counter that increases each second. The body discusses programming concepts and languages like Scala, Haskell, Jolt, Cuda and MATLAB. It explains their applications and strengths. The conclusion restates that the project focused on providing code examples for programmers. It discusses the legacy of Visual Basic and how different programming languages have their own strengths depending on the problem to be solved

Uploaded by

Musa Mahdi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 8

Final Assessment (2019-2020) Coversheet

First Trial (Round)


College Name: Course /Module Title Advanced programming
College of Engineering / Science

Department name:
Computer Science Delivery mode: Annual ☒ Semester ☐ Bologna ☐

Student full name: Project title (Advanced programming using visual


basic.):
Aland Hadi

Year : 1☐ 2☐ 3☒ 4 ☐ 5☐

Student gmail: Lecturer Name: assist. Mrs.Suhad Al Dulaimy


aland.10451377@gmail.com

I declare that the work contained Lecturer (marker) comment :


in this submission is my own work,
and has not been taken from the
work of others.

Project
Mark /Result:
Student signature:

Date : 21/6/2020

Lecturer’s Signature:
Date :
Head of Department name and signature :

Exam Board signature / stamp :

(Advanced programming using visual basic)

By:Aland Hadi
Table of contents:
1) Introduction..............................3
2) body:..............................4
2A) concept and example codes..............................4 5
2B) Applications..............................5 6
3) Conclusion..............................7

1. Introduction
Advanced C# Programmingis about programmers and code. around the idea of
providing a lot of code listings for programmers who need to solve problems
now. Advanced C# Programming was written for developers who have an
intermediate to advanced level of experience with similar languages, such as C+
+, Delphi, or Visual Basic.NET, or who have read an introductory-level book
explaining the fundamentals of object-oriented programming with C#.As a
special feature, NET programming for the Web with C ,Visual Basic is a third-
generation event-driven programming language from Microsoft known for its
Component Object Model (COM) programming model first released in 1991
and declared legacy during 2008. Microsoft intended Visual Basic to be
relatively easy to learn and use. Visual Basic was derived from BASIC and
enables the rapid application development (RAD) of graphical user interface
(GUI) applications, access to databases using Data Access Objects, Remote
Data Objects, or ActiveX Data Objects, and creation of ActiveX controls and
objects.A programmer can create an application using the components provided
by the Visual Basic program itself. Over time the community of programmers
developed third-party components. Programs written in Visual Basic can also
use the Windows API, which requires external function declarations. The final
release was version 6 in 1998 (now known simply as Visual Basic). On April 8,
2008, Microsoft stopped supporting Visual Basic 6.0 IDE. The Microsoft Visual
Basic team still maintains compatibility for Visual Basic 6.0 applications on
Windows Vista, Windows Server 2008 including R2, Windows 7, Windows 8,
Windows 8.1, Windows Server 2012, Windows 10, Windows Server 2016, and
Windows Server 2019 through its "It Just Works" program. In 2014, some
software developers still preferred Visual Basic 6.0 over its successor, Visual
Basic .NET.In 2014 some developers lobbied for a new version of the VB6
programming environment.In 2016, Visual Basic 6.0 won the technical impact
award at The 19th Annual D.I.C.E. Awards.A dialect of Visual Basic, Visual
Basic for Applications (VBA), is used as a macro or scripting language within
several Microsoft and ISV applications, including Microsoft Office.

2. Body:
2A) concept and example codes
Programming is the process of teaching something to a computer by talking to
the machine in one of its common languages. The closer to the machine idiom
you go, the less natural the words become.Each language carries its own
expressive power. For any given concept, there is a language where its
description is simpler, more concise, and more detailed. In assembler, we have
to give an extremely rich and precise description for any (possibly simple)
algorithm, and this makes it very hard to read back. On the other hand, the
beauty of C++ is that, while being close enough to the machine language, the
language carries enough instruments to enrich itself.C++ allows programmers to
express the same concept with different styles and good C++ looks more
natural.First you are going to see the connection between the templates and the
style, and then you will dig into the details of the C++ template system.
advanced programming is data science, deep learning and artificial intellegence
and machine learning and many more.

Example code:
The following code snippet displays a message box saying "Hello, World!" as
the window loads:

1) Private Sub Form_Load()


' Execute a simple message box that says "Hello, World!"
MsgBox "Hello, World!"
End Sub
This snippet makes a counter that moves up 1 every second (a label and a timer
control need to be added to the form for this to work) until the form is closed or
an integer overflow occurs:

2) Option Explicit
Dim Count As Integer
Private Sub Form_Load()
Count = 0
Timer1.Interval = 1000 ' units of milliseconds
End Sub
Private Sub Timer1_Timer()
Count = Count + 1
Label1.Caption = Count
End Sub

2B) Applications
People often ask for a recommendation on what language they should learn
next. If you're looking for a job in industry, is to learn whatever is hot right
now: C++, Java and C#--and probably Python, Ruby, PHP and Perl too.

Some advanced languages:

1.Scala: Scala is one of the best-known, with one of the larger user bases. It was
engineered to run on the JVM, so anything you write in Scala can run anywhere
that Java runs—which is almost everywhere. There are good reasons to believe
that functional programming precepts, when followed, can build stronger code
that's easier to optimize and often free of some of the most maddening bugs.
Scala is one way to dip your toe into these waters.

2.Haskell:One of the most popular functional languages, Haskell, is another


good place for programmers to begin. It's already being used for major projects
at companies like Facebook. It's delivering real performance on real projects,
something that often isn't the case for academic code.

3.Jolt:When XML was the big data format, a functional language called XSLT
was one of the better tools for fiddling with large datasets coded in XML. Now
that JSON has taken over the world, Jolt is one of the options for massaging
your JSON data and transforming it. You can write simple filters that extract
attributes and JOLT will find them and morph them as you desire. See also
Tempo and using XSLT itself.

4.Cuda:Most people take the power of their video cards for granted. They don't
even think about how many triangles the video card is juggling, as long as their
world is a complex, first-person shooter game. But if they would only look
under the hood, they would find a great deal of power ready to be unlocked by
the right programmer. The CUDA language is a way for Nvidia to open up the
power of their graphics processing units (GPUs) to work in ways other than
killing zombies or robots.

5.MATLAB:was a hardcore language for hardcore mathematicians and


scientists who needed to juggle complex systems of equations and find
solutions. It's still that, and more of today's projects need those complex skills.
So MATLAB is finding its way into more applications as developers start
pushing deeper into complex mathematical and statistical analysis. The core has
been tested over the decades by mathematicians and now it's able to help mere
mortals.

6.swift:Apple saw an opportunity when programming newbies complained


about the endless mess of writing in Objective C. So they introduced Swift and
strongly implied that it would replace Objective C for writing for the Mac or the
iPhone.

3. Conclusion
Advanced C# Programmingis about programmers and code. around the idea of
providing a lot of code listings for programmers who need to solve problems
now.
The Microsoft Visual Basic team still maintains compatibility for Visual Basic
6.0 applications on Windows Vista, Windows Server 2008 including R2,
Windows 7, Windows 8, Windows 8.1, Windows Server 2012, Windows 10,
Windows Server 2016, and Windows Server 2019 through its "It Just Works"
program.
Programming is the process of teaching something to a computer by talking to
the machine in one of its common languages. The closer to the machine idiom
you go, the less natural the words become.Each language carries its own
expressive power.
Some advanced languages like:
Scala: Scala is one of the best-known, with one of the larger user bases.
Haskell:One of the most popular functional languages, Haskell, is another good
place for programmers to begin.
Jolt:When XML was the big data format, a functional language called XSLT
was one of the better tools for fiddling with large datasets coded in XML.
Cuda:Most people take the power of their video cards for granted.
MATLAB:was a hardcore language for hardcore mathematicians and scientists
who needed to juggle complex systems of equations and find solutions.

Answers of the question:

Q1)
1) Declaring the array at beginning of the class:
Public Class Arrays
Dim numbers(10) As Integer
Dim i, j, Aux As Integer
Initialize the array and put the array elements in the listbox when the form
loaded:
Private Sub Arrays_Load (sender As Object, e As EventArgs) Handles MyBase.
Load
66)
numbers = {14, 70, 10, 88, 15, 9, 20, 57, 33,
For i = e To 9
ListBox1.Items .Add (numbers (i))
ListBox1.Text &= vbNewLine
Next
End Sub
2)The button to sort the array in the descending order:

Private Sub Button2_Click (sender As Object, e As EventArgs) Handles


Button2.Click
ListBox1. Items .Clear ()
For i To 8
For j e To 8 i
If (numbers (j) < numbers (j + 1)) Then
Aux numbers (j)
numbers (j) = numbers (j 1)
numbers(j + 1) = Aux
End If
Next
Next
For i 0 To 9
ListBox1.Items.Add (numbers(i))
ListBox1.Text &= vbNewlLine
Next
End Sub
3)The button to sort the array in the ascending order:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.click
ListBox1.Items.Clear()
For i e To 8
e To 8 i
For j
If (numbers (j) > numbers (j + 1)) Then
Aux numbers (j)
numbers (j) = numbers (j + 1)
numbers (j + 1) = Aux
End If
Next
Next
For i = To 9
ListBox1.Items.Add (numbers (i))
ListBox1.Text &= vbNewLine
Next
End Sub
End Class

Q2)
1.To activate a menu item, double click on the item and an event will be added  
inside the event I will write:
   Me.Close()
2.Select the text property of the menu item and add an ampersand symbol (&)
before the x letter.
 
3.Select the ShortcutKeys property of the menu item, check the Alt and select
the E letter from the dropdown box.

Q3)
OpenFileDialog1.ShowDialog()

Q4)
 Catch ex As Exception
    MessageBox.Show(ex.Message)
       End Try

Q5)
Dim f1 As FileStream = New FileStream(“The file
name",FileMode.OpenOrCreate, FileAccess.ReadWrite)

Q6)
Imports System.IO

Q7)
Dim strFileName As String
Dim DidWork As Integer = OpenFileDialog1.ShowDialog()
       If DidWork = DialogResult.Cancel Then
           MessageBox.Show("Cancel Button Clicked")
       Else strFileName = OpenFileDialog1.FileName
           Process.Start(strFileName)
       End If

You might also like