前三次作业都是基础语法.真的好水啊.从这次开始记录. 1.编写Java程序,把当前目录下扩展名为txt的文件的扩展名全部更名为back. import java.io.*; import java.lang.*; public class Home { public void reName(String path, String from, String to) { File f = new File(path); //声明File对象,用于导入修改路径 File[] fs = f.listFi…
1.一张纸的厚度是0.0001米,将纸对折,对折多少次厚度超过珠峰高度8848米 解法一: var gd = 8848; var cs = 0; while(true) { cs++; gd = gd*0.5 if(gd<0.0001) { break; } } alert(cs); 解法二: var n = 0; var g = 0.0001; while(true) { g = g *2; n++ if(g>8848) { break } } alert(n); 解法三: var n =…
3.choose three View the Exhibit and examine the description of SALES and PROMOTIONS tables. You want to delete rows from the SALES table, where the PROMO_NAME column in the PROMOTIONS table has either blowout sale or everyday low price as values. Whi…