11 Project 2 Temperature Conversion (Not graded).

Slides:



Advertisements
Similar presentations
Web Page Design Using Tables Here you see three examples of how tables can be used to organize your content. We call this page layout or design. You can.
Advertisements

Chapter 8 Improving the User Interface
CS1010 Programming Methodology
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
11 ASP.NET Controls II Beginning ASP.NET 4.0 in C# 2010 Chapter 6.
MIS 3200 – Unit 4 Complex Conditional Statements – else if – switch.
CHAPTER 30 THE HTML 5 FORMS PROCESSING. LEARNING OBJECTIVES What the three form elements are How to use the HTML 5 tag to specify a list of words’ form.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 7 Event-Driven.
Computing Concepts Advanced HTML: Tables and Forms.
Lesson 8 Creating Forms with JavaScript
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
CPS 2231 Computer Organization and Programming Instructor: Tian (Tina) Tian.
ITM © Port, Kazman1 ITM 352 HTML Forms, Basic Form Processing.
JavaScript Form Validation
Lecture 6 – Form processing (Part 1) SFDV3011 – Advanced Web Development 1.
MIS 3200 – Unit 6.2 Learning Objectives How to move data between pages – Using Query Strings How to control errors on web pages – Using Try-catch.
JavaScript & jQuery the missing manual Chapter 11
WEB FORM DESIGN. Creating forms for a web page For your web project you have to design a form for inclusion on your web site (the form information should.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
1 Project 7: My Photo Album Graded Project. 2 Assignment Write a web app to permit users to upload and view photos. User can keep up to five photos on.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Creating a Web Site to Gather Data and Conduct Research.
1 Project 4: XML Product Browser (Not Graded). Objectives This project is an exercise of the following knowledge and skills: Accessing and displaying.
WEBiT Adding a new page. 1. View a page like the one you wish to create a. Navigate to a page with a similar layout to the new page you wish to create.
Mastering Char to ASCII AND DOING MORE RELATED STRING MANIPULATION Why VB.Net ?  The Language resembles Pseudocode - good for teaching and learning fundamentals.
08/10/ Iteration Loops For … To … Next. 208/10/2015 Learning Objectives Define a program loop. State when a loop will end. State when the For.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
1 Project 4: Vehicle Inventory. 2 Write a program to read a text file containing information about vehicles and output the information First in the order.
Using Client-Side Scripts to Enhance Web Applications 1.
Introduction to HTML Part 3 Chapter 2. Learning Outcomes Identify how to design frames. Explain frames’ attributes. Describe the method on designing forms.
1 Project 3: Chomp (Not graded). 2 Project 3 The game of Chomp was described in a Math Trek column in Science News:
Action button “search” will query the jobs table once clicked.
Programming Assignment 3 Add forms in your web page so that visitors can add a comment about your web page – Example:
1 Project 7: Northwind Traders Order Entry. 2 Northwind Order Entry Extend the Select Customer program from Project 6 to permit the user to enter orders.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 8 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 8 Creating.
PHP Form Introduction Getting User Information Text Input.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 3 Variables, Constants, Methods, and Calculations.
Button and Textbox. Input  Input objects are used to obtain input from the user viewing the webpage. They allow the user to interact with the Web. 
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Class Average Application Introducing the Do...Loop While and Do...Loop Until.
11 Project 2 Towers of Hanoi. 22 Towers of Hanoi is a well known puzzle that can be very difficult to solve manually but can be programmed very easily.
1 Project 5: Printing Address Labels. 2 Assignment Write a Windows forms program to display and print a set of address labels. Input from a csv file.
1 Project 3 The Kumquat Society Conference. 2 Conference Registration In this project you will write a program to handle a conference registration. The.
Moodle Basic Assessment Methods Staff Guide. Adding a Assignment Click Add an Activity or Resource With the course in editing mode...
Programming with Microsoft Visual Basic th Edition
WEB FORM DESIGN. Creating forms for a web page For your web project you have to design a form for inclusion on your web site (the form information should.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Student Grades Application Introducing Two-Dimensional Arrays and RadioButton.
1 Project 1: Tickets. 2 Class Ticket Write a definition for class Ticket. A Ticket object corresponds to a physical ticket for a stage show. Attributes.
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
1 Project 4 Address Lookup. Project 4 Write an ASP.NET app that permits users to retrieve addresses from a potentially large list of addresses. There.
1 Project 3: Farey Sequences. 2 Farey Sequences Further details about Farey sequences, and more examples, can be found in the Wikipedia article:
Prepared by the Academic Faculty Members of IT. Tables Creating Tables. Merging Cells. Splitting Cells. Sorting Tables. Performing Calculations.
HTML FORM Lab Exercise IST Guideline Add forms in your web page so that visitors can add a comment about your web page Forms should include the.
1 Creating a Menu Bar on a Secondary Web Page  It is important for visitors to be able to move easily from one page to another  You will create a menu.
11 Project 2 Temperature Conversion. 22 Project 2: Temperature Conversion Write an ASP.NET Web Forms app to convert temperatures from Fahrenheit to Celsius.
1 Project 5: Leap Years. 222 Leap Years Write a program that reads an integer value from the user representing a year and determines if the year is a.
1 Project 4: Computing Distance. 222 Computing Distance Write a program to compute the distance between two points. Recall that the distance between the.
Murach’s Visual Basic 2008, C7, modified or added© 2008, Mike Murach & Associates, Inc. Slide 1.
CSC 121 Computers and Scientific Thinking Fall Event-Driven Programming.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
1 Project 6: Northwind Orders. 2 The Northwind Traders Database The Northwind Traders database was created by Microsoft for training and demonstration.
Project 9 Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms.
MIS 3200 – Unit 4 Complex Conditional Statements else if switch.
Chapter 6 Event-Driven Pages
JavaScript Form Validation
HTML Forms What are clients? What are servers?
Murach's JavaScript and jQuery (3rd Ed.)
Presentation transcript:

11 Project 2 Temperature Conversion (Not graded)

22 Project 2 Write a web app to convert temperatures from Fahrenheit to Celsius and from Celsius to Fahrenheit. The web form should be similar to that shown on the next slide.

3 The Web Form

4 Functional Requiremens The user can enter a decimal number into either TextBox and click the corresponding “Convert” button. The app does the conversion and displays the result in the other TextBox. The user must then click the Clear button before doing anything else.

5 Example User enters 85.2 into the Fahrenheit input box. User then clicks the >> button.

6 Example App displays the corresponding Celsius temperature. Convert buttons and input boxes are now disabled until user clicks Clear.

7 Example User clicks Clear and app returns to initial state.

8 Initial State All buttons are enabled. Both TextBoxes are empty but enabled. User can enter text into either TextBox. After entering text into either TextBox User can change contents of either TextBox.

9 Convert Buttons When the user clicks a “convert” button ( >) If the corresponding input is valid Do the conversion. Put the output into the other TextBox Disable both Convert buttons. Disable both TextBoxes. If the input is not valid Display an error message. Disable both Convert buttons. Disable both TextBoxes.

10 The Clear Button The Clear button should always be enabled. When the user clicks the “Clear” button Revert to the initial state Clear both TextBoxes. Enable both TextBoxes. Clear the Error Message. Enable both “Convert” buttons.

11 Error Example User enters 100c as Celsius input and clicks <<. App displays error message and disables both inputs and both Convert buttons. User must click Clear in order to continue.

12 Specifications Use the C# Decimal type for all numerical values and arithmetic operations. See Chapter 2 of textbook. Show conversion results with one decmal place. Page contents should stay centered (left to right) if page is resized.

13 Wider Page

14 Narrow Page

15 Hints and Tips All C# numeric types have a TryParse method and a ToString method. Look these up if you are not familar with them. They will be useful for this project. Use an HTML table to control layout. The buttons will need to be in a table inside a cell of an outer table.

16 Submission Project is due by 11:59 PM, Wednesday, May 30. No late submissions will be accepted. Deliverables: Default.aspx Default.aspx.cs Submit your ASPX files using the Blackboard Assignment for this class. If you work as a pair or a group, each member should submit their own copies of the files.