Вы находитесь на странице: 1из 20

USER INTERFACE

PRESENTED BYDebarati Saha Deepak Mahanty

OVERVIEW
>USER INTERFACE >TYPES OF UI >VERIFICATION & VALIDATION >AESTHETICS >C++ STREAMS

February 7, 2011

WHAT IS INTERFACE

>>Interactions between humans and machines >>User Interface involves both hardware and software components that provide means of : Input Output

February 7, 2011

NEED FOR GOOD INTERFACE


>> First impression/look >> User-friendliness >>Less error

February 7, 2011

TYPES OF INTERFACE

>>The most common types of User Interfaces are listed below: Command-line User Interface (CUI)

Graphical User Interface (GUI)


Web User Interface (WUI)

February 7, 2011

COMMAND USER INTERFACE(CUI):


In a CUI: >> The user provides the input by typing a command string with the computer keyboard

>> The system provides output by printing text on the computer monitor. Eg. DOS,UNIX
February 7, 2011

Advantage & disadvantages of CUI:


>>ADVANTAGE: ->complicated operations can be completed using a short sequence >>DISADVANTAGE: ->not user friendly ->hard to memorise all commands ->poor aesthetic value

February 7, 2011

GRAPHICAL USER INTERFACE(GUI):


>>Using visual elements rather than text commands >>Eg. M.S. Word, Windows, Android >>Basic Components of a GUI: 1.Pointer 2.Pointing device 3.Icon 4.Windows 5.Menus 6.Toolbar

February 7, 2011

ADVANTAGE & DISADVANTAGES OF GUI:


>>ADVANTAGE: -> Decrease in training cost and support line cost

-> Increase in customer satisfaction


>>DISADVANTAGE:

->Need of proper hardware support(RAM,Hard disk space,processing power)

February 7, 2011

WEB USER INTERFACE(WUI):


>>Accepts input and provide output by generating web pages which are transmitted via the Internet
>>Viewed by the user using a web browser program Eg. Google, Ultimatix

February 7, 2011

ADVANTAGE & DISADVANTAGES OF WUI:

>>Benefits and Attributes that apply to GUI also apply to a WUI

>>Disadvantages: ->Browser dependancy ->Performance depends on internet speed

February 7, 2011

VERIFICATION & VALIDATION

>> VALIDATION:Quality assurance process

Are you building the right thing?

>> VERIFICATION: Quality control process

Are you building it right?

February 7, 2011

TYPES OF VALIDATION:
>>Client side eg.To ensure all the mandatory fields have been filled on a screen. >>Server side eg.Mismatch in username & password

February 7, 2011

AESTHETICS:
>>look and feel aspect of the application. >>easy interaction >>end user comfort level.

February 7, 2011

Elements of Aesthetics
Contrast
Color Sharpness Shape Graphics Photos

Aesthetics
Pattern

Movement

Scale Line Texture Visual Weight Balance

February 7, 2011

C++ STREAMS:
1.The Standard Output Stream ->cout 2.The Standard Error Stream ->cerr 3.The Standard Input Stream ->cin 4.The Standard Output Stream for logging ->clog

February 7, 2011

USE OF cin & cout :

input

Input

OUTPUT

February 7, 2011

VALIDATION: Handling Invalid input to cin


What happens if you supply invalid value to cin? Example: #include <iostream> using namespace std; main() { int x,y; cout<<"Please enter first number:"; cin>>x; cout<<"Please enter second number:"; cin>>y; cout<<"Product of the two number is "<<x*y<<endl; } Output

Please enter first number:a Please enter second number:Product of the two number is 799799808

TCS Internal

February 7, 2011

Handling Invalid input to cin - Solution


Cin goes in failed status Reset cin (clear) Ignore everything till end of the line in the input stream
#include <iostream> #include <limits> using namespace std; main() { int x,y; cout<<"Please enter first number:"; while(!(cin >> x)) { cout<<"Invalid Input. Please Try again:"; cin.clear(); cin.ignore(numeric_limits<int>::max(), '\n'); } cout<<"Please enter second number:"; while(!(cin >> y)) { cout<<"Invalid Input. Please Try again:"; cin.clear(); cin.ignore(numeric_limits<int>::max(), '\n'); } cout<<"Product is "<<x*y<<endl; }

TCS Internal

February 7, 2011

THANK YOU!

Вам также может понравиться