ar x1, x2, y1, y2 : int
var c : string
put "Enter width of the box for :"
get x1
put "Enter height of the box in pixels:"
get x2
put "Enter x-coordinate of the lower-left corner of the box in pixels:"
get y1
put "Enter y-coordinate of the lower-left corner of the box in pixels:"
get y2
put "enter the character "
get c
cls
for horiz : 1 .. 80
locate (horiz,x2)
put c ..
locate (horiz,x1)
put c..
end for
for width : 1 .. 25
locate (y1, width)
put c ..
locate (y2, width)
put c..
end for
we have make a square from output the user give you , but mines doesn't work help me please!!!!!!!!!!!!!!!!!!!!!!!!1
Archived topic from Iceteks, old topic ID:3106, old post ID:25395
need help urgent
need help urgent
Well, first thing, you're using character graphics? Correct? Will if you are, are you getting a runtime error? Because if you are, it's because your counted loop goes up to 80 rows and in turing, maxrow is 25. I haven't taken turing in awhile, so I might have my values mixed up. Other than that, what seems to be going on with the problem. From what I see from your coding, it isn't going to follow your Height and width format. It's just going to draw a bunch of characters for the length of of your counted loop's variable (horiz). I'll come back to this....I'm half asleep and don't know what's going on right now
Archived topic from Iceteks, old topic ID:3106, old post ID:25400
Archived topic from Iceteks, old topic ID:3106, old post ID:25400
need help urgent
have you tried
Code: Select all
var x1, x2, y1, y2:int
put "X1:"
get x1
put "Y1:"
get y1
put "X2:"
get x2
put "Y2:"
get y2
drawbox(x1, y1, x2, y2, red)
[code]
it works for me
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:3106, old post ID:25451[/size][/color]
need help urgent
ok ok .. im in grade 11 programming and we had to do that program for grade 10 .. for one thing ... ur layout is wack .. i'll show you what it should some what look like
var height, base: int
put "What is the base of the square?"
get base
put "what is the height of the square?"
get height
drawfillbox(100,base, 100, height, 4)
im not sure if this actualy works as i dont have turing at home and only at school but it should some what work i'd hope ? ..
Archived topic from Iceteks, old topic ID:3106, old post ID:26351
var height, base: int
put "What is the base of the square?"
get base
put "what is the height of the square?"
get height
drawfillbox(100,base, 100, height, 4)
im not sure if this actualy works as i dont have turing at home and only at school but it should some what work i'd hope ? ..
Archived topic from Iceteks, old topic ID:3106, old post ID:26351