Project 1 - V&V SW Analysis - I
US-1:As a Product owner,when long pressed the power button of the phone shall switch on with a company logo at the center of the screen.
if(long pressed the power button of the phone)
{
print..company logo at the center of the screen.
}
Else
{
print..Long press the phone
}
US- 2: As a Customer,when the power button is pressed my phone is switched ON and all my icons of the APPS shall be present in the grid
if(pressed power button of the phone)
{
phone screen=on_state;
display() .....all the apps in the phone;
}
else {
phone screen = off_state;
}
US- 3: As a Product owner,when the phone is powered ON ,I shall see the "call the phone" icon as the first icon at the bottom bar of my screen.
if (phone=ON){
display(call the phone)
display(peripherals)
display(ISR)
}
else
{
phone=OFF STATE;
}
US- 4: As a Product owner,when the phone is powered ON, I shall see the "Dictionary" icon as the second icon at the bottom bar of my screen.
if (phone_screen=ON){
display(call the phone );
display(dictionary);
display(peripherals);
display(ISR);
}
else{
phone_screen=OFF;
}
US- 5: As a Product owner,when I Clicked my "call the phone" icon ,all the contacts shall be visible based on chronological order.
if(phone_screen==ON && click(call the phone)==1 ){
display(contacts saved on device);
bubble_sort(contact_list);
}
else
{
phone = OFF;
}
US- 6: As a Product owner,when I Clicked my "Dictionary icon ,a search bar shall appear at the middle of the screen to let me search the meanings of the words I desire.
if (phone==ON && click(dictionary)==1){
position of search bar=middle;
default print("click here to search");
display(search bar);
return 0;
}
else {
phone = off;
}
US- 7: As a Product owner,when I long pressed my "power on" button ,my phone shall be switched off saying "Good-Bye” Message.
if (phone == ON && Lon pressed == 1){
print....choose 1,restart,2-turn off;
if(choice==2){
print...Good bye;
}
}
US-8: As a product owner ,my font in the mobile shall always be ''calibri (Body)" and shall be of size 12.
if (phone == ON ){
Default_font = "calibri(Body)"
Default_size=12
}
else{
Font = Chosen by user
}
US-9:As a Customer,I need my UI to be touch responsive.
if (piezo_voltage>=threshold){
phone=ON;
}
else if(piezo_voltage<threshold){
phone=off;
}
US-10: As a customer ,my mobile phone should have no hard buttons.
if (phone_display!==hard buttons){
phone display=Touch screen;
PLC for manufacturing =ON;
Manufacturing process is ON;
return0;
}