Java language programming basics programming questions answers_Java language programming and data structures eleventh edition (basics) chapter 2 programming practice answers…

package xz0410sss; import java.util.Scanner; public class xx { public static void main(String[] args) { //Java language programming and data structure The first topic of Chapter 2 // Scanner console = new Scanner(System.in); // System.out.println(“Enter the Celsius column as 37 degrees”); // double ss = console.nextDouble();//Celsius temperature // double cc = (9.0/5)*ss+32; //Fahrenheit temperature // System.out.println(ss+”Celsius”+cc+”Fahrenheit”); //Java language programming and data structure The second topic of Chapter 2 // Scanner console = new Scanner (System.in); //Console input syntax // System.out.println(“Enter radius:”); // double c = console.nextDouble();//radius // System.out.println(“Enter length:”); // double s = console.nextDouble();//length // System.out.println(“Area:”+(c*c)*3.1415926); // System.out.println(“Volume: “+((c*c)*3.1415926)*s); //Java language programming and data structure The third topic of Chapter 2 // Scanner console = new Scanner(System.in); // System.out.println(“Enter the value of feet:”); // double s = console.nextDouble(); // System.out.println(s+”ft”+(s*0.305)+”m”); //Java language programming and data structure The fourth topic of Chapter 2 // Scanner console = new Scanner(System.in); // System.out.println(“Enter a number in points: “); // double c = console.nextDouble(); // System.out.println(c+”pound”+(c*0.454)+”kg”); //Java language programming and data structure The fifth topic of Chapter 2 // Scanner console = new Scanner (System.in); // System.out.println(“Enter subtotal and tip rate:”); // double c = console.nextDouble(); // double s = console.nextDouble(); // System.out.println(“Tip: “+(c*0.15)+”Total cost:…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索