Q1) Write a method named area that accepts a circle’s radius as a parameter and returns its area. The area of a circle is defined as: or You may wish to use the constant Math.PI in your solution. Call the method in main to test it and display the area to the screen. Q2) Write a method named bottlesOnWall that accepts an integer as a parameter and prints ‘XX Bottles on the wall’ with that many verses, each time counting down from XX till it becomes 1. So for instance if the integer is 5, then the output should be: 5 Bottles on the wall 4 Bottles on the wall 3 Bottles on the wall 2 Bottles on the wall 1 Bottles on the wall Assume that the integer passed to the method is always positive. Call the method in main to test it. Q3) Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Write the following methods in the program: calcAverage – This method should accept five test scores as arguments and return the average of the scores. determineGrade – This method should accept a test score as an argument and return a letter grade for the score, based on the following grading scale: Score: Letter Grade: 90-100 A 80-89 B 70-79 C 60-69 D Below 60 F
"Looking for a Similar Assignment? Order now and Get a Discount!
1. High-Class Quality.
‘Will you write my paper for me that meets all requirements?’ This question is frequently asked by many students, and we always answer in the affirmative. Our main goal is to deliver a perfectly written paper the meets high writing standards. We don’t rest unless you are satisfied with our work. If you hire a paper writer online, we guarantee you that you get 100% original and plagiarism-free assignments of high quality.
2. Complete Anonymity.
We value your privacy and use modern encryption systems to protect you online. We don’t collect any personal or payment details and provide all our customers with 100% anonymity. ‘Can you write a paper for me so that I could stay anonymous?’ Of course, we can! We are here to help you, not to cause problems.
3. Fast Delivery.
We completely understand how strict deadlines maybe when it comes to writing your paper. Even if your paper is due tomorrow morning, you can always rely on us. Our writers meet all set deadlines unequivocally. This rule is ironclad! The offered range is wide and starts from 6 hours to 2 weeks. Which one to choose is totally up to you. For our part, we guarantee that our writers will deliver your order on time.