家庭作业 [英] Homework assignment

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

问题描述

我正在将Quincy用于计算机编程课程及其互联网课程。我正在努力做这个项目:


*创建一个数学表,显示一系列数字,数字的平方和

数字的立方体。程序应提示用户输入2个值,这些值将是表格的起始编号和表格的结束编号。之后一个循环应该是

用于显示系列中的每个数字,该数字的正方形和立方体如下面的

4到7所示。循环应从用户输入的第一个数字开始,以用户输入的最后一个

数字结束。*


有人可以帮助我或至少指向我正确的方向?我不知道怎么做!

I''m using Quincy for a computer programming class and its an internet class. I''m having the hardest time doing this project:

*Create a math table which displays a series of numbers, the squares of the numbers and the
cubes of the numbers. The program should prompt the user to enter 2 values which will be the
beginning number for the table and the ending number for the table. After that a loop should be
used to display each number in the series, the square and the cube of that number as shown for
4 to 7 below. The loop should begin at the first number entered by the user and end with the last
number entered by the user.*

Can someone please help me out or atleast point me in the right direction? I have no clue how to do this!

推荐答案


我正在将Quincy用于计算机编程课程和它是一个互联网类。我正在努力做这个项目:


*创建一个数学表,显示一系列数字,数字的平方和

数字的立方体。程序应提示用户输入2个值,这些值将是表格的起始编号和表格的结束编号。之后一个循环应该是

用于显示系列中的每个数字,该数字的正方形和立方体如下面的

4到7所示。循环应从用户输入的第一个数字开始,以用户输入的最后一个

数字结束。*


有人可以帮助我或至少指向我正确的方向?我不知道怎么做!
I''m using Quincy for a computer programming class and its an internet class. I''m having the hardest time doing this project:

*Create a math table which displays a series of numbers, the squares of the numbers and the
cubes of the numbers. The program should prompt the user to enter 2 values which will be the
beginning number for the table and the ending number for the table. After that a loop should be
used to display each number in the series, the square and the cube of that number as shown for
4 to 7 below. The loop should begin at the first number entered by the user and end with the last
number entered by the user.*

Can someone please help me out or atleast point me in the right direction? I have no clue how to do this!



Quincy?你去NIU吗?

Quincy? Do you go to NIU?



Quincy?你去NIU吗?
Quincy? Do you go to NIU?



不,我不是。我去北卡罗来纳州立大学...你知道这件事吗?

No I don''t. I go to NC State...you know anything about this?



不,我不是。我去北卡罗来纳州...你知道这件事吗?
No I don''t. I go to NC State...you know anything about this?



很抱歉没有显示任何工作....这是我到目前为止所有它将编译和构建它只是看起来不正确:


#include< iostream.h>

#include< cmath>


int main()

{

int num1 = 0;

int num2 = 0;


cout< ;<"请输入第一个数字"<< endl;

cin>> num1;

cout<<"请输入第二个数字" ;<< endl;

cin>> num2;


cout<<"" Math Table"<< endl;

cout<<" Number Square Cube"<< endl;


do

{

cout<< num1<< POW(num1,2)LT;< pow(num1,3)<< endl;

num1 = num1 + 1;

} while(num1< num2);



返回0;

}

Ok sorry for not showing any work before....this is what I have so far and it will compile and build It just doesn''t look right:

#include<iostream.h>
#include<cmath>

int main()
{
int num1=0;
int num2=0;


cout<<"Please enter the first number"<<endl;
cin>>num1;
cout<<"Please enter the second number"<<endl;
cin>>num2;

cout<<"Math Table"<<endl;
cout<<"Number Square Cube"<<endl;

do
{
cout<<num1<< pow(num1,2)<< pow(num1,3)<<endl;
num1=num1+1;
}while(num1<num2);


return 0;
}


这篇关于家庭作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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