Week 3 Q2 Documentation
Week 3 Q2 Documentation
Begin
Declaring Doubles amtWhol, amtDue, amtTaken, changeDue
Declaring String amtDeciS, amtDeci, amtWholeS
1/5
Student no.:0726860 Documentation CP4012
st
Name: Altafhusain Khan Msc. Computer Science(1 Semister)
Subtract right 1st value of amtDeciS from amtDeci value, read into
no1
read into no2 right 1st value of amtDeciS
End If
2/5
Student no.:0726860 Documentation CP4012
st
Name: Altafhusain Khan Msc. Computer Science(1 Semister)
Read quotient of no1 by 10 into dvdval
Add values of Label1.Text & new line & value of dvdval
& "* £10 Note" into Label1.Text
Read value of modval into no1
End If
Loop
End
3/5
Student no.:0726860 Documentation CP4012
st
Name: Altafhusain Khan Msc. Computer Science(1 Semister)
Change Due
4/5
Student no.:0726860 Documentation CP4012
st
Name: Altafhusain Khan Msc. Computer Science(1 Semister)
Calculate = (75, 23)
Clear = (75, 23)
Quit = (75, 23)
Assumptions:
result:
1*£20 Note
1*£2 coin
1*£1 coin
1*20p
1*2p
Evaluation:
5/5