Re: [Tutor] Tile Code

2014-11-14 Thread Alan Gauld
On 14/11/14 01:20, niyanax...@gmail.com wrote: You keep sending us your homework but not any of your code. We will not do your homework for you. And we can only guess at what bits you don't understand unless you tell us. Please include your code and a specific question or area of difficulty. If

[Tutor] Tile Code

2014-11-14 Thread niyanaxx95
Statement: 1. The first and last tile in the first row shall be black. 2. The first and last tile in the first column shall be black. 3. The tiles will alternate between black and lemon The task is to write a function to compute and print:  the number of tiles needed in the first row (the num

Re: [Tutor] Tile Code Program

2014-10-10 Thread Danny Yoo
On Fri, Oct 10, 2014 at 8:46 AM, wrote: > This is the prompt: Write an algorithm / pseudocode that: > • Reads in a two integers; the width and length of a room. [code cut] Can you talk a little bit about what problem you're having, if anything? Or are you asking for a code review? It's unclea

Re: [Tutor] Tile Code Program

2014-10-10 Thread Dave Angel
Wrote in message: > > (Please use text mail to post here) roomWidth = 100.0. #BUGBUG roomLength = 90.0 while roomWidth < 100 or roomWidth > 1000: roomWidth = float(input("Please enter a room width between 100 and 1000: ")) if roomWidth >= 100 or roomWidth <= 1000: print(

[Tutor] Tile Code Program

2014-10-10 Thread niyanaxx95
This is the prompt: Write an algorithm / pseudocode that: • Reads in a two integers; the width and length of a room. i. The valid range for the width (x-axis) of the room is between 100 and 1000 pixels. ii. The valid range for the length (y-axis) of the room is between 100 and 900 pixels. • V