Question: Question 1 : Write a Java program to declare and initialize two integer variables and then display their sum. Question 2 : Calculate and display

Question 1: Write a Java program to declare and initialize two integer variables and then display their sum.
Question 2: Calculate and display the area of a rectangle with given length and width.
Question 3: Convert a temperature in Celsius to Fahrenheit using the formula:
F=(C**95)+32
Question 4: Calculate the area and circumference of a circle given its radius. Use pi as 3.14159.
Question 5: Given a person's age, calculate and display their age in months.
Question 6: Calculate the sum of the first n natural numbers.
Hint: You may need to use a formula you might have learnt in Maths class to solve this.
Question 7: Given the base and height of a triangle, calculate its area using the formula: Area =0.5** base * height.
Question 8: Calculate the volume of a cube given its side length.
Question 9: Convert a given number of minutes into hours and minutes.
Question 10: Calculate the compound interest earned on a principal amount with given interest rate and time period.
Formula for Compound Interest: amount = principal ?**(1+ rate )??? years
Formula for Interest: interest = amount - principal
Hint: Use Math.pow to calculate the exponent.
Note your submission should include the question number program screenshot and output screenshot
 Question 1: Write a Java program to declare and initialize two

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!