A Program to Calculate the sum of Two Numbers - By Dennis Evans Gaya (S.No: 13082154)

Project Description
Dennis Gaya - University of Hertfordshire
This ASP.NET Project was created as a Class Assignment for the University of Hertfordshire MSc Computer Science program. It consists of a Program that Accepts two Numbers and displays their sum. The program includes two main files, Default.aspx and About.aspx. Default.aspx consists of controls to allow a user to enter a sequence of two numbers and calculate their sum.

Program Summary

The Program consists of a number of controls as shown in the image below.

main.png
Figure 1: Main Input Screen

A user enters two numbers in the text-boxes presented and clicks on the 'Calculate Sum!' button.
The program calculates the sum of the two numbers and displays a summary of the solution. For instance, if a user enters the following numbers; 45 and 53, as follows..

main2.png
Figure 2: Sample Calculation and Summary

The program will calculate the sum and display a summary of the calculation as shown above.

The program validates user input in two ways.
  1. Only Numbers are allowed - No strings
  2. No Blank or Null Inputs are allowed.
This is shown below

validation.png
Figure 3: Input Validation


The Program also includes a summary page (About.aspx) that displays information about the Author and functionality as shown below.

about.png
Figure 2: Program Summary

Summary of Program Features
  • Validation of User Input to Ensure that Only Numbers are Entered.
  • Input Validation to Ensure No Blank (Null) Inputs are Submitted.
  • A Text Summary of the Inputs supplied by the user and of the Calculation done by the Program.
  • Customized css Stylesheet

Last edited Oct 22, 2013 at 5:47 AM by dennisgaya, version 12