编写椭圆问题程序 [英] Making a program on Ellipse Problem

查看:125
本文介绍了编写椭圆问题程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我是kring2x,大学里的新生...我想知道您是否可以帮助我完成数学作业...我被要求创建一个关于椭圆问题的程序.老实说,我不知道该怎么做...我不知道如果它是turbo c,要使用什么软件,或者是什么原因导致我应该制作一个关于椭圆问题的程序,然后我才能用图形表示它...你能帮我吗?我不知道该怎么做...如果能...我将非常感激...非常感谢...无论如何我会在之后检查一下两天...如果您有答案...

Hi to all!

I''m kring2x,a freshmen in college...I was wondering if you could help me with my assignment in math...I was asked to create a program on ellipse problem. Honestly, I don''t know how to make it...i dunno what software to use if it is turbo c or what cause the instruction is that I should make a program on ellipse problem and then afterwards I could have the graphical representation of it...can you help me with it?I don''t know how to make it...i would highly appreciate if you can...thank you so much...anyway i will just check it out after two days...if you have the answer...

推荐答案

人们不会为您做作业.
如果您正在上大学,那应该是您想学习,如果被问到这是您的学习计划,那么...

如果您证明自己尝试过,请发布代码,讲述错误并提出具体要求(是否已阅读尝试一下"?),那么您将获得所有帮助.
看看 [
People is not going to make your homework for you.
If you are in college it is supposed that you want to learn, and if you are asked about it, it is supposed that is in your studies plan, so...

If you demonstrate that you try it, post your code, tell about your errors and ask for something concrete (have you read "you try it"?), then you will have all the help.
Take a look on this[^]

I don''t know in your college, but in mine, the teachers gave us a copy of the software we needed with educational licence, or we had access to computer labs where the software was installed.

As tip... you need to work as always in programing. You will have to include some libraries, declare variables, ask the user for data, check for errors at data input, save the values in the variables, call a function giving the parameters...

Good luck.


您问过老师吗?通常,他们会建议您在哪里编程这样的东西.
Did you ask your teacher? Usually, they would advise you on where to program such a thing.


您好,我问了一个问题:用椭圆形的东西做程序...". ..很不幸,我的老师没有给我们提供要使用的软件...他要我们自己发现它...我有我的代码,但嗯...我应该怎么说呢...我有点在编程中很烂但我想学习...



#include< stdio.h>
主要(0
{
int n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13,x,y;
字符a,b,c,d,e,f,g;
a =(a)*(a);
b =(b)*(b);
c =(c)*(c);
d =(x)*(x);
e =(y)*(y);
f = x;
g = y;
printf("a.找到方程图的x和y截距\ n");
printf("b.找到焦点的后代\ n");
printf("c.找到长轴和短轴的长度\ n");
printf("d.绘制方程图\ n");
printf(输入数字:");
scanf(%d",& n1);
printf(输入另一个数字:");
scanf(%d",& n2);
printf(输入要用作分母的数字:");
scanf(%d",& n3);
1 = n1a/n3 + n2b/n3;
printf(%d%c/%d +%d%c/%d = 1 \ n",n1,a,n3,n2,b,n3);
printf(%c/%d +%c/%d = 1 \ n",d,n4,e,n5);
printf(%c/%d +%c/%d \ n",d,n6,e,n7);
1 = a/n6 + b/n7;
printf("a等于%d,b等于%d \ n",n7,n6);
y = 0;
printf(为x \ n解决");
printf(%c =%d \ n",d,n6);
printf(%c = +-%d \ n",f,n8);
x = 0;
printf(为y \ n解决");
printf(%c =%d \ n",e,n7);
printf(%c =%d \ n",g,n9);
printf(解决c \ n");
(c)*(c)=(a)*(a)-(b)*(b);
printf(%c =%c-%c \ n",c,a,b);
printf(%c =%d-%d \ n",c,n7,n6);
printf(%c =%d \ n",c,n10);
printf(%c = +-%d \ n",c,n10);
printf(焦点为F1(%d,%d)和F2(%d,-%d)\ n",n11,n10,n11,n10);
printf(长轴长度2a =%d \ n",n12);
printf(次轴长度2b =%d \ n",n13);

那就是我的代码结束的地方...它仍然缺少用于绘制图形的代码...这是非常基本的吗?可怜的我...如果我有错误,请告诉我.. .我确定我有...
Hi..it''s meh the one who asked the question"Making a program on ellipse thing..."..unfortunately my instructor did not gave us what software to use...he wants us to discover it on our own...I have my code but hmm...how should i say this...i kinda suck in programming but i wanna learn...



#include<stdio.h>
main(0
{
int n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13,x,y;
char a,b,c,d,e,f,g;
a=(a)*(a);
b=(b)*(b);
c=(c)*(c);
d=(x)*(x);
e=(y)*(y);
f=x;
g=y;
printf("a. Find the x and y intercepts of the graph of the equation\n");
printf("b. find the coodinates of the foci\n");
printf("c. Find the length of the major axes and the minor axes\n");
printf("d. Sketch the graph of the equation\n");
printf("Enter a number:");
scanf("%d",&n1);
printf("Enter another number:");
scanf("%d",&n2);
printf("Enter a number to be used as denominator:");
scanf("%d",&n3);
1=n1a/n3+n2b/n3;
printf("%d%c/%d+%d%c/%d=1\n",n1,a,n3,n2,b,n3);
printf("%c/%d+%c/%d=1\n",d,n4,e,n5);
printf("%c/%d+%c/%d\n",d,n6,e,n7);
1=a/n6+b/n7;
printf("a is equal to %d and b is equal to %d\n",n7,n6);
y=0;
printf("Solve for x\n");
printf("%c=%d\n",d,n6);
printf("%c=+-%d\n",f,n8);
x=0;
printf("Solve for y\n");
printf("%c=%d\n",e,n7);
printf("%c=%d\n",g,n9);
printf("Solve for c\n");
(c)*(c)=(a)*(a)-(b)*(b);
printf("%c=%c-%c\n",c,a,b);
printf("%c=%d-%d\n",c,n7,n6);
printf("%c=%d\n",c,n10);
printf("%c=+-%d\n",c,n10);
printf("The foci are F1(%d,%d) and F2(%d,-%d)\n",n11,n10,n11,n10);
printf("Major axis length 2a=%d\n",n12);
printf("Minor axis length2b=%d\n",n13);

That''s where my code ends...it still lacks the code for the sketching of the graph...it''s very basic isn''t it?poor me...tell me if i have errors...im sure i have...


这篇关于编写椭圆问题程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆