Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (amistre64):

My new toy; patent pending of course ;)

OpenStudy (amistre64):

OpenStudy (anonymous):

Good work.but when i enter non numerical letters i don't error or any message,rather i get '*'.I don't like ppl attaching html,you can use javascript and do lots of malicious works.

OpenStudy (anonymous):

good work ^^

OpenStudy (anonymous):

u used trigonometry on it? ^^

OpenStudy (amistre64):

well; I didnt account for the non.numerics .... good catch :) and yes, there can be bad people who program ... i perfer not to be one of them tho ;)

OpenStudy (amistre64):

i did use the trig. I could have keep the x and y values parametric, but was trying to work out a "function" based approach.

OpenStudy (anonymous):

i tihnk its harder to draw elipse by using trig to circle^^

OpenStudy (amistre64):

there usually are easier ways to do things; but I tend to go for the knuckle dragging efforts ;)

OpenStudy (anonymous):

#include <stdio.h> #include <conio.h> int main() { float y,x,b,a; printf("please enter 2 values:\n"); scanf("%f%f",&a,&b); for(x=-a;x<=a;x++) { for(y=-b;y<=b;y++) { if((((x*x)/(a*a))+(y*y/(b*b))<=1)&&(((x*x)/(a*a))+((y*y)/(b*b))>=(0.9))) printf("*"); else printf(" "); } printf("\n"); } getch(); return 0; }

OpenStudy (anonymous):

well here what about that one ^^

OpenStudy (amistre64):

that looks like a doable approach :)

OpenStudy (amistre64):

the format is unfamiliar to me ... is it scripting or other?

OpenStudy (anonymous):

just copy the code write on c

OpenStudy (anonymous):

no its a c code ^^

OpenStudy (amistre64):

wihtout a compiler handy, I tend to amuse my kids with javascripts in html lol

OpenStudy (anonymous):

xd just dl a compiler as i do right now ^^ but i tihnk the code works well ^^

OpenStudy (amistre64):

ill look into doing that, thnx

OpenStudy (anonymous):

i think Shell can be used for that ^^ becuase we use Linux Shell to compile .c exploits

OpenStudy (amistre64):

gotta take 2 compter classes while getting by bachelors in math; i thik they go with what.. VB and C++ these days

OpenStudy (anonymous):

i think so, i think you should learn QBASIC firstly then you can learn VB.NET and you can learn the .NET framework, then C and C++ and C# i kno them all ^^

OpenStudy (amistre64):

i played with the qbasic as a kid; 10 years ago got into VB with VB4, but my carpentry job ate up most of me time back then

OpenStudy (anonymous):

oh nice ^^ then you should learn C, its the base, and after thatC# and C++ will looks like easy and etter, you should work with C#, its really a good thecnology ^^

OpenStudy (amistre64):

ill consider it :) thanx again

OpenStudy (anonymous):

amistre here is the exe format of the code have a look at it, and please enter small values like 1 or 2 ^^

OpenStudy (anonymous):

amistre u there?

OpenStudy (amistre64):

cute :) that traces an ellipse, but needs more debugging

OpenStudy (amistre64):

when the values inputed are too large, i got that ..

OpenStudy (anonymous):

ncie toy, I want one :D

OpenStudy (anonymous):

well yes, i can overcome of this problem but ill need a lot of work, many if and else's ... but i think the one you made better... but ill code it in C++ with better mechanic i think :D

OpenStudy (amistre64):

lol ... good luck with it :)

OpenStudy (anonymous):

i think i will not sleep this night lol :P

OpenStudy (anonymous):

and thanx

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!