云南大学软件学院Java实验二.docxVIP

  • 4
  • 0
  • 约4.1千字
  • 约 5页
  • 2020-04-02 发布于广东
  • 举报
姓名: 学号: 班级: 日期: 成绩: JAVA实验二 一、 实验目的: 进一步熟悉JAVA编译环境,编译三个简单的JAVA程序,熟悉JAVA语言。 二、 实验要求: 1. Write Java program called AverageNumbers.java to determine the average of several numbers? Set the following five integer variables: inti = 5 int2 = 7 int3 = 4 int4 = 25 int5 = 13 Calculate and display the average of these numbers and the square root of average. 2 . Write a temperature conversion Java program called FarheheitToCentigrade? java ? Set a variable called tempFarenheit = 98.6. Calculate the Centigrade temp (tempCelcius) by using the formula Centigrade = 5/9 (Fahrenheit -32) 3. Write a Java pay

文档评论(0)

1亿VIP精品文档

相关文档