You are on page 1of 5

NAME: LARAIB ZAFAR

REG NO: 1880155


LAB TASK: 14

STEP 1

STEP 2
STIMULL TRANSITION TESTED PREDICTED RESULTING STATE

create 1. initial transiction empty

pop() 2. empty

push() 3. partially full state partially full

destroy() 4. delete destroy

pop() 3. partially full state empty

push() 5. partially full

push() 6. full state full

pop() 7. partially full

destroy() 4. delete destroy

pop() 3. partially full state partially full

push() 6. full state full

destroy() 4. delete destroy

STEP 1

STEP 2
TEST CASE PLAN

no of items=1 counter=1

while(not found) and counter<no of items found =true

if(counter=desired element) true counter++


loop back loop ends

found write(the desired element exsist in table)

DONATION MANAGEMENT SYSTEM


FUNCTIONAL REQUIRMENTS:
• register

first the donor or needy peoplehave to register and then perform the task.

• login/signup

if the user is already register then they have to signup or login .

• enter funds

then the user have to enter donation amount or item.

• collect funds

then the donation is going to be collected.

• Create profile

User and admin are able to create profile.

• Manage profile

Admin are able to manage profile

• assign items or amount

admin assign item or amount to needy.

• Check blance

Admin able to check balance.

NON FUNCTIONAL REQUIRMENTS:


• error handeling

expected and non-expected errors in ways that prevent loss in information and long downtime period.

• performance requirment
Responses to view information shall take no longer than 5 seconds to appear on the screen.

• security requirment

System will have different types of users and every user has access constraints.

System will use secured database.

CODE :
class user{
public:
string signup()
{
char name;
string email;
string password;
string category;
return ;
}
string login(){
string email;
string password;
return;
}
string manageprogile(){
string name;
string email;
string passwor;
return;
}
void funds(){
int funds;
}
};
class donor: public class user
{

public:

void donate(){

int amount of donation;

};

class admin: public class user

void check balance(){


int donation;
}
int assignitems(int no of items){
return int no of items;
}

};

int main()

int choice;

admin a;

user u;

if (choice==1){

a.signup();

a.login();

a.funds;

a. manageprofile();

a.check balance();
a.assignitems(32);

if (choice==2){

u.signup();

u.login();

u.funds;

u. manageprofile();

You might also like