急求一个JAVA程序,请高手们帮忙一下!!谢谢了
WriteaninteractiveJavaprogramtocalculatehowmanyyearsittakestodoubleyourfix-amountofsa...
Write an interactive Java program to calculate how many years it takes to double your fix-amount of savings in a bank. Suppose the interest rate is fixed.
For example, if user saves 1000 dollars into bank, so at bank interest rate 7%, it may take at least 11 years to have the balance become 2000 dollars. Please write a command-line application to assign the letter grades to students based on their scores. Your program should first ask the number of students in the class. For each user, it should ask the name of the student and his/her average score. Then, it should calculate the letter grade, and display the name and the letter grade of the student just entered. It should calculate the letter grades as many times as the number of the students given at the beginning of the program.
Your program should calculate the letter grade as follows:
For average scores from 90 to 100, the letter grade should be “A”.
For average scores from 80 to 89, the letter grade should be “B”.
For average scores from 70 to 79, the letter grade should be “C”.
For average scores from 60 to 69, the letter grade should be “D”.
For average scores from 0 to 59, the letter grade should be “F”.
You may assume that the average score given by the user of your program is valid, that is, it is an integer between 0 and 100. 展开
For example, if user saves 1000 dollars into bank, so at bank interest rate 7%, it may take at least 11 years to have the balance become 2000 dollars. Please write a command-line application to assign the letter grades to students based on their scores. Your program should first ask the number of students in the class. For each user, it should ask the name of the student and his/her average score. Then, it should calculate the letter grade, and display the name and the letter grade of the student just entered. It should calculate the letter grades as many times as the number of the students given at the beginning of the program.
Your program should calculate the letter grade as follows:
For average scores from 90 to 100, the letter grade should be “A”.
For average scores from 80 to 89, the letter grade should be “B”.
For average scores from 70 to 79, the letter grade should be “C”.
For average scores from 60 to 69, the letter grade should be “D”.
For average scores from 0 to 59, the letter grade should be “F”.
You may assume that the average score given by the user of your program is valid, that is, it is an integer between 0 and 100. 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询