This website uses cookies to ensure you have the best experience. Learn more

Visual Programming Essay

457 words - 2 pages

1. using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Csharp_exercises
{
class Program
{
static void Main(string[] args)
{

int x,y,z;

Console.Write("Enter value 1:");
x = int.Parse(Console.ReadLine());
Console.Write("Enter value 2:");
y = int.Parse(Console.ReadLine());
Console.Write("Enter value 3:");
z = int.Parse(Console.ReadLine());

if (x > y)
   if (x > z) Console.Write("The greatest value is:{0}.",x);
   else Console.Write("The greatest value is:{0}.", z);
else if (y > z) Console.Write("The greatest value is:{0}.",y);
   else Console.Write("The greatest value is:{0}.",z);

Console.ReadLine(); 
    }
  }
}

2. using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Csharp_exercises
{
class ...view middle of the document...

WriteLine("Grade B");
else if ((avg >= 50) && (avg < 70)) Console.WriteLine("Grade C");
else if (avg < 50) Console.WriteLine("Grade F");
else Console.WriteLine("Invalid input");

Console.ReadLine(); 
     }
  }
}

3. using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Csharp_exercises
{
class Program
{
static void Main(string[] args)
{
char key;
Console.Write("Press a number key:");
key = (char)Console.Read();
switch (key)
{
case '0': Console.WriteLine("You pressed 0"); break;
case '1': Console.WriteLine("You pressed 1"); break;
case '2': Console.WriteLine("You pressed 2"); break;
case '3': Console.WriteLine("You pressed 3"); break;
case '4': Console.WriteLine("You pressed 4"); break;
case '5': Console.WriteLine("You pressed 5"); break;
case '6': Console.WriteLine("You pressed 6"); break;
case '7': Console.WriteLine("You pressed 7"); break;
case '8': Console.WriteLine("You pressed 8"); break;
case '9': Console.WriteLine("You pressed 9"); break;
default: Console.WriteLine("Not allowed!"); break;

            }

     }
  }
}

4. using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Csharp_exercises
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("What is the correct way to declare a variable to store an integer value in C#?");
Console.WriteLine("a. int 1x=10");
Console.WriteLine("b. int x=10");
Console.WriteLine("c. float x=10.0f");
Console.WriteLine("d. string x=\"10\"");
Console.WriteLine("Choose the answer letter:");
char ans = (char)Console.read();
switch (ans)
{
   case 'a':Console.WriteLine("Invalid choice!"); break;
   case 'b':Console.WriteLine("Congratulation!"); break;
  case 'c':Console.WriteLine("Invalid choice!"); break;
  case 'd':Console.WriteLine("Invalid choice!"); break;
  default:Console.WriteLine("Bad choice!");break;

       }

    }

   }
}

Other Papers Like Visual Programming

Unit 1 Research 1 Essay

828 words - 4 pages . Visual Basic – It was developed by Microsoft and released in 1991. Microsoft intended Visual Basic to be easy to learn and use with its COM programming model. Java – A computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. It was started by James Gosling, Mike Sheridan, and Patrick Naughton in 1991 and released in 1995. It is intended to let

Intro Programing Essay

810 words - 4 pages use. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C. * 1991 - Visual Basic: Developed by Microsoft. It is a third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model first released in 1991. Microsoft intends Visual Basic to be relatively

Exploring Programming Languages

1818 words - 8 pages new STs. A further port of the same Basic called ABasiC ended up being supplied for a time with the ST's bitter rival, the Amiga (i-programmer.info, 2010). CEEMAC- was created by Brooke Boering and published by Vagabondo Enterprises in the 80’s for the Apple II family of computers. It is a programming language designed to be a visual composition language in which the programmer designed dynamic "scores" by programatically controlling color, shape

Intro to Programming Unit 1 Research Assignment

697 words - 3 pages , developer, Microsoft. Visual Basic is a third generation event-driven programming language and integrated development environment from Microsoft for its COM programming model. Visual Basic was derived from BASIC and enables the rapid application development of graphical user interface applications, access to databases using data access objects, Remote data objects, or activeX data objects and creation of ActiveX controls and objects. 3) Active

Instructions

755 words - 4 pages Asseel Hubaishi How to Compile and Run a Program in Visual Studio This set of instruction will teach you the basic know-how on using Visual Studio to execute code. This is assuming that you are interested in programming and have rudimentary knowledge in computer/internet usage. We will make sure that your computer can run Visual Studio as well as download and installing it. Lastly, we will look over some common parts of the Visual Studio

Java Programming Language Sl-275

6064 words - 25 pages Sun Educational Services Java Programming Language SL-275 Sun Educational Services Java Programming Language September 1999 Copyright 1999 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be

Programming Solution Proposal

656 words - 3 pages Programming Solution Proposal For my programming development assignment I will begin working on a time tracker. Over the course of the next three weeks, I will create a Visual Logic flowchart and write a series of papers addressing different aspects of the problem solving, selection structure and array structure. The problem I have identified is that of tracking time in a web development company I am very close to. My partner has a web

Using Sql Server In C Sharp

1404 words - 6 pages  an  overview  of  different  techniques  for  communicationg  with  SQL  Server   in  Visual  Studio  and  C#.   For  more  information  about  Software  and  Programming,  please  see  my  web  site  located   here:   http://home.hit.no/~hansha/             4       2.   SQL  Server   …   2.1

Hooo Haoo

1637 words - 7 pages platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. VISUAL BASIC- 1 Jan 1998 Visual Basic (VB) is the third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM

Sales and Inventory System

648 words - 3 pages program now (Press F5) you will see your window now has a button labeled Command1 in the center of it, but if you click the button it doesn't do anything. So lets wire things up so our program will say "Hello, World" when you click the button. Close out of your running program so you are back to the main design environment (pictured above) Visual Basic allows you to do event driven programming. This is a concept that is very powerful and easy to

Programming Languages

1070 words - 5 pages Assignment 1: Exploring Programming Languages 1970’s Pascal- created by Nicklaus Wirth Designed in 1968-1969 and published in 1970 Intended to teach students structured programming. Used to introduce as undergraduate courses. The first compiler was designed in Zurich for the CDC 600 mainframe computer. Small Talk- Created by Alan Kay

Related Essays

What You Need To Know About Programming Languages

606 words - 3 pages language is therefore made up of a set of cooperating objects instead of an instructions list. The most famous object-oriented programming these days are C#, C , Visual Basic, Java, and Python. o Structured Programming Languages An exceptional type of procedural programming, structured programming provides programmers with additional tools to handle the problems created by larger programs. When using this language, programmers are required to

Unit 1 Reaserch Essay

592 words - 3 pages . Visual Basic: Created by Alan Cooper, sold to Microsoft, in 1991, is a third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model. 3. JavaScript: Created by Brendan Eich at Netscape, in 1995, is a dynamic computer programming language.[5] It is most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user

Exploring Programing Languages Essay

580 words - 3 pages in the early 1980s. It is the main programming language used by Apple. Caml ( Categorical Abstract Machine Language) is a dialect of the ML programming language family. 1990's Python - started in December 1989[26] by Guido van Rossum at CWI in the Netherlands as a successor to the ABC language Visual Basic - a third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM

Visual Basic Preview

5065 words - 21 pages .................................................. 58 10.4 Editing, Deleting and Moving Menu Items .................................................................... 61 10.5 Assigning Keyboard Shortcuts to Menu Items ............................................................... 61 10.6 Programming Menu Items in Visual Basic...................................................................... 62 Chapter 11. Creating Context Menus in Visual Basic