Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
Introduction to Computer Science Skip to Main Content Home Syllabus Lectures Assignments Exams Staff Tutors Rutgers Home SAS CS Introduction to Computer Science Computer Science Department Home Syllabus Lectures Assignments Exams Staff Tutors Hello, world – 35 course points The purpose of this assignment is to introduce you to programming in Java and to familiarize you with the process of preparing and submitting programming assignments. You will learn how to use the VScode editor to edit Java files, use the command line to compile and execute your programs, as well as submit your assignment on Autolab. Refer to our Programming Assignments FAQ for instructions on how to install VScode, how to use the command line and how to submit your assignments. Programming Write 3 programs and submit on Autolab. We provide this zip file containing HelloWorld.java, WindChill.java, and OrderCheck.java. For each problem UPDATE and SUBMIT the corresponding file. Observe the following rules: DO NOT use if statements on this assignment DO NOT use loops on this assignment DO NOT add any import statements DO NOT add the project statement DO NOT change the class name DO NOT change the headers of ANY of the given methods DO NOT add any new class fields DO NOT use System.exit() Observe the examples output, display only what the problem is asking for Hello, World [10 points]. This is everyone’s first program. Write a program HelloWorld.java that, when run, displays the phrase: Hello, World. % java HelloWorld Hello, World Wind chill [10 points]. Given the temperature T (in degrees Fahrenheit) and the wind speed v (in miles per hour), the National Weather Service defines the effective temperature (the wind chill) as follows: w = 35.74 + 0.6215 T + (0.4275 T – 35.75) v^0.16 Write a program WindChill.java that takes two double command-line arguments temperature and velocity and prints the wind chill.  NOTE 1: a^b means a to the power of b. Use Math.pow(a,b) to compute a^b. NOTE 2: The formula is not valid if T is larger than 50 in absolute value or if v is larger than 120 or less than 3. Assume that the input values testing your program are in range. NOTE 3: It is not necessary to round the wind chill value, display the value that is computed. NOTE 4: Do not use loops for this program. % java WindChill 35.0 10.0 27.445420 Order check [15 points]. Write a program OrderCheck.java that takes four int command-line arguments w, x, y, and z. Define a boolean variable whose value is true if the four values are either in strictly ascending order (w < x < y < z) or strictly descending order (w > x > y > z), and false otherwise. Then, display the boolean variable value. NOTE 1: Do not use if statements on this program. NOTE 2: Assume that the inputs will always be integers. % java OrderCheck 5 10 15 2 false % java OrderCheck 15 11 9 4 true Before submission Collaboration policy. Read our collaboration policy here. Update @author. Update the @author tag of the files with your name, email and netid. Submitting the assignment. Submit HelloWorld.java, WindChill.java, and OrderCheck.java separately via the web submission system called Autolab. To do this, click the Assignments link from the course website; click the Submit link for that assignment. Getting help If anything is unclear, don’t hesitate to drop by office hours or post a question on Piazza. Find instructors office hours by clicking the Staff  link from the course website. In addition to office hours we have the CAVE (Collaborative Academic Versatile Environment), a community space staffed with lab assistants which are undergraduate students further along the CS major to answer questions. Connect with Rutgers Rutgers Home Rutgers Today myRutgers Academic Calendar Calendar of Events SAS Events Explore SAS Departments & Degree-Granting Programs Other Instructional Programs Majors & Minors Research Programs, Centers, & Institutes International Programs Division of Life Sciences Explore CS We are Hiring! Research News Events Resources Search CS Home Back to Top Copyright 2020, Rutgers, The State University of New Jersey. All rights reserved. Rutgers is an equal access/equal opportunity institution. Individuals with disabilities are encouraged to direct suggestions, comments, or complaints concerning any accessibility issues with Rutgers web sites to: accessibility@rutgers.edu or complete the Report Accessibility Barrier or Provide Feedback Form.