Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %Sarab Mirza
- %Mark
- %ICS20-01
- %Turkey cooking time
- %Declaring variables
- var pounds:int
- var option:int
- var unstuffed:int
- var stuffed:int
- %Giving value to variables
- put " Options "
- put "Option 1: The time to cook a unstuffed turkey"
- put "Option 2: The time to cook a stuffed turkey"
- put ""
- put "Please enter the number corrisponding with your selected option:"..
- get option
- put ""
- put "Now, Please enter the weight of the Turkey in ib:"..
- get pounds
- unstuffed:=pounds*17
- stuffed:=pounds*21
- put ""
- %Case construct
- case option of
- label 1:
- put "The time to cook is ", unstuffed div 60, "hour(s) and ", unstuffed mod 60, " minute(s)"
- label 2:
- put "The time to cook is ", stuffed div 60, "hour(s) and ", stuffed mod 60, " minute(s)"
- end case
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement