Programming 4 in C#

Put your programming skills to the test in these challenges.

Programming 4 in C#

Post by M_E_M on Tue Feb 09, 2010 5:58 am
([msg=34729]see Programming 4 in C#[/msg])

Hi,

I did a program in C # 2.0, which supposedly solve the challenge.
My problem is that not all numbers or letters are well designed.
I've tried various ways but can not solve the problem.
Below is a picture of one of my final solutions.

Image

I think the problem is in the arches.
This is the code I use to draw the arcs:

[Removed by: Defience]

I give the program code if needed to help me get better.
If anyone can help, I would appreciate.
Thanks
M_E_M
New User
New User
 
Posts: 4
Joined: Sun May 18, 2008 4:13 pm
Blog: View Blog (0)


Re: Programming 4 in C#

Post by faazshift on Tue Feb 09, 2010 1:19 pm
([msg=34754]see Re: Programming 4 in C#[/msg])

Well, at a glance, it looks like your arcs are upside-down.
faazshift
Contributor
Contributor
 
Posts: 516
Joined: Wed Jun 03, 2009 3:55 pm
Location: Riverton, Utah
Blog: View Blog (0)


Re: Programming 4 in C#

Post by M_E_M on Tue Feb 09, 2010 2:41 pm
([msg=34757]see Re: Programming 4 in C#[/msg])

First of all, thanks for the reply, but I missed. How so upside down?
There are letters and numbers that are well made.
Can you be more specific? Because I think I am using the well-coordinated, and do that subtraction to compensate for the fact that the C # have the point (0,0) in the upper left.

Thank you.

--------EDITED-------------

Forget it, you were right. Thanks for the tip. Invert the sign of the last two parameters and results.

Here is the final formula:

[Removed by: Defience]

Thanks again.
M_E_M
New User
New User
 
Posts: 4
Joined: Sun May 18, 2008 4:13 pm
Blog: View Blog (0)


Re: Programming 4 in C#

Post by haha01haha01 on Wed Feb 10, 2010 11:50 am
([msg=34799]see Re: Programming 4 in C#[/msg])

In their usual microsoftness, microsoft decided to draw arcs completely different than the usual method. So you have to convert your circles from center + radius to rectange, and invert the start and sweep angles.
There are 11 types of people in the world - those who understand binary, those who don't and those who already heard this joke.
User avatar
haha01haha01
Poster
Poster
 
Posts: 133
Joined: Tue Jan 13, 2009 10:08 am
Location: HackThisSite.org
Blog: View Blog (0)


Re: Programming 4 in C#

Post by outcast on Sun Feb 14, 2010 12:37 am
([msg=35065]see Re: Programming 4 in C#[/msg])

I don't think it's "just" a Microsoft thing. My Java implementation seems to have a similar problem, but in addition to that, the arcs appear to be much to small, even if I fixed the inversion and different origin (0,0) problem.
outcast
New User
New User
 
Posts: 1
Joined: Tue Jun 02, 2009 5:57 pm
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron