小学英语练习语句
Lookatthephoto!
:It'sphotoofmyclass.
Who'sthisman?
Isthisaphotoofyourfamily?
Sheisateacher.
What'sshe?
No!sheisn't.
Issheacooktoo?
Oh!it'syou.
Letmehavealook.
a:Mom!lookatthephoto.
It'sphotoofmyclass.
Whoisthisman?
HeisMrWhite.
Whoisthatwoman?
SheisMrsDazzy.
b:Edda,isthisaphotoofyourfamily?
Yesthisismymother.
Whatisshe?
Sheisteacher.
c:Isthisaphotoofyourfamily?
Yes,thisismyfather.
Heisacook.
Whoisthatwoman?
Sheismymother.
Issheacooktoo?
Nosheisn't,sheisateacher.
d:What'sthisBobbie?
It'sphoto.
Letmehavealook!
Oh!It'syou,Bobbie.
Yes.
Java语法基础for语句练习
控制语句——for练习
语句的嵌套应用
累加求和,计数器
循环嵌套
一、语句的嵌套应用
语句嵌套形式。其实就是语句中还有语句。形式多种多样,没有固定的格式和套路。
1、打印偶数
for(intx=1;x<=10;x++)
{if(x%2==1)
continue;
System.out.prinln(“x=”+x);
}
二、累加求和,计数器
1、获取1~10的和,并打印。
思路://1,定义变量用于存储不断变化的和。
intsum=0;
//2,定义变量,记录住不断变化的被加的数。
intx=1;
//3,定义循环,重复加法的过程。
用while来体现
while(x<=10)
{
sum=sum+x;
x++;
}
System.out.println("sum="+sum);
循环注意:
一定要明确哪些语句需要参与循环,哪些不需要
复制代码代码如下:
classForTest2
{
publicstaticvoidmain(String[]args)
{
//用for来体现。
intsum=0;
for(intx=0;x<=10;x++)
{
sum+=x;
}
System.out.println("forsum="+sum);
}
}
小例子的小小总结:其实这就是累加思想。
原理:通过变量记录住每次变化的结果。
通过循环的形式,进行累加动作。
2、1~100之间7的倍数的个数。并打印。
思路:
1,先对1~100进行循环(遍历)通过循环的形式。
2,在遍历的过程中,定义条件。只对7的倍数进行操作。
3,因为7的倍数不确定,只要符合条件,就通过一个变量来记录住这个变化的次数。
步骤:
1,定义循环语句,选择for语句。
2,在循环中定义判断。只要是7的.倍数即可。使用if语句。条件:7的倍数x%7==0;
3,定义变量,该变量随着7的倍数的出现而自增。
复制代码代码如下:
classForTest3
{
publicstaticvoidmain(String[]args)
{
intcount=0;
for(intx=1;x<=100;x++)
{
if(x%7==0)
//System.out.println("x="+x);
count++;
}
System.out.println("count="+count);
}
}
小小示例的总结:
这就是计数器思想。通过一个变量记录住数据的状态变化。也许通过循环完成。
三、循环嵌套。
1,打印一个长方形。
复制代码代码如下:
classForForDemo
{
publicstaticvoidmain(String[]args)
{
/*
****
****
****
*/
for(intx=0;x<3;x++)//
{
for(inty=0;y<4;y++)
{
System.out.print("*");
}
System.out.println();//只有一个功能就是换行。
}
System.out.println("-------------------");
}
}
****
****
****
对于打印长方形总结:外循环控制的行数。内循环控制的是每一行的列数。也就是一行中元素的个数。
2,打印一个直角三角形,脚尖朝下。
复制代码代码如下:
classForForDemo
{
publicstaticvoidmain(String[]args)
{
/*
*****
****
***
**
*
发现图形有很多行,每一个行有很多列。
要使用嵌套循环。原理:形象说法:大圈套小圈。
*/
//intz=5;
for(intx=0;x<5;x++)//x<5:因为外循环控制行数。一共5行。
{
for(inty=x;y<5;y++)
{
System.out.print("*");
}
System.out.println();
//z++;
}
}
}
通过该示例小小总结:发现图形有很多行,每一个行有很多列。
要使用嵌套循环。原理:形象说法:大圈套小圈。
3,打印正三角、杨辉三角、九九乘法表
/*
*
**
***
****
*****
1
12
123
1234
12345
九九乘法表
1*1=1
1*2=22*2=4
1*3=32*3=63*3=9
*/
复制代码代码如下:
classForForTest
{
publicstaticvoidmain(String[]args)
{
/*
*
**
***
****
*****
*/
for(intx=0;x<5;x++)
{
for(inty=0;y<=x;y++)
{
System.out.print("*");
}
System.out.println();
}
System.out.println("----------------------");
/*
1
12
123
1234
12345
*/
for(intx=1;x<=5;x++)
{
for(inty=1;y<=x;y++)
{
System.out.print(y);
}
System.out.println();
}
System.out.println("----------------------");
/*
九九乘法表
1*1=1
1*2=22*2=4
1*3=32*3=63*3=9
*/
for(intx=1;x<=9;x++)
{
for(inty=1;y<=x;y++)
{
System.out.print(y+"*"+x+"="+y*x+"t");
}
System.out.println();
}
}
}
通过正三角、杨辉三角、九九乘法表得出一些不是规律的规律:
所谓不是规律的规律:
尖朝上,可以改变条件。让条件随着外循环变化。
尖朝下,可以初始化值,让初始化随着外循环变化。
4,打印菱形(◇)或称为金字塔
/*
----*
---**
--***
-****
*****
*****
-****
--***
---**
----*
*/
复制代码代码如下:
classForForTest2
{
publicstaticvoidmain(String[]args)
{
for(intx=0;x<5;x++)
{
for(inty=x+1;y<5;y++)
{
System.out.print("");
}
for(intz=0;z<=x;z++)
{
System.out.print("*");
}
System.out.println();
}
}
}
5、练习:3000米长的绳子,每天减一半。问多少天这个绳子会小于5米?不考虑小数。
复制代码代码如下:
classForTest4
{
publicstaticvoidmain(String[]args)
{
intday=0;
for(intx=3000;x>=5;x/=2)
{
day++;
}
System.out.println("day="+day);
}
}
通过上述练习,晓得了在遇到问题时,首先要明确问题是什么,其次自己是否有思路,然后将思路转换成java能识别的步骤,最后再通过java语言实现即可。
初二英语句子翻译练习题及答案
初二英语翻译句子练习题
1.我希望我们的演出会取得成功。
_________________________________________________________________________
2.明天我们不去上学而是去为贫困孩子募集钱。
_________________________________________________________________________
3.我认为孩子们学习读和写很重要。
_________________________________________________________________________
4.我希望这些明星会邀请我吃午饭。
_________________________________________________________________________
5.去年因为那场大雨,这里发了洪水。
_________________________________________________________________________
6.刚才我和朋友们练习打棒球很开心。
_________________________________________________________________________
7.她决定每天做更多的运动来保持苗条。
_________________________________________________________________________
8.Millie的铅笔盒和Amy的尺寸一样。
_________________________________________________________________________
9.我理想的学校在一边有个公园,另一边有个大卖场。
________________________________________________________________________
10.我们总是在网上聊得很高兴。
_______________________________________________________________________
答案
1.Ihopethatourshowwillbeasuccess.
2.Wewillgotoraisemoneyforpoorchildrentomorrowinsteadofgoingtoschool.
3.Ithinkitisimportantforthechildrentolearntoreadandwrite.
4.Iwishthesestarswouldinvitemeto(have)lunch.
5.Lastyeartherewasafloodherebecauseoftheheavyrain.
6.Ihadagoodtimepracticingplayingbaseballjustnow.
7.Shedecidestotakemoreexercisetokeepslim.
8.Millie’spencilboxisthesamesizeasAmy’s.
9.Myidealschoolhasaparkononesideandashoppingmallontheother.
10.WealwayshaveagoodtimechattingontheInternet.
初二英语汉译英翻译练习题
1.这个八岁的男孩酷爱弹钢琴,以致于他坚持练琴叁年了。
Theeight-year-oldgirllikesplayingthepiano______much______hehaskept______forthreeyears.
2.我母亲经常在星期日打扫卫生,洗衣服。
Mymotherusually______somecleaningand______onSundays.
3.在今晚的聚会上我们肯定会玩得痛快。
We're______tohave______atthepartythisevening.
4.由于天气不好,校运会不得不推迟。
____________thebadweather,theschoolsportsmeethadto__________________.
5.保护环境和发展经济同样重要。
Protectingenvironmentis__________________developingeconomy.
6.你是怎样与你的邻居相处融洽的'?
______canyougetonwell______yourneighbours?
7.刘老师是位非常亲切的老师,以致于我们把她当做自己的母亲。
Mrs.Liuis____________kindteacher______we______her______ourmother.
8.他问我今天是否有空。
Heasksme______today.
9.下定决心努力学习吧,你迟早会成功的。
Make__________________toworkhard,______you‘llsucceed__________________.
10.李明是个热心肠的人,他经常帮助那些有困难的人。
LiMingisawarm-heartedmanandheoften______thepeopleintrouble______.
答案
1.so,that,practicing.表示“如此……以致……”用句型so+形容词或副词+that…;表示“坚持/不断/反复做某事”用keepdoingsth.
2.does;washing.表示“搞卫生、洗衣服、买东西、看书、跑步”等,可用dosomecleaning/washing/shopping/reading/running.注意一般现在时,主语是第三人称单数时,谓语动词要用单数形式,所以do要用does.
3.sure;fun.表示“肯定会、一定会做某事”用besuretodosth表示“玩得痛快”用havefun,haveagoodtime或enjoyoneself.注意fun是不可数名词,前面不能用a.
4.Thanksto/Becauseof,beputoff.注意此处“推迟”要用被动语态。
5.asimportantas表示“一样/同样……”的as…as之间用形容或副词的原级。其否定式,表示“不如……”时,第一个as还可用so替代。
6.How;with.表示“与某人相处融哈”用句型getonwellwithsb.
7.sucha,that,regard,as.其中suchakindateacher还可说成sokindateacher;regardsbas…把某人看作……。
8.ifI‘mfree/ifIhavetime.表示“是否”用if或whether引导宾语从句。
9.upyourmind,and,soonerorlater.因为表示“下定决心做某事”用makeupone'smindtodosth;表示“迟早,总有一天”用soonerorlater.
10.gives,ahand.因为givesbahand(withsth)=giveahandtosb(withsth)=helpsb(withsth)帮助某人(做某事)。
初一英语句子转换练习题库
初一年级英语句子句子转换练习
1.Who'sthatboy?(同义句)________thatboy's________?
2.Itisawatch.(复数)They_______________.
3.Theycanseetheblackboardandthedoorinthepicture.
_______________theyseeinthepicture?
4.Shedoesherhomeworkeveryevening.(否定句)
She______________herhomeworkeveryevening.
5.Wehavethreemealsaday.(否定句)
We_____________threemealsaday.
6.Howoldisshe?(同义句)_____________age?
7.Thisismydictionary.(改成复数)
8.ThatisJim'swatch.((改成复数)
9.Cindyismyaunt.(对划线部分提问)
_____is______aunt?
10.Mykeysareonthesofa.(对划线部分提问)
_____________yourkeys?
11.Tom'sbaseballisunderthechair.(否定句)
Tom'sbaseball_________underthechair.
12.ItisNovember12th.(对划线部分提问)
_____the______today?
13.ItisFriday.(对划线部分提问)__________isittoday?
14.Sheusuallygetsupatseventhirtyinthemorning.(对划线部分提问)
____________sheusuallygetupinthemorning?
15.TheygotoBeijingonDecember1st.(对划线部分提问)
_____________theygotoBeijing?
16.Theseareourclassroom.(一般疑问句)
_______these______classroom?
17.Webrushourteethbeforewegotobed.(对划线部分提问)
____doyou_____beforeyougotobed?
18.Shecandrawpictures.(对划线部分提问)
_____canshe_____?
19.Helikesplayingcomputergames.(否定句)
He___________playingcomputergames.
20.GuoPeng'sbirthdayisNovemberthird.(对划线部分提问)____________GuoPeng'sbirthday?