• We need your support!

    We are currently struggling to cover the operational costs of Xtremepapers, as a result we might have to shut this website down. Please donate if we have helped you and help make a difference in other students' lives!
    Click here to Donate Now (View Announcement)

Computer studies ! Post your doubts here =)

Status
Not open for further replies.
Messages
1,824
Reaction score
949
Points
123
Q1. What are the three ways of Verification ? (List And Explain) /6 Marks

Q2. What are the three ways of Validations? (List And Explain) /6 Marks
 
Messages
888
Reaction score
255
Points
73
Q1. What are the three ways of Verification ? (List And Explain) /6 Marks

Q2. What are the three ways of Validations? (List And Explain) /6 Marks
im glad u did nt make the paper
verification:
double entry
parity check
visual check
 
Messages
1,824
Reaction score
949
Points
123
this wont come in a million years its not a program... algos r programs

Yep it will never come .. no matter what!

what I think is .. it will be a simple pseudocode/flowchart with minimum/maximum and average or percentage at the end .. with error trapping/verification checks.

Points will be like

input speed for 500 cars.
output the highest and slowest speed.
output the mean (average) speed.
include any necessary error traps for the input of speed.


OR

input 500 numbers
output the greatest and smallest number.
output what percentage of the numbers were positive.
output the mean of ALL the numbers.
 
Messages
888
Reaction score
255
Points
73
how to prevent phishing and pharming.... help and solid points this can come :/
 
Messages
389
Reaction score
147
Points
53
solve algorithm [8]

costumer purchase some item from dairy shop
customer would input the item name on screen and price would be published accordingly
milk= 2$, yogurt = 2.5$, fresh cream = 4$, butter= 1$
if person's total bill is greater than 10$ so there would be 10% discount .
output the total bill
output the no. of items purchased

can any one??
 
Messages
1,824
Reaction score
949
Points
123
solve algorithm [8]

costumer purchase some item from dairy shop
customer would input the item name on screen and price would be published accordingly
milk= 2$, yogurt = 2.5$, fresh cream = 4$, butter= 1$
if person's total bill is greater than 10$ so there would be 10% discount .
output the total bill
output the no. of items purchased

can any one??

1990s format. won't come.

anyways here it comes ...

Total = 0 (Total Price)
TotalItems = 0 (Total Number Of Items)

REPEAT
Input Item
Read Item
If Item = Milk, than Total = Total +2
If Item = Yogurt, than Total = Total +2.5
If Item = fresh cream, than Total = Total +4
If Item = butter then Total = Total+1
Else Print "Item Not In List"
TotalItems = TotalItems + 1
UNTILL Item = END

If Total > 10 then Total*0.9

Output "Amount In $:" Total
Output "Items Purchased:" TotalItems
 
Messages
389
Reaction score
147
Points
53
syed1995 .. i tried it and is as follows pls check it and mark it out of 8

milk=m,,yogurt=y,,fresh cream= fc,,butter=b
prices, m=2 ,y=2.5 , fc=4 , b=1
__________________________
m,y,b,fc,price,total bill, no. of item=0

input item

if item=milk then , m=m+1 AND price=price +2

else if item=yougurt then y=y+1 AND price=price+2.5

else if item= fresh cream then fc=fc+1 AND price =price+4

else if b=b+1 AND price =price + 1
end if

if price >1o then
total bill =price -(price/10)
else total bill =price
end if
no.of items=fc+b+m+y

print no. of items AND total bill

end
 
Messages
888
Reaction score
255
Points
73
1990s format. won't come.

anyways here it comes ...

Total = 0
TotalItems = 0

REPEAT
Input Item
Read Item
If Item = Milk, than Total = Total +2
If Item = Yogurt, than Total = Total +2.5
If Item = fresh cream, than Total = Total +4
If Item = butter then Total = Total+1
Else Print "Item Not In List"
TotalItems = TotalItems + 1
UNTILL Item = END

Output "Amount In $:" Total
Output "Items Purchased:" TotalItems
multiply dont add *
 
Messages
888
Reaction score
255
Points
73
syed1995 .. i tried it and is as follows pls check it and mark it out of 8

milk=m,,yogurt=y,,fresh cream= fc,,butter=b
prices, m=2 ,y=2.5 , fc=4 , b=1
__________________________
m,y,b,fc,price,total bill, no. of item=0

input item

if item=milk then , m=m+1 AND price=price +2

else if item=yougurt then y=y+1 AND price=price+2.5

else if item= fresh cream then fc=fc+1 AND price =price+4

else if b=b+1 AND price =price + 1
end if

if price >1o then
total bill =price -(price/10)
else total bill =price
end if
no.of items=fc+b+m+y

print no. of items AND total bill

end
milk= m we rnt supposed to write this r we
 
Messages
1,824
Reaction score
949
Points
123
syed1995 .. i tried it and is as follows pls check it and mark it out of 8

milk=m,,yogurt=y,,fresh cream= fc,,butter=b
prices, m=2 ,y=2.5 , fc=4 , b=1
__________________________
m,y,b,fc,price,total bill, no. of item=0

input item

if item=milk then , m=m+1 AND price=price +2

else if item=yougurt then y=y+1 AND price=price+2.5

else if item= fresh cream then fc=fc+1 AND price =price+4

else if b=b+1 AND price =price + 1
end if

if price >1o then
total bill =price -(price/10)
else total bill =price
end if
no.of items=fc+b+m+y

print no. of items AND total bill

end

I didn't knew we can use AND in pseudocodes .. lol i have never seen it used!

yours looks more professional than mine .. I would give it 4/8. I just noticed a error! yours does not have a loop, it will just enter one value and stop ! and not add any other items' price and value!

just remember to identify all the variables in the start!
 
Messages
888
Reaction score
255
Points
73
I didn't knew we can use AND in pseudocodes .. lol i have never seen it used!

yours looks more professional than mine .. I would give it 8/8. just remember to identify all the variables in the start!
price=price =1 is wrong
 
Status
Not open for further replies.
Top