Free Essay

Vb.Net

In:

Submitted By samjones
Words 269
Pages 2
Imports Microsoft.VisualBasic
Imports System

Private Function Erlang(ByVal m As Integer, ByVal n As Double) As Double Dim gh As Double Dim j As Integer gh = 1.0 For j = 1 To m gh = 1.0 + gh * j / n Next j Return (1.0 / gh)
End Function

Private Function calc_erlangB(ByVal m As Integer, ByVal n As Double, ByVal incr As Double) As Double Dim l As Double Dim a As Double l = 0.00 Do a = Erlang(m, l) If a > n Then l = l - incr Exit Do End If l = l + incr Loop Return l
End Function

Shared Function Main() As Integer Dim [off] As Single Dim d As Integer Dim l As Double Dim incr As Double = 0.01

Console.Write("++++++++++++++++++++++ ") Console.Write(ControlChars.Lf) Console.Write(" ERLANG-B CALC") Console.Write(ControlChars.Lf) Console.Write("++++++++++++++++++++++ ") Console.Write(ControlChars.Lf) Console.Write(ControlChars.Lf) Console.Write(" Calculating for offered load") Console.Write(ControlChars.Lf) Console.Write("----------------------------------") Console.Write(ControlChars.Lf) Console.Write(ControlChars.Lf) Console.Write("ENTER THE NUMBER OF CHANNELS : ") Console.Write(ControlChars.Lf) cin>> d Console.Write(ControlChars.Lf) Console.Write("Note: Probability should be between 0 and 1") Console.Write(ControlChars.Lf) Console.Write("---------------------------------------------") Console.Write(ControlChars.Lf) Console.Write(ControlChars.Lf) Console.Write("ENTER THE BLOCKING PROBABILITY : ") Console.Write(ControlChars.Lf) cin>> l [off] = calc_erlangB(d, l, incr) Console.Write(ControlChars.Lf)

Console.Write(" RESULTS : ") Console.Write(value) Console.Write(" Erlang ") Console.Write(ControlChars.Lf) Console.Write("TRAFFIC: {0:f3} Erlang", [off])

Console.Write(ControlChars.Lf) Console.Write(ControlChars.Lf)

system("PAUSE") Return 0
End Function

Similar Documents

Premium Essay

Vb.Net

...Table of Contents Introduction .................................................................................................................... 3 Screen Designs ................................................................................................................ 4 Input Designs .............................................................................................................. 4 Output Screen Design................................................................................................ 15 User Manual ................................................................................................................. 21 User Login ................................................................................................................ 21 User Register............................................................................................................. 22 Forget Password ........................................................................................................ 23 Change Password ...................................................................................................... 24 Admin Edit................................................................................................................ 25 Student Register ........................................................................................................ 26 Search .........................................................................................

Words: 5224 - Pages: 21

Free Essay

Vb.Net

...A MODEL OF OPTIMAL INTERNATIONAL MARKET EXPANSION THE CASE OF US HOTEL CHAINS EXPANSION INTO CHINA E. Hachemi Aliouche, Ph.D. Associate Professor, Hospitality Management Whittemore School of Business and Economics UNIVERSITY OF NEW HAMPSHIRE, USA and Udo Schlentrich, Ph.D. Associate Professor, Hospitality Management Whittemore School of Business and Economics UNIVERSITY OF NEW HAMPSHIRE, USA ABSTRACT: Departing from the explanatory and descriptive approaches common in many of the academic studies of international expansion, this paper uses a managerial approach to develop and illustrate a process that can assist managers in the formulation of their international expansion strategies and plans. A comprehensive model of international expansion is outlined and applied to determine the optimal country to be targeted for entry by a US hotel firm and the optimal entry mode to be used. The model consists of three sections. Section One (macro assessment) identifies the major external macroenvironmental variables that determine the risks and opportunities of international expansion: market size, market growth and purchasing power; political, economic, legal and regulatory risks; and cultural and geographic distances. Through macro assessment, countries with the optimal risk/opportunity profiles are identified and ranked. Section Two (micro assessment) is applied to the optimal countries identified in Section One to estimate the potential profitability and financial value created (as...

Words: 6326 - Pages: 26

Free Essay

Coding Standards for Vb.Net

...Coding Standards: Coding Standards are a set of guidelines for a specific programming language that recommend programming style, practices and methods for each aspect of a piece program written in this language. * Your code will have a consistent look, so that readers can better focus on content, not layout. * Readers understand your code more quickly because they can make assumptions based on previous experience. * You can copy, change, and maintain the code more easily. * You help ensure that your code demonstrates "best practices" for Visual Basic. VB.NET CODING STANSARDS 1. Naming Conventions * Do not use "My" or "my" as part of a variable name. This practice creates confusion with the My objects. * You do not have to change the names of objects in auto-generated code to make them fit the guidelines. 2. Layout Conventions * Insert tabs as spaces, and use smart indenting with four-space indents. * Use Pretty listing (reformatting) of code to reformat your code in the code editor. * Use only one statement per line. Don't use the Visual Basic line separator character (:). * Avoid using the explicit line continuation character "_" in favor of implicit line continuation wherever the language allows it. * Use only one declaration per line. * Add at least one blank line between method and property definitions. 3. Commenting Conventions * Put comments on a separate line instead of at the end of a line of...

Words: 574 - Pages: 3

Free Essay

Basic Directx Transformation with Vb.Net

...Basic Directx Transformation with VB.NET Introduction In this tutorial, we will try to discuss the basic transformation in DirectX. We will discuss only the world transform because it’s the simplest transform, but honestly I should say it’s a complicated subject, especially if you tried to understand the underlying concepts of transformation, then you will be lost in pure math problems. So, I will not discuss the mathematical concepts of vectors and matrices (because I don’t understand it myself!) but we learn how to use them for transformation. Background This tutorial is a continuation of my previous tutorial, “Starting Directx using Visual Basic” so I assume you already understand how to create a DirectX device. Draw a Square “Download incomplete_project and start working on it.” Firstly, we will draw a square before transforming it. Declare this variable in your class: Dim buffer As VertexBuffer In creat_vertxbuffer Sub, write: Sub creat_vertxbuffer() buffer = New VertexBuffer(GetType(CustomVertex.PositionColored), 4, device, _ Usage.None, CustomVertex.PositionColored.Format, Pool.Managed) Dim ver(3) As CustomVertex.PositionColored ver(0) = New CustomVertex.PositionColored(-0.5F, -0.5F, 0, Color.Red.ToArgb) ver(1) = New CustomVertex.PositionColored(-0.5F, 0.5F, 0, Color.Green.ToArgb) ver(2) = New CustomVertex.PositionColored(0.5F, -0.5F, 0, Color.Blue.ToArgb) ver(3) = New CustomVertex.PositionColored(0...

Words: 2862 - Pages: 12

Free Essay

Dbmsa

...1. What is Metadata? Metadata is termed as “Data about content of the data” and it is found in the catalog of libraries. Practically, it is used at back side of book to see the necessary topic. 2. What is the difference between VB and VB.Net? Following are the differences between VB and VB.Net: VB | VB.Net | Platform dependent | Platform Independent | VB is backward compatible | VB.Net is not backward compatible | Interpreted | Compiler Language | Exception Handling by ‘On Error…..Goto’ | Exception Handling by ‘Try….Catch’ | Cannot develop multi-threaded applications | Can develop multi thread applications |   3. What is the difference between C# and VB.Net?     Following table gives differences between C# and VB.Net: VB.Net | C# | Optional Parameters are accepted | Optional Parameters are not accepted | Not case sensitive | Case Sensitive | Nothing is used to release unmanaged resources | ‘Using’ is used to release unmanaged resources | Support of Both structured and unstructured error handling | Unstructured error handling | 4. What is namespace?     A namespace is an organized way of representing Class, Structures and interfaces present in .NET language. Namespaces are hierarchically structured index of a class library, available to all .NET Languages.                5. Which namespace are used for accessing the data?  System.Data namespace is used for accessing and managing data from the required data source. This namespace deals only with the data from the specified...

Words: 1986 - Pages: 8

Free Essay

Chapter11 การออกแบบรายงานด วย Business

...:156: Object Oriented Programming for VB.NET Mr.Anooruk Pomkotka LRU บทที่ 11 การออกแบบรายงานด้วย Business Objects Crystal Report การสร้ างรายงานด้ วย Crystal Report ของบริษัท Business Objects เป็ นโปรแกรมติดตั้งเสริมเพื่อให้ โปรแกรมที่พัฒนาด้ วยภาษาต่างๆให้ มีความสามารถในการสร้ างรายงานได้ ในรูปแบบต่างๆ ซึ่ง การสร้ างรายงาน ด้ วย Crystal Report น้ ีเพียงพอต่อความต้ องการของนักพัฒนาในการสร้ างรายงาน ดั ง นั้ น ในเวอร์ ชั่ น .NET ของ Microsoft Visual Studio จึงได้ มีการผนวกเอาความสามารถการสร้ างรายงานของ Crystal Report บรรจุไว้ ด้ วย ซึ่งทาให้ .NET น้ันมีความสามารถในการสร้ างรายงานโดยไม่ต้องติดตั้ งโปรแกรม Crystal Report เพิ่มเติม จึงมีความสะดวกมากในการพั ฒนาโปรแกรมระบบต่า งๆ ซ่ึงผู้พัฒนาสามารถเลือกติดตั้งโปรแกรม Crystal Report ของบริษัท Business Objects หรือเลือกที่จะสร้ างรายงานจาก Crystal Report ท่ถูกติดตั้งมาพร้ อมกับ ี .NET กได้ ซึ่งเนื้อหาในบทนี้จ ะได้ กล่าวถึงการสร้ างรายงานทั้งสองแบบ จะพบว่ าการสร้ างรายงานที่สองแบบมี ็ ความไม่แตกต่างกันมากนัก นอกจากการออกแบบรายงานด้ วยเครื่องมือของ Crystal Report ท้งสองแบบแล้ ว สิ่งสาคัญในการสร้ าง ั รายงานด้ วยภาษาต่าง จะต้ องมีชุดคาสั่งในการติดต่อกับไฟล์รายงาน ท่ได้ ออกแบบไว้ โดยในบทนี้น้ ีผ้ ูสอนได้ สร้ าง ี คลาสเพื่อใช้ จัดการควบคุมการแสดงผลของรายงานด้ วยแนวคิดเชิงวัตถุ ซึ่ งมีความสะดวกในสาหรับนักศึกษา การ นาไปต่อยอดและประยุกต์ใช้ ต่อไป ในการเชื่อมต่อ (Connect) ระหว่ างฐานข้ อมูลและ Crystal report น้ันในการศึกษาในครั้ งนี้จะขอ ยกตัวอย่ า งกา รเชื่ อ มต่ อผ่ าน ODBC เพื่ อความสะดวกในการศึ กษา ซ่ึ งในการปฏิบั...

Words: 2303 - Pages: 10

Free Essay

Werwqewq

...Being a CCNA certified and thre benefits CCNA is one of the most vouched and valued IT certification throughout the world. Cisco certifications have benefited both the employee as well as the employer. It is a known fact that many people have literally changed their lives and have got real benefits and acquired valuable skills in the process of becoming certified. In the process of getting your CCNA certification you are sure to increase your knowledge base and understanding of the concepts. . In the process of getting certified you would be bombarded with many advancements of the industry thus increasing your overall knowledge. CCNA Certification increases your chances of promotion. You could expect to move up in the hierarchy of your organization. Getting a CCNA certificates commands a certain amount of respect from your colleagues and employer. Some of your colleagues would have also tried to get certified, but could not get certified. So, this achievement of yours deserves a back-patting. You always wanted to get certified, so after you receive your certification letter and other stuff, a sense of personal satisfaction, gratification, and relief is felt. Those were some of the benefits that you could receive after getting CCNA certified. Top 10 best free web design software 1. Coffeecup html editor 2. Notepad++ 3. Pagebreeze 4. Firebug 5. Bluefish editor 6. Brackets 7. kompoZer 8. openBexi 9. GIMP 10. Bluegriffon The CoffeeCup...

Words: 541 - Pages: 3

Free Essay

Antonio Illescas, Systems Engeeniering

...SINFOCORP SRL Manual para crear Instalador VB.NET Tutorial para crear instalador de Proyecto en Visual Basic .NET Carlos Hidalgo Lache 1 SINFOCORP SRL Manual para crear Instalador VB.NET PROGRAMAS DE INSTALACIÓN Introducción Una vez que una aplicación VB.NET ha sido desarrollada, comprobada y compilada, debe ser instalada en las máquinas cliente donde será utilizada en el futuro. En ese proceso el entorno .NET suministra una serie de métodos y herramientas para realizar programas instaladores dependiendo del tipo de aplicación creada y de las características de dicha máquina cliente. El programa instalador debe ocuparse de cargar la aplicación en la máquina cliente así como cualquier otro archivo o recurso que ésta emplee en su funcionamiento, ya sea en el estado actual o en el futuro previsto. Se distinguen tres tipos de instalaciones: instalación XCOPY programa instalador de aplicación programa instalador de módulo Instalación XCOPY Es el método más sencillo de instalación y no precisa el uso de ninguna herramienta de Visual Studio.NET por lo que constituye un método accesible a cualquier desarrollo. Se basa en el proceso de copia de la carpeta de la aplicación en la máquina cliente utilizando para ello el comando XCOPY de MSDOS disponible en cualquier sistema Windows. Para utilizarlo debe accederse a la línea de comandos desde Inicio Þ Todos los Programas Þ Accesorios Þ Símbolo del Sistema y la sintaxis a emplear es XCOPY ruta_carpeta_origen...

Words: 4418 - Pages: 18

Premium Essay

Sem 5 Bca

...University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune Pattern 2008, w.e.f. 2010-11 Semester – V Course No. 501 502 503 504 505 506 Subject Name VB.NET or VB.NET Programming Internet Programming and Cyber Law Principals of Marketing Core Java Project work ( VB ) Computer Laboratory and Practical Work (.NET + Core Java ) Semester – VI Course No. 601 602 603 604 605 606 Subject Names E-Commerce Multimedia Systems Introduction to Syspro And Operating Systems Advance Java Project Work (Banking & Finance, Cost Analysis, Financial Analysis, Payroll, EDP, ERP etc.) Computer Laboratory and Practical Work (Multimedia + Advanced Java) University of Pune, T.Y. B.C.A., Semester V & VI 2 T.Y. B.C.A. Semester V Subject Name -: VB.NET or VB.NET Programming. Course Code -: 501 Sr. No. 1. TOPICS .NET Framework (Introduction to .NET Framework) 1.1 Introduction 1.2 CLR 1.3 CTS 1.4 MSIL 1.5 Garbage Collection 1.6 Assemblies 1.6.1 Assembly content 1.6.2 Assembly types VB.Net Programming 2.1 Windows Forms 2.1.1. Setting Title Bar Text 2.1.2. Seeing the initial position of a form 2.1.3. Minimizing/Maximising a form 2.1.4. Working with multiple forms 2.1.5. Setting the StartUp Form 2.1.6. Adding controls to a form 2.1.7. Setting properties at Design Time...

Words: 3973 - Pages: 16

Free Essay

Personal Information

...Ethiopia for B.Sc(CS & IT) and I have delivered Courses Introduction to Computer Science, Fundamentals of Programming I and II, Professional Ethics In computing, Fundamentals of Database Systems, Data Structures and Algorithms, Computer Organization and Architecture, Data Communication and Computer Networking, Object Oriented Programming, Operating Systems, Internet Programming I ,Advanced Database System, Internet Programming II, Unix System Administration, System Analysis and Design, Event Driven Programming, Information Retrieval, Software Engineering, Formal Language Theory, Logic for Computer Science, Computer Graphics, Analysis of Algorithms, Introduction to : : : : : : : C, C++,VB-5,6,VB.net ,C#, Java,python MySQL,Oracle 9i, 10 and 11g, MS SQL Server 7.0,weka DreamWeaver,Developer2000, VB6,VB.net,JCreater JAVA, HTML, DHTML, JAVASCRIPT MS-DOS, WINDOW,...

Words: 506 - Pages: 3

Free Essay

Mr Mark Helou

... Baabda-Lebanon Tel: +961 3 404237 mark.helou@net.usj.edu.lb helou_marc@hotmail.com Professional Experience March 2015-Present Retail IT Departement Analyst Programmer & Support For Lipos Retail Application Tools: VB.Net, Sql Server 2012 April 2014-November 2014 Development: Software Design Consulting Group Project: Job Costing Business Module Tools: Vb6, SQL Server 2008 June 2013 –September 2013 Development Training : B.E.R.I sal Objective: construction of a software prototype for a billing software and management services of locals and Creating graphical objects. Tools: Windev,HyperFile SQL July 2012 – September 2012 Development Training - Alyotech MEAST Objective: Generating Job Description templates, Assign to human resources Business Intelligence: KPI,Reports. Tools: C#,SQL,Qlickview June 2011 – August 2011 Sales Training -Abed Tahan Objective: Explaining clients about products. 2010 –Present...

Words: 267 - Pages: 2

Premium Essay

Srs for Airline Registration

...Table of Contents 1.         Introduction 1.1       Purpose 1.2       Document Conventions 1.3       Intended Audience and Reading Suggestions 1.4       Project Scope 1.5       References 2.         Overall Description 2.1       Product Perspective 2.2       Product Features 2.3       User Classes and Characteristics 2.4       Operating Environment 2.5       Design and Implementation Constraints 2.6       Assumptions and Dependencies 3.         System Features 4.         External Interface Requirements 4.1       User Interfaces 4.2       Hardware Interfaces 4.3       Software Interfaces 4.4       Communications Interfaces 5.         Other Nonfunctional Requirements 5.1       Performance Requirements 5.2       Safety Requirements 5.3       Security Requirements 5.4       Software Quality Attributes 1. INTRODUCTION 1.1              PURPOSE The purpose of this document is to provide the software requirement specification report for the  airline database. 1.2  DOCUMENT CONVENTIONS |DB |Data base | |DDB |Distributed Data base | |ER |Entity relationship | 1.3  INTENDED AUDIENCE AND READING SUGGESTIONS ...

Words: 1563 - Pages: 7

Free Essay

Bio Data

...new things, which helps to increase my growth and which leads to the organizational growth. Highlights | * Comprehensive knowledge of primary development languages for instance C, C++, JAVA& .NET * Creative and a self motivated individual with good analytical & logical skills. Technical Exposure | Programming | C, C++, VB.NET, Java, ASP.NET | Web Development | HTML, CSS, JavaScript | Database | MySQL, Oracle, MS SQL Server, IBM DB2 | Additional Tools | Eclipse, MS Visual Studio, Notepad++, MS Office | Education | Pursuing M.C.A. from Sinhgad Institutes of Management, Pune Course | College Name | University / Board Name | Year of Passing | Percentage / CGPA | MCA | Sinhgad Institutes Of Management, Pune | University of Pune | 2015 | 54.36 | BCS | The New College, Kolhapur | Shivaji University | 2013 | 54.27 | HSC | S.M. Lohia Jr. College, Kolhapur | Kolhapur Board | 2010 | 53.17 | SSC | V.J.Deshmukh High School, Kolhapur | Kolhapur Board | 2008 | 70.76 | Internship / Projects | Project 1 | Two Wheeler Billing System | SEM | BCS - SEM 6 | Technologies | VB.NET , MySQL | Duration | 6 Months | Team Size | 2 | Synopsis: | I have developed the Two Wheeler Billing System Software to help service stations to maintain their day to day transactions.Using this software, they can maintain the transactions like vehicles registration, servicing transaction / history, billing, maintaining customer history also it...

Words: 451 - Pages: 2

Free Essay

Performance Analysis of Substitution Cipher Based Cryptographic Algorithm

...CURRICULUM VITAE EGUNSOLA Olubola Kehinde 16, Adeolu Egunsola Street Off Jibowu Estate Road U-Turn Bus Stop Abule-Egba Lagos. PERSONAL PORTFOLIO Date of Birth 17th August 1972 Place of Birth Lagos State State of Origin Ogun State Nationality Nigerian L.G.A Abeokuta South Sex Male Marital Status Married Number of Child. Three Children, 8yrs, 5yrs, and 3yrs old E-Mail egunsola_olubola @yahoo.com Phone Number 08035855769 07086566947 Permanent Address 10, Ogere Road, Iperu-Remo, Ogun State. EDUCATIONAL BACKGROUND Institution Certificate Date Federal University of Technology M.Tech 2010-2013 Yola, Adamawa State Operations Research option(Computer Simulation) Olabisi Onabanjo University Ago Iwoye B.Sc (Ed) 1997-2000 (Formerly Ogun State University) Computer Science Federal College of Education Osiele N.C.E 1994-1996 Abeokuta Ogun State Computer Science/PSC Egbado College Ilaro ...

Words: 1309 - Pages: 6

Free Essay

Security System

...3 1.1.3 Rationale 4 1.1.4 Target Users 5 1.2 Scope and objectives 5 1.3 Project plan 6 1.3.1 System Functionality 6 1.3.2 Deliverables 7 1.3.3 Project Scheduling 8 1.3.4 Assumptions and Constraints 9 CHAPTER 2: LITERATURE REVIEW 10 2. Domain Research 10 2.1 Real Life Self-service system case studies 10 2.2 Protecting data in a self-service system 13 2.2.1 Data Encryption: 14 What is data encryption? 14 Types of Data encryption: 14 Types of data encryption methods: 15 2.2.2 Digital Signature 16 2.2.3 Firewalls 17 Network layer Firewall: 18 Application layer firewall: 18 Proxies: 19 2.24 Intrusion Detection System (IDS) 20 3. Technical Research 23 3.1 Language 23 JavaScript 23 PHP 24 VB.Net 24 3.2 Databases 25 MS Access 25 MS SQL Server 25 MySQL 26 Language and database justification: 26 3.3 System architecture 27 3.4 Methodology 29 Spiral Model 32 Methodology Justification 32 References: 34 Chapter 1 Introduction to the study 1.1 Background of the project 1.2.1 Overview The paper is based on the improvement of the service at the administration office through the implementation of a new system to replace the traditional way currently used to deliver such services to the student community. It focuses mainly on the development and implementation of this system, the advantage and disadvantage of both the old and new platform of service delivery in the office (Ankit Fadia, 2003). Information...

Words: 6376 - Pages: 26