JavaSE留学生英文题库案例
课程介绍
课程章节 
课程公告
1. Write a program CollegeCost.java to calculate the amount of money a person would pay in college education over a period of time 选修
2. Write a program ReverseNumber.java A number is a palindrome if its reversal is the same as itself 选修
3. Write a program Temprature.java that reports the statics of average high temperature in Santa Clara 选修
4. You need to write a Java program to check if a given String and Integer are palindromes or not. 选修
5. Write a simple Java program to check if the entered integer is prime or not and in the following line, it will print the Fibonacci Series of the same integer 选修
6. Subtract two matrices of the same size and print the result in the console as a matrix 选修
7. Write a program that displays the following pattern 选修
8. Write Java code to calculate and display the area and perimeter of a rectangle that has a width of 7 and height of 9. 选修
9. Develop a program that computes how far an object has fallen after 12 seconds. 选修
10. Through a simple equation it is possible to obtain the acceleration of an object using the change in velocity and time. 选修
10.1. 代码参考 选修
11. Create a program that can calculate the cost of a road trip using fuel cost, distance travelled and fuel economy. 选修
11.1. 代码参考 选修
12. You are required to create a program that can compute the distance between two specified points, (x1, y1) and (x2, y2). 选修
12.1. 代码参考 选修
13. Create a program that can calculate the area of a triangle using the following formulae 选修
13.1. 代码参考 选修
14. Write a program that reads a monetary value as a string, e.g."11.56". 选修
14.1. 代码参考 选修
15. For this activity, your task is to create a program that demonstrates all of the programming skills in this unit. 选修
15.1. 代码参考 选修
16. Write a program that allows a user to enter a number of integers until the user inputs 0 (zero). The program then prints the total number of positive, negative, even and odd integers that have been 选修
16.1. 代码参考 选修
17. If a number is equal to the sum of all of its positive divisors, excluding itself, then it is called a perfect number. 选修
17.1. 代码参考 选修
18. Write a program to find all the numbers between 100 and 200 that are divisible by either 5 or 6 but not both (this is called XOR relationship). 选修
18.1. 代码参考 选修
19. Write a program that first asks the user to input a number of students and then asks for each student’s name and score. 选修
19.1. 代码参考 选修
20. Write code that takes a letter as input, and then checks whether the letter is a vowel (i.e., one of a, e, i, o, u) or a consonant. 选修
20.1. 代码参考 选修
21. Create a method that transforms a time given in seconds to a String that shows the hours, minutes, and seconds like the time on a digital clock. 选修
21.1. 代码参考 选修
22. Write a class with 2 methods. The first method determines if any two sides added together are greater than the remaining side. 选修
22.1. 代码参考 选修
23. Create two methods: one that will reverse the order of the digits in an integer and a second determines if a number is a palindrome (i.e. reads the same front to back) using the following method heade 选修
23.1. 代码参考 选修
24. Assume vehicle plate numbers use the following standard: XB-23 (any two letters followed by any two digits). 选修
24.1. 代码参考 选修
25. Compose a program that validates the perimeter of a triangle. 选修
25.1. 代码参考 选修
26. Write a program that plays the popular scissor-paper-rock game. 选修
26.1. 代码参考 选修
27. Write a program that allows a user to enter a number of integers until the user inputs 0 (zero). 选修
27.1. 代码参考 选修
28. If a number is equal to the sum of all of its positive divisors, excluding itself, then it is called a perfect number. 选修
28.1. 代码参考 选修
29. Write a program to find all the numbers between 100 and 200 that are divisible by either 5 or 6 but not both 选修
29.1. 代码参考 选修
30. Write a program that first asks the user to input a number of students and then asks for each student’s name and score. 选修
30.1. 代码参考 选修