Create a page that will have a simple calculator

Assignment Help Visual Basic Programming
Reference no: EM132678853

ENTD 462 Enterprise Development Using ASP.NET - American Public University

Lab 1: Using Web forms and C# (code behind) do the following:-

1) Create a page that will have a simple calculator that does the four main operations (add, subtract, divide, multiply)
2) Create 3 text boxes (first number, second number, result) 4 buttons one for each operation. Add additional button to clear the results
3) Prevent dividing by zero
4) Appraise the impact of Microsoft's Visual Studio.NET on Information Technology Management and on Global Economies as it applies to developing, deploying, and managing websites using various resources.
5) Name the form MyCalc.aspx
Compress the solution with all the files and submit it as MyCalcaspx001.zip.

Lab 2: Add a new page to the prior site to do the following :-

You are going to use JavaScript.
1) Create a page that will have a simple calculator that does the four main operations (add, subtract, divide, multiply)
2) Create 3 text boxes (first number, second number, result) 4 buttons one for each operation.

Add additional button to clear the results

3) Prevent dividing by zero

4) Explain the differences between ASP.NET web forms and JavaScript developments (pros/cons)

5) Examine the concept of managed data providers within the .NET Framework.

6) Name the page MyCalc.html

Compress the solution with all the files and submit it as MyCalchtml002.zip.

Lab 3: Add a new page to the prior site to do the following :-

You are going to use JQuery.
1) Create a page that will have a simple calculator that does the four main operations (add, subtract, divide, multiply)
2) Create 3 text boxes (first number, second number, result) 4 buttons one for each operation.

Add additional button to clear the results

3) Prevent dividing by zero

4) Create the functions as a web services

5) Explain the differences between ASP.NET web forms, JavaScript, and JQuery developments (pros/cons)

6) Name the page MyCalcJq.html
Compress the solution with all the files and submit it as MyCalcJqhtml003.zip.

Lab 4: Add a new page to the prior site to do the following :-

Review the example in lesson 5. Add a new page to the prior site to do the following :-
Here is an example;
<!DOCTYPE html>
<html>
<body>
<!-- The original example can be found-->
<p id="demo">Let AJAX change this text.</p>
<button type="button" onclick="loadDoc()">Change Content</button>
<script>
function loadDoc()
{
// declaration for the AJAX object var xhttp;
if (window.XMLHttpRequest) {
// code for modern browsers xhttp = new XMLHttpRequest();
} else {
// code for IE6, IE5
xhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) { document.getElementById("demo").innerHTML = xhttp.responseText;
}
};

xhttp.open("get", false);
// You can use GET or POST with the open function
// true for Asyncournance
// false for Syncournance xhttp.send();
}
</script>
</body>

</html>

You are going to use Ajax.
1) Create a page that will have a simple calculator that does the four main operations (add, subtract, divide, multiply)
2) Create 3 text boxes (first number, second number, result) 4 buttons one for each operation.

Add additional button to clear the results

3) Prevent dividing by zero

4) Explain callback feature, give me an example explaining callback

5) Create the functions as a web services

6) Explain the differences between ASP.NET web forms, JavaScript, JQuery, and Ajax developments (pros/cons)
7) Make sure to review Example (Server-side and client-side example) In the lesson. Example (Server-side and client-side example)

The server-side code
Before we start, let us create an empty web site for practice.
In default.aspx code behind, copy and paste the code below (service)

protected void Page_Load(object sender, EventArgs e)
{
try
{
String outstr = "";

outstr += "<p> AJAX is not a new programming language. </p>";
outstr += "<p> AJAX is a technique for creating fast and dynamic web pages. </p>"; outstr += "<p> This file is located at the local web server </p>"; Response.Write(outstr);
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}

Compile and run the above code, if you are using the development web server, note the generated port number.
Now let us call the service from the client, here is the client code

The client side code
<!DOCTYPE html>
<html>
<body>
<p id="demo">Let AJAX change this text.</p>
<button type="button" onclick="loadDoc()">Change Content</button>
<script>
function loadDoc()
{
try
{
// declaration for the AJAX object var xhttp;
if (window.XMLHttpRequest) {
// code for modern browsers xhttp = new XMLHttpRequest();
} else {
// code for IE6, IE5

xhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) { document.getElementById("demo").innerHTML = xhttp.responseText;
}
};
xhttp.open("get", "https://localhost:{generated port number from above}/Default.aspx", false);
// xhttp.open("get", "/Default.aspx", false);
xhttp.send();
}
catch (ex)
{
alert(ex.message)
}
}
</script>
</body>
</html>
Because of security the above code may not work at your computer, that is ok.

Compile and run the above code, if you are using the development web server, note the generated port number.
Now let us call the service from the client, here is the client code
Compress the solution with all the files and submit it as Ajax004.zip.

Lab 5: Create a new MVC project with the following

You are going to use Razor
1) Create a page that will have a simple calculator that does the four main operations (add, subtract, divide, multiply)
2) Create 3 text boxes (first number, second number, result) 4 buttons one for each operation.

Add additional button to clear the results

3) Prevent dividing by zero

Compress the solution with all the files and submit it as MVC project005.zip.

Lab 6: Create a new WEB API project with the following

The front end is JavaScript/JQuery
1) Create a page that will have a simple calculator that does the four main operations (add, subtract, divide, multiply)
2) Create 3 text boxes (first number, second number, result) 4 buttons one for each operation.

Add additional button to clear the results

3) Prevent dividing by zero

4) Create web services for the calculations

5) Compare MVC and WEB API developments.

Compress the solution with all the files and submit it as JavaScript_JQuery006.zip.

Attachment:- Enterprise Development Using ASP.NET.rar

Reference no: EM132678853

Questions Cloud

The person in plato allegory of the cave : Describe the movement of the person in Plato's allegory of the cave. Be very specific about the various stages in this movement,
How much revenue would be recognized by wildhorse : Wildhorse Company, Using five-step process for revenue recognition, determine how much revenue would be recognized by Wildhorse. Assume IFRS is followed.
Calculate the ending inventory at cost using retail method : Calculate the ending inventory at cost using the retail method. (Round intermediate calculation to 2 decimal places, e.g. 15.21% and the final answer)
Find what is the monthly loan payment : The nominal interest rate would be 6%, with interest paid monthly. What is the monthly loan payment? Round your answer to the nearest cent.
Create a page that will have a simple calculator : Create a page that will have a simple calculator that does the four main operations and Create a page that will have a simple calculator that does the four main
Determine the correct amount of net income for April : Determine the correct amount of net income for April and the total assets, liabilities, and stockholders' equity at April 30
Framers intentionally designed process : The Framers intentionally designed a process for selecting presidents that would minimize the president's political power - the Electoral College
Journalize the adjusting entries required at December : The supplies account balance on December 31 is $1,375. The supplies on hand on December 31 are $280. Journalize the adjusting entries required at December
Describe how federal policy affects your current : Describe how a federal policy affects your current or desired workplace.

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms". This assignment will contain two (2) Parts: Written Paper and Visual Basic Prototype. The Visual Basic Prototype is not included in the total page count but is included in the e..

  Visual basic programming discussion

The use of decision logic is one of the major concepts of computer programming. The decision takes your code from being sequential to one that can take various options based on the different conditions. Determine the method of coding that you would u..

  Ticketseller

Use Visual basic 2010Visual Basic,  TicketSeller. This assignment will contain two (2) Parts: Event Planning Document and Coding phase. You must submit both parts as separate files for the completion of this assignment. Remember, you are only to de..

  Data storage & "exception error trapping"

Discussion on Data Storage and  "Exception Error Trapping".

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms".

  The implementation of server side of the application

Implementation of dynamic content, server side (backend) and database for your web site using Microsoft Visual Studio 2012

  Need help building a vwd website

Need help building a VWD website. This website may not go live. I have little progress as a family tragedy has impeded my time for school.

  To develop a visual basic console application

The aim of the assessment is to develop a Visual Basic console application that performs a number of mathematical functions. The mathematics package will be menu driven, i.e. a number of options will be displayed, and the user will be able to input w..

  Program in basic which prompts user to input two integers

Write down the program by using Small Basic which prompts the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).

  Develop vb-net application that includes arrays and loops

Develop a VB.NET application that includes arrays, loops, and IF statements to do the following. Your output must also display the number of applicant(s) being interviewed.

  Visual basic program to accept numeral values

Write a VISUAL BASIC program to accept numeral values of any unit, sum up the total, calculate the average, and then Output the result with a proper unit.

  Write a visual logic program to accept series of number

Write a Visual Logic program which accepts a series of numbers, until the first negative value is entered. The maximum number of non-negative input values is 250.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd